Skip to main content
Visitor II
July 12, 2019
Question

The program can't enter into uart1_rx_interrupt

  • July 12, 2019
  • 1 reply
  • 663 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.

    1 reply

    Explorer
    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.

    SuitableAuthor
    Visitor II
    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.