2018-08-05 06:40 PM
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?
2018-08-09 01:53 PM
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.