2024-12-13 10:32 PM - edited 2024-12-13 11:34 PM
Hello everyone,
I'm working with an STM32H743 microcontroller, using UART in DMA mode with FreeRTOS. The system is supposed to communicate with a GPS module at a fixed baud rate of 115200.
However, when the system is powered off and back on, the GPS module defaults to a baud rate of 9600, which causes communication issues. During debugging, I observed that the tasks are blocked and the Idle Task starts running. The application seems to be stuck in the USARTx_IRQHandler, which continuously triggers.
I've tried clearing the UARTx ISR flags but the issue persists. The interrupt keeps firing and nothing seems to change.
Does scheduler need to be started manually?
Also this issue happens when I change GPS module baud rate to lower than 38400 (with trial and error) during using system. ( higher baud rates are working properly, although I didn't evaluate timing which it's not my concern in this step).
Has anyone experienced this kind of issue, or could someone provide advice on how to resolve this?
Any suggestions would be greatly appreciated.
Thanks in advance!
Solved! Go to Solution.
2024-12-14 02:26 AM
By clearing the interrupt flags before calling HAL_UART_IRQHandler(), I've resolved the issue of being stuck in USARTx_IRQHandler() and IDLE task.
2024-12-14 02:26 AM
By clearing the interrupt flags before calling HAL_UART_IRQHandler(), I've resolved the issue of being stuck in USARTx_IRQHandler() and IDLE task.