Skip to main content
Senior
September 10, 2026
Solved

FREERTOS vs X-CUBE-FREERTOS

  • September 10, 2026
  • 2 replies
  • 87 views

Using STM32CubeIDE v1.17 (STM32CubeMX v6.13) to edit IOC file and generate code...

Previously when working with STM32H563 I selected X-CUBE-FREERTOS under Middleware, added tasks, generated code, and saw expected code in app_freertos.c for tasks.

Now starting to work with STM32G491. Under Middleware I see FREERTOS but no X-CUBE-FREERTOS. After adding a task and generating code, I see nothing in app_freertos.c for the task. 

What is the difference between FREERTOS and X-CUBE-FREERTOS?

Why don’t I see X-CUBE-FREERTOS when working with STM32G491?

 

Best answer by Ghofrane GSOURI

Hello ​@mccabehm 

X-CUBE-FREERTOS is a software expansion package means ST-delivered add-on package.

For STM32G491, what you see as FREERTOS in CubeMX is CubeMX-integrated FreeRTOS middleware.

They are not two different RTOSes .The main difference is how ST packages and exposes it in CubeMX, not the core FreeRTOS concept itself.

THX

Ghofrane

2 replies

mccabehmAuthor
Senior
September 10, 2026

Oh. Task creation, queues, mutexes, etc are in main.c not app_freertos.c

Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator
September 11, 2026

Hello ​@mccabehm 

X-CUBE-FREERTOS is a software expansion package means ST-delivered add-on package.

For STM32G491, what you see as FREERTOS in CubeMX is CubeMX-integrated FreeRTOS middleware.

They are not two different RTOSes .The main difference is how ST packages and exposes it in CubeMX, not the core FreeRTOS concept itself.

THX

Ghofrane

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.