This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NC_setLinkHook issue

Hello,

i'm using TM4C129 with XDCtool xdctools_3_31_02_38_core and TI-RTOS tirtos_tivac_2_14_00_10.

and i'm trying to use the NC_setLinkHook to set a hook function to be called up on Ethernet cable is plugged/unplugged.

but the function isn't invoked at all if the Ethernet cable is plugged or unplugged.\

Thanks,

Mohamed fawzy

  • Hello Mohamed,

    Moving it to the TI-RTOS Forum

    Regards
    Amit
  • Unfortunately the EMAC driver does not support this feature of the NDK. I've opened the following enhancement request.

    SDOCM00119073: The EMAC Driver for TM4C129x devices should call STKEVENT_signal to denote when the link status changes

    There is a EMAC_isLinkUp() API call you can make that queries the driver to return the link status. I know this is not ideal, but it does allow you to periodically poll the driver to determine the link status.

    Todd