Skip to main content
Visitor II
June 24, 2026
Question

UDP not working on STM32H563ZI using NetX Duo UDP Echo Server example

  • June 24, 2026
  • 2 replies
  • 75 views

Hi,

 

I am using the STM32 NUCLEO-H563ZI board and testing the NetX Duo UDP Echo Server example provided by STM32.

 

Setup:

 

- STM32 NUCLEO-H563ZI

- NetX Duo UDP Echo Server example

- Direct Ethernet LAN cable connection between PC and board

- Static IP configured on both PC and STM32

 

Issue:

UDP communication is not working. When I try to ping the STM32 IP address from the PC, I get "Destination Host Unreachable".

Since I am using the official UDP Echo Server example, I expected the board to be reachable and respond to UDP packets.

Has anyone successfully tested this example on the NUCLEO-H563ZI? Are there any additional Ethernet, PHY, or NetX Duo configurations that need to be checked?

 

Any suggestions would be appreciated.

 

2 replies

ST Employee
August 19, 2026

Hello ​@Kaviya,

Thank you for your report.


Following these steps, it was possible to successfully ping the NetX Duo UDP Echo Server example using a static IP address:
In CubeMX:

  • Middleware and Software Packs -> NETXDUO -> Addons: DHCP from "Client" to "Disable".
  • Middleware and Software Packs -> NETXDUO -> Configuration: Set NetX Duo Ethernet IP Address to an IP address in the same network as your PC.
  • Generate the project.

In app_netxduo.h:

  • Remove the include statement for nxd_dhcp_client.h.

In app_netxduo.h:

  • The attached file contains the modifications applied to implement the UDP server with a static IP address.

With Regards,

If your question is answered, please close this topic by clicking ""Accept as Solution"".
Pavel A.
August 19, 2026

> Direct Ethernet LAN cable connection between PC and board

This is not a good choice. Use a hub.