2025-10-13 5:30 AM
Hello!
I am using a custom board with STM32H563VIT6. I want to create an MQTT project which will send data to a local laptop via an Ethernet cable. I am using STM32H573I-DK\Applications\NetXDuo\Nx_MQTT_Client as the example project to do so, but I am facing a problem.
The problem is that when the nx_app_thread_entry function is called it will get stuck when this line is called
if(tx_semaphore_get(&DHCPSemaphore, TX_WAIT_FOREVER) != TX_SUCCESS)
Then this leads to "__tx_ts_wait" in the nx_thread_schedule.S forever.
This is my call stack up to __tx_ts_wait:
__tx_ts_wait@0x08000336 (...\STM32H563VIT6_Ethernet\Middlewares\ST\threadx\ports\cortex_m33\gnu\src\tx_thread_schedule.S:279)
<signal handler called>@0xffffffbc (Unknown Source:0)
_tx_ipsr_get@0x08009bdc (...\STM32H563VIT6_Ethernet\Middlewares\ST\threadx\ports\cortex_m33\gnu\inc\tx_port.h:511)
_tx_thread_system_return_inline@0x08009bdc (...\STM32H563VIT6_Ethernet\Middlewares\ST\threadx\ports\cortex_m33\gnu\inc\tx_port.h:615)
_tx_thread_system_suspend@0x08009bdc (...\STM32H563VIT6_Ethernet\Middlewares\ST\threadx\common\src\tx_thread_system_suspend.c:380)
_tx_thread_sleep@0x080098fe (...\STM32H563VIT6_Ethernet\Middlewares\ST\threadx\common\src\tx_thread_sleep.c:189)
App_Link_Thread_Entry@0x08035768 (...\STM32H563VIT6_Ethernet\NetXDuo\App\app_netxduo.c:841)
_tx_thread_shell_entry@0x08009764 (...\STM32H563VIT6_Ethernet\Middlewares\ST\threadx\common\src\tx_thread_shell_entry.c:114)
<signal handler called>@0xffffffff (Unknown Source:0)
What could be the issue? Any help or ideas to solve it would be greatly appreciated!
Adding files, including ioc, that might be of help.