2024-10-03 12:50 AM
Hello,
I am using a RIverDI STM32U5A9 and I am facing a strange hardfault issue in my environment.
The connection details as follows:
ESP board <--UART--> STM32 <--MessageQueue---> LCD display
The ESP board sends continuous data through UART and the STM32 UART task receives the data and send the data to LCD display task through message queue. Whenever I try to restart the ESP after firmware update, the STM32 stops getting UART data and reinit the UART once the connection is reestablished. But the application gets into hardfault error when this happens. The hardfault occurs after few packats transfer and not on the first UART reception.
Can someone help me on this?
Thanks!
Solved! Go to Solution.
2024-10-16 05:16 AM
I was able to findout the rootcause and it was before the osMessageQueue. The issue is fixed now after I checked the buffer index which was exceeding the allocated buffer limit.
Thanks everyone for your replies!