Skip to main content
Suitable
Associate
July 12, 2019
Question

The program can't enter into uart1_rx_interrupt

  • July 12, 2019
  • 2 replies
  • 1390 views

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

    This topic has been closed for replies.

    2 replies

    Ozone
    Principal
    July 12, 2019

    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.

    Suitable
    SuitableAuthor
    Associate
    July 12, 2019

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