cancel
Showing results for 
Search instead for 
Did you mean: 

I'm working on STM32L496ZG MCU and trying to port a C code built for linux platform to STM32, this code consist of RTOs so to port this code to stm i need to replace RTOs APIs with freertos .My question is does STM32L4 series support freertos ?

Vredd.2
Associate
 
3 REPLIES 3
Haithem Rahmani
ST Employee

Hi @Vredd.2​ 

FreeRTOS support is for only CPU dependent. FreeRTOS support all cortex MCU, including the Cortex M4 equipping the STM32L4.

Have a look here to see examples using FreeRTOS on the STM32L4.

https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects/32L4R9IDISCOVERY/Applications/FreeRTOS/FreeRTOS_LowPower

https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects/NUCLEO-L476RG/Applications/FreeRTOS

regards

Haithem.

Vredd.2
Associate

Hello @Haithem Rahmani​ ,

Thanks for response,

I was following freertos_lowpower examples in which CMSIS-RTOS has been use, I have requirement to port conditional variable functions like pthread_cond_wait(); and pthread_cond_signal(); of RTOS in to my application, can you suggest any function in CMSIS-RTOS which is equivalent of those.

I have gone through documentation of osSignalWait(); and osSignalSet(); in case of pthread_cond_wait(); function it is going to unlocks mutex but osSignalWait(); is implemented differently than that. is there any work around for that.

Haithem Rahmani
ST Employee

Hi @Vredd.2​,

there isn't any straightforward CMSIS API mapping the required API, it should be implemented manually.

I don't know whether FreeRTOS is a must in your project or not, but why not trying the Azure RTOS threadx, It comes with a ready to use posix porting layer, that should be providing your needs.

regards

Haithem.