Infrequently getting UNALIGNED HardFault
Hello There,
I'm working on a FREERTOS based STM32H7A3 application.
Upon debugging, my code randomly halts on UNALIGNED hardfault. The occurrence of this fault condition is very rare. During my testing in the last 30days, I ran into this for nearly 3 times with no clue of the source of this fault.
Attaching some screenshots from the last debug session.
Call Stack

Fault Analyzer

FreeRTOS Task List

I also noticed in the FreeRTOS Task List, some Event Objects (marked in RED) showing corrupted addresses.
FreeRTOS Semaphores

I also noticed some unwanted characters present at the end of Semaphore name. It must be "appSysTaskInit" (Marked in Red).
Memory Area (Flash.ld)
MEMORY
{
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 960K
DTCMRAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
DTCMRAM2 (xrw) : ORIGIN = 0x20010000, LENGTH = 64K
DISP_FB (rw) : ORIGIN = 0x24000000, LENGTH = 150K
RAM (xrw) : ORIGIN = 0x24025800, LENGTH = 874K
RAM_CD (xrw) : ORIGIN = 0x30000000, LENGTH = 128K
RAM_SRD (xrw) : ORIGIN = 0x38000000, LENGTH = 32K
}
Thanks for taking time to read this post.
Any help is appreciated to get to know the source of the fault.
Regards,
Keshav Aggarwal
