Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 11 months ago.
Is there a way to set interrupt priorities?
Hi all,
My problem is I need a single interrupt, which is just signalling a high priority thread , to preempt other interrupts (Nested).
Is it possible to set the interrupt priorities to achieve this?
I know so far that all interrupts in mbed have the same priority, but I have so far not found anything that can change this.
I am using the Nucleo ST32f429ZI
Thanks for your help in advance, Dan
1 Answer
6 years, 11 months ago.
You can STM HAL functions for interrupt priority configuration (e.g. NVIC_PriorityGroupConfig
), see the STM32 documentation. Of course this makes the code non-portable to other platforms.
Regardless, are you sure you need nested interrupts?