工程:sdk自带LwIP UDP Pref Server例程

环境:vivado2019.1
现象:
测试demo,标准输入输出口打印信息如下:
-----lwIP RAW Mode UDP Server Application-----
WARNING: Not a Marvell or TI or Realtek Ethernet PHY. Please verify the initialization sequence
Start PHY autonegotiation
Waiting for PHY to complete autonegotiation.
autonegotiation complete
link speed for phy address 3: 0
调试过程发现xemac_add()无返回值
找到资料:
原因:板卡接到百兆路由,时钟无法自动适配。
解决办法:
设置BSP中lwip中phy_link_speed参数,默认为自动适配更改为100Mbps

本文介绍了一个关于lwIP中使用xemac_add()函数初始化网口的问题。当板卡连接到百兆路由器时,由于时钟无法自动适配导致初始化失败。文中详细解释了问题的原因,并提供了解决方案,即将phy_link_speed参数从自动适配更改为固定100Mbps。
852

被折叠的 条评论
为什么被折叠?



