cancel
Showing results for 
Search instead for 
Did you mean: 

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

mskyfly
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions
STackPointer64
ST Employee

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,

To improve visibility of answered topics, please click Accept as Solution on the reply that resolved your issue or answered your question.

View solution in original post

6 REPLIES 6
STackPointer64
ST Employee

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,

To improve visibility of answered topics, please click Accept as Solution on the reply that resolved your issue or answered your question.

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?

STackPointer64
ST Employee

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.

To improve visibility of answered topics, please click Accept as Solution on the reply that resolved your issue or answered your question.
mskyfly
Associate II

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.

Hello,

Refer to this article as it may help you: Implementing a LwIP and FreeRTOS™ v1 UDP echo server on the STM32F7 series

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

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. 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.