cancel
Showing results for 
Search instead for 
Did you mean: 

how to use base priority with CubeIDE

ERoux.1
Associate

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 ?

1 REPLY 1
Pavel A.
Evangelist III

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