Infinite_Loop during UART operation
Hi,
I am using
STM32F446RETxNucleo board formy application. It was working fine till I added a new operations including asynchronous data exchange on UART5. Now
, sometimes during data exchange on the serial channel, the debbuger (the application is written in Truesudio, using HAL libraries) jumpes into thisInfinite_Loop:/**
* @brief This is the code that gets called when the processor receives an
* unexpected interrupt. This simply enters an infinite loop, preserving
* the system state for examination by a debugger.
* @param None
* @retval None
*/
.section .text.Default_Handler,'ax',%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop
.
.
.
The comment of the loop says that there might be an 'unexpected interrupt', however inside the startup file (startup_stm32f446xx.s) I see all my interrupts and their 'weak descriptions'. I also controlled the code several times and it seems to be fine.
So, I have two questions: first, how can I discovert which interrupt caused this problem? then, do you have any advice to handle this problem?
I appreciate any hint on this matter! Thank you!
#infinite_loop #startup-file #uart-interrupt-stm32f4