Skip to main content
May 12, 2020
Question

how to use base priority with CubeIDE

  • May 12, 2020
  • 1 reply
  • 742 views

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.
Super User
May 12, 2020

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