2025-06-25 6:08 AM
Hello STM32 Community,
I am working on the STM32F769I-DISCO board and would like to implement UDP communication using LwIP with FreeRTOS.
I have already downloaded the STM32F7 series example projects, and I see that the LwIP_HTTP_Server_Socket_RTOS example is available. This project uses FreeRTOS and a TCP socket for HTTP communication.
I would like to know how I can modify or use this example project to implement UDP-based communication (sending and receiving UDP packets). or any different way I should use.
Could anyone guide me on the steps required to convert or extend this example to support UDP communication over LwIP in FreeRTOS?
Any code examples or suggestions would be highly appreciated.
Thank you!
Solved! Go to Solution.
2025-06-25 7:35 AM
Hello and welcome to the ST community, @mskyfly !
You can follow the guide in the project linked below, which walks you through the steps to implement a fully functional UDP echo server. You can modify it to suit your needs, allowing you to learn more about the application as you build it. Please make sure to follow the steps carefully, and I will be happy to help you with any errors you may encounter.
Although this guide uses the NUCLEO-F767ZI board, you can apply the same configuration to your STM32F769I-DISCO, as both share the same architecture.
Best regards,
2025-06-25 7:35 AM
Hello and welcome to the ST community, @mskyfly !
You can follow the guide in the project linked below, which walks you through the steps to implement a fully functional UDP echo server. You can modify it to suit your needs, allowing you to learn more about the application as you build it. Please make sure to follow the steps carefully, and I will be happy to help you with any errors you may encounter.
Although this guide uses the NUCLEO-F767ZI board, you can apply the same configuration to your STM32F769I-DISCO, as both share the same architecture.
Best regards,
2025-06-26 3:54 AM
Thank you for your response, @STackPointer64.
I’m working on implementing UDP communication using the STM32F7 series example project LwIP_HTTP_Server_Socket_RTOS. I’ve successfully run the example as provided, and it’s working as expected.
Now, I would like to modify it to implement UDP communication using sockets, as socket usage is important for my application.
Could you please guide me on how to achieve this?
2025-06-30 7:33 AM
Unfortunately, I don’t have a ready-to-use example. That’s why I suggested the article to help you build the foundation of your application. I recommend researching online how to create UDP communication using sockets, then adapting and porting that code to your application. Feel free to start new threads with any questions if you need further assistance.
2025-06-30 10:14 PM - last edited on 2025-07-03 3:38 AM by mƎALLEm
Merged the same question in the same thread.
Hello STM32 Community,
I’m working on implementing UDP communication using the STM32F7 series example project LwIP_HTTP_Server_Socket_RTOS. I’ve successfully run the example as provided, and it’s working as expected.
Now, I would like to modify it to implement UDP communication.
Please guide me regarding.
2025-07-01 1:52 AM
Hello,
Refer to this article as it may help you: Implementing a LwIP and FreeRTOS™ v1 UDP echo server on the STM32F7 series
2025-07-03 3:42 AM - edited 2025-07-03 8:54 AM
Hello @mskyfly,
Please make sure to not ask the same question in multiple threads. I've merged your both threads you've created.
@STackPointer64 asked you to open a thread for another question if any not to duplicate the same question. Thank you for your understanding.
I think, the provided article by @STackPointer64 and I is helpful.