Skip to main content
Question

how to use base priority with CubeIDE

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 ?

This topic has been closed for replies.

1 reply

Pavel A.

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