Native FreeRTOS with CubeMX ? (No CMSIS Wrapper)

Hello,

Is there a way to configure FreeRTOS on a STM32 MCU with the CubeMX tool without the CMSIS wrapper ?

This CMSIS has some disavantages for me as:

  • Including third party FreeRTOS library
  • No direct application of the support offer by the FreeRTOS community (Forum, documentation, tutorial, book etc)
  • Reduce functionnality. I can’t find for example any similar Mailbox concept with the CMSIS

Thank you

I’m not familiar enough with the CubeMX tool myself to know if you can use it to create a FreeRTOS project without CMSIS wrappers, but I would guess the answer would be no. None of the ST examples in our distribution or the IoT reference integration for the STM32 IoT board use the CMSIS wrapper though.

1 Like

I think you can integrate the FreeRTOS kernal files by yourself alongside the CubeMX generated files. It’s not as convenient as CubeMX, however much more flexible.

1 Like

Just because the IDE setup the CMSIS wrappers doesn’t mean you need to use them. You can directly call the FreeRTOS functions as much as you desire.

You may have issues mixing between the two for a given FreeRTOS object, maybe needing to create it under CMSIS and extracting the FreeRTOS handle out of the CMSIS object.

1 Like

Thank you for these answers.

I am doing something very similar to what you are saying.
I configured the FreeRTOS kernel through CubeMX and generate the project. Then I remove the CMSIS functions and use the native FreeRTOS apis.

Here is an interesting link that resume what I am doing:
https://jaywang.info/using-native-freertos-in-stm32-microcontrollers/