STM32H563VIT6 MQTT Setup Getting Stuck at tx_semaphore_get
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!
Edit 1: If I understand it correctly, at the start a DHCP server is created and IP address change callback is registered (when the IP change is done, then the system can "move on" to MQTT part). For now the system is trying configure the IP address for the device client (which is the board with STM), but no IP address gets to be set for the device, so then the system will wait forever, and in the meantime nothing else is also working (MQTT service). If I understood this correctly, then does it mean that the software is not the issue, but perhaps the problem is in the connection between the MQTT client (STM device) and my laptop?
Adding files, including ioc, that might be of help.
