Nucleo F767ZI - system freeze upon UART ORE interrupt
Hi,
My system (MCU) gets into a state where I can't debug it when i get a UART interrupt due to ORE.
I even tried placing breakpoints at the places where ORE is captured in the IRQ handler - but the debugger didnt stop and I lost the connection to the target.
I found couple of threads that deal with this situation and they suggested to implement HAL_UART_ErrorCallback() and clear the ORE.
I've implemented it by:
// clear ORE by reading SR and then read DR
g_uart_sr = huart->Instance->ISR;
g_uart_dr = huart->Instance->RDR;
This seems to have solved the issue and the system is now stable and able to run for long hours.
However, I'm bothered by this behavior and would like to understand it better.
Any official documentation for this issue?
Any official documentation on how to properly debug and handle ORE?
Thanks.
