论坛元老
 
- 积分
- 4493
- 金钱
- 4493
- 注册时间
- 2016-8-2
- 在线时间
- 51 小时
|
发表于 2016-9-20 10:59:03
|
显示全部楼层
大哥, 不直接回复我都不知道你回复我了!!!!!
1.先仿真看看DP83848_Init 初始化能不能过去。
2.看看ping的时候你的RJ45的绿灯是否是闪烁的,不闪烁就查硬件
3.闪烁就在以太网接收中断地方打断点或者打印log,看看有没有数据接收到。
我之前调试就是可以接收但是发送不了,最后发现发送引脚配置错了。很低级的错误。
还有看看你的 配置
83848和L8702不一样的地方
[mw_shl_code=c,true]1.#define DP83848_PHY_ADDRESS 0x01 // PHY芯片地址.
/* Section 4: Extended PHY Registers */
#define PHY_SR ((uint16_t)16) //DP83848的PHY状态寄存器地址
#define PHY_SPEED_STATUS ((uint16_t)0x0002) //DP83848 PHY速度值掩码
#define PHY_DUPLEX_STATUS ((uint16_t)0x0004) //DP83848 PHY连接状态[/mw_shl_code]
|
|