cancel
Showing results for 
Search instead for 
Did you mean: 

The program can't enter into uart1_rx_interrupt

Suitable
Associate

I have initialized the uart1,but the code can't enter into function for theINTERRUPT_HANDLER(USART1_RX_TIM5_CC_IRQHandler,28)

2 REPLIES 2
Ozone
Lead

STM8 or STM32 ?

Anyway, check first if proper characters arrive at the RX pin.

If you effectively don't receive anything, you will have no receive interrupt.

It's STM8. I have resolved the problem that because I make the GPIO first and the PeripheralClockConfig ​should be initialized first.