Code Get Stuck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-17 6:11 AM
Hi,
I am using STM32L072 LoRa discovery kit and enabled UART with DMA. Some times my code gets stuck in HAL_UART_Receive_DMA( ....) function at the line
SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
This is called at the begining of the code. It wont recover at all until i reset the MCU for some number of times.
Kindly let me know how shall I resolve this issue.
- Labels:
-
DMA
-
LoRa
-
STM32L0 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-17 6:22 AM
Make sure you check and clear any noise or framing errors, etc that might be stopping the receiver from collection additional data.
Implement a timeout/recovery so it doesn't get stuck indefinitely. You'll likely need to debug/diagnose your own system.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-25 6:32 AM
