STM32N657X0H3Q: NetXDuo Ethernet Some Drivers Files Not Generated for UDP Server.
- May 21, 2025
- 2 replies
- 1042 views
Hello,
I'm working with the STM32N657X0H3Q MCU and trying to implement a UDP server . I enabled the Ethernet peripheral and selected NetXDuo in STM32CubeMX(6.14.1), then generated the code for MDK-ARM (Keil). However, two important driver files were not generated:
- nx_stm32_phy_driver.c
- nx_stm32_eth_driver.c
I noticed that in your example here:
"https://github.com/STMicroelectronics/STM32CubeN6/tree/main/Projects/NUCLEO-N657X0-Q/Applications/NetXDuo/Nx_UDP_Echo_Server"
the two files mentioned above are included, but this example does not contain a .ioc file, so I couldn't verify how they were configured.
To troubleshoot, I looked for another example with a similar configuration and found the STM32H5 series UDP example here:
"https://github.com/STMicroelectronics/STM32CubeH5/tree/main/Projects/NUCLEO-H563ZI/Applications/NetXDuo/Nx_UDP_Echo_Server"
This H5 example includes a .ioc file, and I observed that under NetXDuo > Network Interface, we can select:
- Ethernet Interface.
- LAN8742 PHY Driver.
But in STM32N6 (STM32CubeN6 package), the only option available is a "Custom Interface". I'm wondering if this is the reason why nx_stm32_phy_driver.c and nx_stm32_eth_driver.c are not being generated in my case.
My Questions:
- Is the limited option (only "Custom Interface") in STM32N6 the reason these two files are not being generated?
- If yes, what is the correct way to generate or integrate them?
- If not, what is the actual reason, and how can I resolve the issue?
Also, could you please provide the .ioc files for both UDP Server and UDP Client examples for STM32N6 ? That would help clarify the necessary configuration.
Thanks in advance!

