cancel
Showing results for 
Search instead for 
Did you mean: 

add lwip to cmake project for stm32h5

dvescovi
Associate III

I need to add the LwIP component to a cmake STM32CubeMX generated project for the NUCLEO-H563ZI board.

The LwIP component does not appear to be included in the STM32H5 package although the FreeRTOS component is.

Is there a way to modify my top level CMakeList file to add it manually?

 

1 REPLY 1
STackPointer64
ST Employee

Hello @dvescovi,

The LwIP stack is not included in the STM32CubeH5 firmware package. However, NetXDuo is available as an alternative. If you want to use LwIP, you can start by referring to the implementation available on this GitHub repository and building your project around it. Make sure you clone it and not download it as a zip file in order to get a working project.

If you prefer not to switch to NetXDuo, another option is to generate a CMake project for a different STM32 board, such as the STM32H7, which still includes LwIP in its firmware package. When generating the project, ensure you select the "Copy all used libraries in the project folder" option. Then, compare the folder structures and CMake files of the two projects. While this process may take time, it is feasible. Keep in mind that you will need to manually configure LwIP in the source header files to ensure proper integration with your project.

Best regards,

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