Skip to main content
AA.26
Visitor II
March 17, 2025
Solved

UART interrupt priority

  • March 17, 2025
  • 2 replies
  • 699 views

Hi Team,

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

Thanks & Regards,
Anbu

 

Best answer by Hl_st

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

 

2 replies

Hl_stBest answer
ST Employee
March 17, 2025

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.
Tesla DeLorean
Guru
March 17, 2025

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 VenmoUp vote any posts that you find helpful, it shows what's working..