2025-09-02 3:04 AM - last edited on 2025-09-05 3:40 AM by Saket_Om
Hello,
meanwhile i tried for ethernet udp several examples. But either these could not be imported
in STMCubeIDE 1.19.0 or were based on RTOS.
Did any know or have an example for it?
Thank you!
Best regards, HiST
2025-09-02 4:30 AM
Hi,
If you are interested in a UDP example, you can use the Mongoose Networking Library. It's a lightweight networking library, ideal for embedded devices and it has support for a wide variety of networking protocols, including UDP. The Mongoose API is well documented here.
Moreover, the library contains a wide range of examples for each of its features, for example here you can find some useful UDP examples that can help you.
Since you're looking to use the Ethernet functionality on a CubeIDE application, I have crafted an example of a simple baremetal project running the Mongoose library on the STM32 H755ZI-Q board. It runs on top of Mongoose's own TCP/IP stack, a simpler and lightweight alternative to lwIP.
You can then use the Mongoose examples along with the documentation to easily modify this example as per you required functionalities.
P.S. This project was generated using the Mongoose Wizard tool. The Wizard is a no-code builder that lets you visually design a web UI, but it also generates the entire project (ready to be compiled) for you.
Heads up: I am part of the Mongoose development team and I hope this helps you get started.
2025-09-03 1:41 AM
Hello MStackDev_376,
thank you for your answer.
Meanwile i got the lwip-stack working and for now I will use them.
I tried to test your example, but it didn't work. May be, i made a
mistake.
I noticed that no MPU has been set up. Maybe that's the mistake too?
The possibilities of their mongoose stack looked interesting - maybe we'll come back to that later.
Best regards,
HiST
2025-09-04 3:33 AM
Hello HiST,
Glad to hear you managed to get the example working!
Thank you for taking the time to test our example as well and for your feedback on Mongoose. I can confirm the project is tested and works correctly on the Nucleo-H755ZI-Q board. A common pitfall with this specific dual-core board is that both cores need to be programmed. The project contains 2 subprojects (one for Core CM4 and the main one running Mongoose on Core CM7), both projects need to be flashed.
Also, you are correct that we do not enable the MPU in this examples. We usually don't do that, because we aim to provide the simplest possible starting point, and the MPU is not required for this basic functionality to work. So, the MPU not being enabled is not the issue.
Best regards,
MStackDev_376