STM32N6570-DK UDP Example Without DHCP (Static IP Only)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-24 9:25 PM
Hello ST Community,
I am currently working with the STM32N6570-DK board and trying to implement a UDP server using static IP (without DHCP).
However, all the example codes provided by ST (both server and client) are configured with DHCP enabled. I am specifically looking for a working example that uses only a static IP configuration, and that can successfully respond to ping and UDP communication.
I have noticed that many other users in the community have also waiting for it, but it seems an official example without DHCP is still not available with STM32N6.
It would be very helpful if ST could provide or update an example project that:
Uses static IP (no DHCP)
Allows successful ICMP ping
Implements a basic UDP server
Looking forward to a solution or guidance. I hope this update/fix will be considered soon by ST.
Thank you.
- Labels:
-
Ethernet
-
NetXDuo
-
STM32N6 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-25 3:32 AM
Hello @saikumar,
Thank you for your report.
You can disable DHCP in our UDP server example by making some modifications to configure it to work with a static IP address.
Please take a look at this post; it may be helpful: Solved: Re: NetxDuo not working with a static IP addresss - STMicroelectronics Community
With Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-27 5:28 AM
Hello mr @ASEHST
I am currently using the STM32N6570-DK board.
I followed the example provided in the ST repository
Since this example is for the NUCLEO-N657X0-Q, I updated the Ethernet GPIO pin configuration to match the pinout of my STM32N6570-DK board. Then I compiled and flashed the application to the DK board.
Step 1: Tried with DHCP Enabled.
I connected one end of an Ethernet cable to the STM32 board and the other end to my router.
I powered on the board and opened a serial terminal (Hercules).
The output shows:
Nx_UDP_Echo_Server application started..
Looking for DHCP server...
However, no IP address was assigned, and it stays stuck on the above message.
Step 2: Tried with Static IP
Following suggestions from https://community.st.com/t5/stm32-mcus-embedded-software/netxduo-not-working-with-a-static-ip-addresss/m-p/674408 I disabled DHCP and configured a static IP address.
After flashing, the IP address was printed on the serial terminal, which confirms that the IP was set.
But when I tried to ping the board from my PC, I got no response.
My Questions
Is it a problem that I am using the NUCLEO board's project code on the DK board, even though I changed the Ethernet pins?
I would appreciate any guidance on how to properly bring up the Ethernet interface on the STM32N6570-DK, especially for use with NetXdue , UDP server with static ip.
Thank you in advance.
