Skip to main content
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

 

    This topic has been closed for replies.
    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_stAnswer
    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

     

    Graduate II
    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.