Skip to main content
Visitor II
June 25, 2025
Solved

How to Implement UDP over LwIP on STM32F769I-DISCO Using FreeRTOS

  • June 25, 2025
  • 3 replies
  • 802 views

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!

    This topic has been closed for replies.
    Best answer by STackPointer64

    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,

    3 replies

    Technical Moderator
    June 25, 2025

    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,

    mskyflyAuthor
    Visitor II
    June 26, 2025

    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?

    Technical Moderator
    June 30, 2025

    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.

    mskyflyAuthor
    Visitor II
    July 1, 2025

    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.

    Technical Moderator
    July 1, 2025