STM32H745 gets a Hardfault error?
I have developed touchgfx based applications in STM32H745XI devices only in Cortex-M7. It went smooth till few screens. later adding one more screen
has increased the memory as below
Program Size: Code=149192 RO-data=549672 RW-data=8968 ZI-data=159696
and the linker settings as as below
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08000000 0x00200000 { ; load region size_region
ER_IROM1 0x08000000 0x00200000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x24000000 0x00080000{ ; RW data
.ANY (+RW +ZI)
}
}
As per data sheet 0x2400000 AXISRAM has up to 800Kbytes of memory and there is no error for memory overflow. But code is not executing.
I have tried debugging and surprisingly it goes to hard fault. After a few continuous runs in debug mode(ignoring the hard faults) it starts working and if we remove power and plug it back nothing works.
Same code without additional screens below memory footprint is working fine even in debug or run mode.
Program Size: Code=103616 RO-data=596612 RW-data=8816 ZI-data=125072
Regards,
Narendar.v
