NetxDuo not working with a static IP addresss
Hi @CharterWim
I'm just starting to learn ThreadX + NetXDuo, so I may have made a mistake that I'm still not aware of.
However, it seems I managed to run the Nx_UDP_Echo_Server without the debugger connected to my NUCLEO-H563ZI.
What I did was:
1. Disabled DHCP client exactly as you did.
2. When creating the UDP thread, I still used the TX_DONT_START so it will not run until asked to.
3. I changed the code in App_Link_Thread_Entry (app_netxduo.c) that verifies whether the cable is connected. Basically, I am calling nx_ip_driver_direct_command independent of the status returned by nx_ip_interface_status_check. I'm also using tx_thread_resume(&AppUDPThread) and tx_thread_suspend(&AppUDPThread) when the link is on or off. See my file attached. Seems to work.
Please let me know if I made any mistake, or if this works for you also!
BR
Fabio
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.