In SSP 1.2.0 b1, from the file synergy/ssp/inc/framework/el/nx/nx_api.h :- #define NX_NOT_CONNECTED 0x38 There is a problem using nx_ip_interface_status_check() when using the synergy ethernet driver. This call will return even if the Ethernet cable is unplugged:- status = nx_ip_interface_status_check(&g_ip0, 0, NX_IP_LINK_ENABLED, &actual_status, TX_WAIT_FOREVER); To check the ethernet link is actually enabled, you have to use something like :- extern NX_REC nx_record[]; #define ETH_CHANNEL 1 while(NX_TRUE != nx_record[ETH_CHANNEL].link_established) { tx_thread_sleep(5); } To wait for the PHY to report the link has been established. The PHY status check is done in the file synergy/ssp/src/framework/sf_el_nx/nx_hw_init.c
↧