Forum: System Workbench for STM32

Functions missing in FreeRTOS CMSIS v2 using STM32CubeIDE

I’m trying to use these two functions in STM32CubeIDE within FreeRTOS CMSIS v2:
- osKernelSuspend()
- osKernelResume()
My goal is to put the microcontroller in STOP MODE.

I get an error when compiling the project.
The problem seems to be the following: the two functions are only defined in cmsis_os2.h, but they are missing in cmsis_os2.c.

Such functions are well described in the documentation:
https://www.keil.com/pack/doc/CMSIS/RTOS2/html/groupCMSISRTOSKernelCtrl.html#gae26683e1606ec633354a2876c68f0c1fQuestion
But they are missing in the FreeRTOS folder.
I’m using STM32L4xx microcontroller

Any suggestion to fix the problem?

Thanks in advance!

Flavio