Skip to main content
Ash G
Associate
August 6, 2018
Question

Enabling UART Idle line interrupt causes program to hang

  • August 6, 2018
  • 1 reply
  • 616 views

I'm using STM32L062K08 MCU with HAL library. I found out setting idle line interrupt causes program to hang. It worked when I used for UART2.

__HAL_UART_ENABLE_IT(&huart1, UART_IT_IDLE);  // enable idle line interrupt

What could be the possible reason for this issue?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 9, 2018

    Probably some pending status isn't getting properly cleared and it is re-entering the IRQ Handler repeatedly.

    Look at framing, parity, overrun, noise, etc errors being flagged.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..