Thread 中讨论的其他器件:TMDSCNCD263
工具/软件:
使用新的 SDK 11.0.0.19 时、在初始化过程中会生成新的错误。 但驱动程序似乎继续运行并打开链接。
您能否帮助我们详细了解一下这个错误、是否应该感到担忧?
您可以看到 enet_lwip_cpsw_am263px-cc_r5fss0-0_freeRTOS 示例存在问题。 使用 CCS 在 TMDSCNCD263 Rev A 板上运行此函数: 20.3.0.14__1.9.0 并手动安装 SDK 11.0.0.19 和 SYSCONFIG1.25.0。

==========================
ENET LWIP App
==========================
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
Link Status Changed. PHY: 0x0, state: up
Open MAC port 2
EnetPhy_bindDriver: PHY 0: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK
PHY 0 is alive
CpswMacPort_ioctl: cpsw3G.macport1: Module is not open
Cpsw_registerIoctlHandler: Failed to register IOCTL handler: -1, 1000502, 70139C91
EnetPer_ioctl: cpsw3g: Failed to do IOCTL cmd 0x01000110: -1
Enet_ioctl: cpsw3g: IOCTL 0x01000110 failed: -1
Failed to set dscp Priority map for Port 1 - -1
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:**:**:**
[LWIPIF_LWIP] Enet has been started successfully
[0]status_callback==UP, local interface IP is 0.0.0.0
UDP server listening on port 5001
Cpsw_handleLinkUp: Port 2: Link up: 1-Gbps Full-Duplex
MAC Port 2: link up
cpprit 位于 Cpsw_registerIoctlHandler() 中、看起来这里有代码更改、生成了这个新错误。
这是 SDK10:

这是 SDK 11:

SDK 11 对 CpswMacPort_ioctl 的调用返回失败、而 SDK10 对 EnetMod_registerMacportIoctlHandler() 的调用返回成功。
我们目前正在尝试将代码迁移到 SDK 11、并想知道如何管理此错误。 谢谢。
PS: 代码中存在一些应修复的编译错误。 当 ENETTRACE 设置为详细级别时会看到以下内容:





