cancel
Showing results for 
Search instead for 
Did you mean: 

TIMER interrupt priority using Register in STM32G030K6T6

Himanshu Saxena
Associate II

i am Initialize  UART2 and timer1 then my timer interrupt and UART2 interrupt in working fine but when i set priority timer first they do not set why?

 

void main(void){

NVIC-Set-Priority(TIM1_BRK_UP_TRG_COM_IRQn, 0);
NVIC-Enable-IRQ(TIM1_BRK_UP_TRG_COM_IRQn); // Timer interrupt enable
NVIC-Set-Priority(USART2_IRQn, 2);
NVIC-Enable-IRQ(USART2_IRQn); 

while (1)
{

 

}

}

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Maybe your timer interrupts are happening too frequently. Debug the program. Hit pause and see where execution is at.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

Maybe your timer interrupts are happening too frequently. Debug the program. Hit pause and see where execution is at.

If you feel a post has answered your question, please click "Accept as Solution".
Himanshu Saxena
Associate II

thanks sir,

i am done with your solution and my issue is resolve.