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 ?
2020-05-12 04: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