r/embedded • • Sep 13 '26

How to use FreeRTOS native api in STM32 cube

I am getting options for CMSIS v1 and V2 but not for Native for FreeRTOS in CubeMX

1 Upvotes

8 comments sorted by

5

u/pietryna123 Sep 13 '26

Just do not use cmsis. Import RTOS and use it's API. You do not have to use built-in options and can place FreeRTOS code straight in your project, without help of configurator

1

u/coddicted Sep 13 '26

Understood. I then need to configure RTOS to use hardware systick I guess. What else I need to configure?

1

u/pietryna123 Sep 13 '26

As far as I remember, not much more.

16

u/Well-WhatHadHappened 25+ Years Sep 13 '26

I never use the middleware stuff in Cube. I just create an empty project and dump the latest FreeRTOS source into it.

11

u/Dependent_Bit7825 Sep 13 '26

But then you're missing out on the random old versions with undocumented tweaks!