在stm32f107vc+DM9161AEP下应用Rt-Thread0.3.1,ping几下就ping不通了,寄存器读值=正确
\ | /- RT - Thread Operating System
/ | \ 0.3.1 build Nov 30 2011
2006 - 2010 Copyright by rt-thread team
sdcard init failed
rtc is not configured
please configure with set_date and set_time
File System initialzation failed!
ETH_ReadPHYRegister(0,0):0x3100
ETH_ReadPHYRegister(0,1):0x786D
ETH_ReadPHYRegister(0,2):0x181
ETH_ReadPHYRegister(0,3):0xB8A0
ETH_ReadPHYRegister(0,4):0x1E1
ETH_ReadPHYRegister(0,5):0x45E1
ETH_ReadPHYRegister(0,6):0x3
ETH_ReadPHYRegister(0,17):0x8208
==>ETH_Speed_100M!
ETH_ReadPHYRegister(0,17):0x8208
==>ETH_Mode_FullDuplex!
ETH_ReadPHYRegister(0,0):0x3100
ETH_ReadPHYRegister(0,1):0x786D
ETH_ReadPHYRegister(0,2):0x181
ETH_ReadPHYRegister(0,3):0xB8A0
ETH_ReadPHYRegister(0,4):0x1E1
ETH_ReadPHYRegister(0,5):0x45E1
ETH_ReadPHYRegister(0,6):0x1
ETH_ReadPHYRegister(0,17):0x8208
==>ETH_Speed_100M!
ETH_ReadPHYRegister(0,17):0x8208
==>ETH_Mode_FullDuplex!TCP/IP initialized!
finsh>>
以上就是从串口中输出的所有信息,一直到网络ping不通,也没变过。
实验的现象是能ping通几下到几十下。多的时候有20多下,少也有3次。
关于源代码的修改,
我修改了PHY_ADDRESS为0x00,
#define STM32F10X_CL
其他地方没有动,这是什么原因啊? 本来想传个图或者代码上来,结果没传成功。
页:
[1]