2024-06-26 12:30 AM
I want to do UDP communication using ThreadX and NetXDuo on an STM32H563ZI.
I searched for STM32Cube Examples and found a sample project for STM32H5, but because FW_H5_v1.3.0 does not exist, an error occurs.
The following page is set up as an example of using TrustZone, but I cannot find any examples of not using TrustZone.
Are there any simple examples or setup instructions?
2024-06-26 08:59 AM
Hello @Nao05215 ,
Did you have a look at the examples in the github repo? they contain examples on H563 without Trustzone.
You can also take a look at the configuration done with this article Creating a dual IPv6 & IPv4 NetXDuo UDP applicatio... - STMicroelectronics Community. and inspire from it as a starting point.
Regards
2024-07-03 02:11 AM
Hello. @STea
Thank you for your response.
I cloned the github repository and built & ran the Nx_UDP_Echo_Server project.
There is nothing wrong with the build.
However, I get an Error at line 307 "tx_semaphore_get" in app_netxduo.c and the IP address is not resolved.
I have no problem with fixed IP without DHCP, but I am trying with no changes to the project.
/* wait until an IP address is ready */
if(tx_semaphore_get(&DHCPSemaphore, NX_APP_DEFAULT_TIMEOUT) != TX_SUCCESS)
{
/* USER CODE BEGIN DHCPSemaphore get error */
Error_Handler();
/* USER CODE END DHCPSemaphore get error */
}
I apologize for using DeepL as I do not speak English.
2024-07-15 02:49 AM
Hello @Nao05215 ,
This is probably getting stack because of the absence of a DHCP server running to get an IP address try providing a DHCP server from your PC side or try working with a static IP address as this is working properly in both cases from my side.
Regards
2024-07-15 03:13 AM
@Nao05215 wrote:However, I get an Error at line 307 "tx_semaphore_get" in app_netxduo.c
So what Error, exactly, do you get?
2024-07-15 03:16 AM - edited 2024-07-15 03:16 AM
Hello @Andrew Neil ,
I think he meant he goes into the error Handler after semaphore get function times out.
Regards