Skip to main content
Associate II
Oct 9, 2026 1:06 PM UTC
Question

LwIP with STM32C5 without RTOS

Hello everyone,

I'm trying to develop an application with LwIP without an operating system using the STM32C5A3x.

When I set the LwIP operating system to “No OS,” I see some files in the CMake project that call FreeRTOSConfig.h, and the compilation fails.

 

 

Is anyone else experiencing the same problem?

 

I’d also like to ask if there’s any information about the release of a new version of STM32CubeMX2.

Thanks for help.

4 replies

Andrew Neil
Super User
Oct 9, 2026 1:11 PM UTC

 I see some files in the CMake project that call FreeRTOSConfig.h

You can’t “call” a header file.

 

and the compilation fails

How, exactly, does it fail ?

Is the project actually trying to use things from the header, or what ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
Oct 9, 2026 1:24 PM UTC

Hi Andrew,

 

I'm sorry, I didn't explain myself clearly regarding header.h.

 

When I try to compile the project using STM32CubeIDE, without making any changes, I get this error:

 

STM32C5_workspace/LWIP_EX/LWIP_Ex_cmake/misc/STMicroelectronics.freertos.2.2.0/include/FreeRTOS.h:58:10: fatal error: FreeRTOSConfig.h: No such file or directory

 

58 | #include “FreeRTOSConfig.h”

 

In the project tree, there is a folder named misc/STMicroelectronics.freertos.2.2.0.

I may be wrong, but I believe this folder should not have been created by CubeMX2, since LwIP is configured without FreeRTOS.

ST Technical Moderator
Oct 29, 2026 8:45 AM UTC

Hello ​@MatheusNifocci77 

Could you please share your .ioc2 file 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
Associate II
Nov 3, 2026 2:35 PM UTC

Hello Saket_Om, 

of course. Here it is.

 

Thanks for your help.