cancel
Showing results for 
Search instead for 
Did you mean: 

UART interrupt priority

AA.26
Associate

Hi Team,

I would like to know which MCU has the highest UART interrupt priority.

Thanks & Regards,
Anbu

 

2 REPLIES 2
Hl_st
ST Employee

Hello,

UART (USART) interrupt priority is set to 0 (the lowest priority) by default. But it can be easily changed up to the highest priority. It can be changed in code or in CubeMX in NVIC settings:

a.png

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

The priority and preemption level are usually configurable within the Cortex-Mx core. You should generally make interrupts short and quick, buffering and processing later, or use DMA.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..