Skip to main content
Sheela
Associate
Aug 25, 2022 1:28 PM UTC
Question

Hard Fault when the data section of memory increases STM32H753IIT6

I’m using STM32H753IIT6 part for my development of a LCD display. I am getting a hard fault, when my data size crosses 8752 bytes. I’m using External memory using QSPI and using the FreeRTOS for GUI threads. The flash size is less than <1MB. For data size less than 8752 it works fine and if it crosses this value it hits the hard fault (it breaks inside a routine where I call a function pointer, function pointers are getting same addresses as in

Please help in figuring the issue.

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
Aug 25, 2022 4:47 PM UTC

Data from the actual Hard Fault would be most helpful

Instrument Hard Fault so it might output actionable data

https://github.com/cturvey/RandomNinjaChef/blob/main/KeilHardFault.c

Does behaviour change if you don't enable/configure the MPU?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Sheela
SheelaAuthor
Associate
Aug 26, 2022 7:57 AM UTC
Sheela
SheelaAuthor
Associate
Aug 26, 2022 10:58 AM UTC

0693W00000StqZ0QAJ.png

Sheela
SheelaAuthor
Associate
Aug 26, 2022 10:59 AM UTC

the MPU enable and disable doesn’t make any difference