cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube FW_H7 and CMSIS RTOS2 V2.3.1?

regjoe
Senior II

Hello,

just updated to STM32Cube FW_H7 V 1.13.0 but it seems it still contains CMSIS RTOS2 V2.1.3.

I'm develop with Keil and STM32 IDE but Keil is using V2.3.1 while Cube comes with V2.1.3.

In STM32 IDE I got a compile error when I imported source code developed on Keil.

E.g. the thread attribute osThreadUnprivileged, introduced in V2.2.0, is missing in V2.1.3.

https://arm-software.github.io/CMSIS_6/main/RTOS2/rtos_revisionHistory.html 

Any progress here? If no, why?

Thanks,

Jochen

 

 

  

6 REPLIES 6
Pavel A.
Super User

Keil MDK contains the genuine RTX RTOS. Would you like to use it instead?

The "CMSIS RTOS" in STM32 firmware packages is just a wrapper around FreeRTOS or ThreadX. For this option you can bring your own FreeRTOS version. You can also stay with CMSIS RTOS v1 wrapper, around exactly same FreeRTOS, if the provided API is suitable for your project.

I'm already using RTX5 in Keil MDK and I don't want to use FreeRTOS nor ThreadX in Keil.
I just want to have CMSIS-RTOS2 V2.3.1 installed in ST IDE in order to have portable code between Keil and ST IDE.

"RTX is the CMSIS‑RTOS API implementation. Modern Keil RTX5 does not sit behind a separate CMSIS‑RTOS “wrapper”—it natively implements the CMSIS‑RTOS2 API. Older RTX versions (pre‑RTX5) required a CMSIS‑RTOS v1 wrapper layer, but that architecture is obsolete." 

(Answer of my favorite AI)

 

 

So I have to manage to install the latest CMSIS-RTOS API in STM32Cube FW_H7 on myself?

Probably yes - but with RTX 5, you don't need it at all. Unless you want to make the app code "RTOS-agnostic" and decouple it from RTX.

 

 

I think I need what you call "RTOS-agnostic". I write low level SW which is using RTOS. This SW is used to build several applications, some using RTX and some FreeRTOS. IMHO this is what the CMSIS-RTOS2 API has been invented for.

But my approach requires that both RTOS use the same API version. Just want to know if there are plans by ST to update FreeRTOS in Cube to same CMSIS-RTOS2 API version as used in RTX5.