Part Number: PROCESSOR-SDK-AM437X
Tool/software: TI-RTOS
I want to read the link status of Ethernet interfaces of AM437x.
I´ve tried to pass a hook funcion to the NDK via NC_setLinkHook(). It did not work.
I am calling emac_poll() and it always return EMAC_LINKSTATUS_NOLINK.
At at initialization this is displayed on the terminal, which is very strange:
SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
When I disconnect and connect again the cable, this is displayed on the terminal:
Phy: 4, NegMode 01e1, NWAYadvertise 01e1, NWAYREadvertise 45e1
Negotiated connection: FullDuplex 100 Mbs.
The driver detects the change but emac_poll() always return EMAC_LINKSTATUS_NOLINK.
If seems ENETPHY_GetLinked is reading the correct value, but EMAC_poll_v4 only calls it when (tickChange == 1). In this case, should p_info->link_status set to 0? Could it keep the previous value?
Installed itens:
CCS 7.2
GCC ARM Compiler 4.9.3
processor_sdk_rtos_am437x 4.00.00.04
am437x PDK v1.0.7
bios 6.46.05.55
xdctools 3.32.02.25_core
Board: AM437x Starter Kit
regards,
Marcio.