2021-03-14 04:04 AM
I'm trying to use these two functions in STM32CubeIDE within FreeRTOS CMSIS v2:
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:
But they are missing in the FreeRTOS folder.
I'm using STM32L4xx microcontroller
Any suggestion to fix the problem?
Thanks in advance!
Flavio
Solved! Go to Solution.
2021-05-24 06:21 AM
Hello @flavio23 ,
Unfortunately, osKernelSuspend and osKernelResume are not supported.
The limitations of CMSIS-FREERTOS are described in the following reference:
https://arm-software.github.io/CMSIS-FreeRTOS/General/html/tech_data.html
BeST Regards,
Walid
2021-03-16 04:05 AM
Hello @flavio23 ,
I added the right topic "STM32CubeIDE" to your question in order to increase its chance to be reviewed by our STM32CubeIDE experts @Markus GIRDLAND .
Which CubeIDE version are you using ?
Imen
2021-03-17 04:45 AM
Hello flavio!
I'm taking a look at this and will get back to you as soon as I can.
2021-03-17 12:43 PM
Thank you so much,
I'm using the STM32CubeIDE version 1.6.0.
Flavio
2021-05-24 03:08 AM
Hello @flavio23
In the CubeL4 v1.17.0 both APIs are implemented, but could you check that the flag configUSE_OS2_THREAD_SUSPEND_RESUME is defined in FreeRTOSConfig.h file ?
Best Regards,
walid
2021-05-24 05:52 AM
Probably need to check on STM32CubeMX tool under Middleware->FreeRTOS. Make sure the suspend and resume are enabled
2021-05-24 06:21 AM
Hello @flavio23 ,
Unfortunately, osKernelSuspend and osKernelResume are not supported.
The limitations of CMSIS-FREERTOS are described in the following reference:
https://arm-software.github.io/CMSIS-FreeRTOS/General/html/tech_data.html
BeST Regards,
Walid
2022-12-15 07:06 AM
Your link yields a 404 error.
The following worked for me: https://arm-software.github.io/CMSIS-FreeRTOS/latest/tech_data.html