ZYNQ SDK跑lwip协议栈,xemac

it2023-01-23  145

工程: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()无返回值

找到资料:

lwip中如何用xemac_add ()正确地初始化网口?

原因:板卡接到百兆路由,时钟无法自动适配。

解决办法:

设置BSP中lwip中phy_link_speed参数,默认为自动适配更改为100Mbps

 

最新回复(0)