Enabling UART Idle line interrupt causes program to hang
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
![](/skins/images/B042DBD9233DBE51255C3729EC4F3C6A/responsive_peak/images/icon_anonymous_message.png)