Functions missing in FreeRTOS CMSIS v2 using STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-14 4:04 AM
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:
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.
- Labels:
-
FreeRTOS
-
STM32CubeIDE
-
STM32L4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-24 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-16 4: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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-17 4:45 AM
Hello flavio!
I'm taking a look at this and will get back to you as soon as I can.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-17 12:43 PM
Thank you so much,
I'm using the STM32CubeIDE version 1.6.0.
Flavio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-24 3: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-24 5:52 AM
Probably need to check on STM32CubeMX tool under Middleware->FreeRTOS. Make sure the suspend and resume are enabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-24 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-15 7:06 AM
Your link yields a 404 error.
The following worked for me: https://arm-software.github.io/CMSIS-FreeRTOS/latest/tech_data.html
