how to use base priority with CubeIDE
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-05-12 11:20 AM
Hi, Im using CUBE IDE with freertos, I'm changing the BASEPRI in my code but it gets reset during the osDelay, why is that ?
Labels:
- Labels:
-
FreeRTOS
-
STM32CubeIDE
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-05-12 4:42 PM
Because FreeRTOS uses BASEPRI to temporarily mask low priority interrupts.
FreeRTOS restores BASEPRI on return from almost every API. This is normal and expected.
If you don't want some interrupts to occur, disable then in NVIC.
-- pa
