add lwip to cmake project for stm32h5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-10 12:11 AM
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?
- Labels:
-
STM32H5 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-10 6:21 AM
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,
