Skip to main content
Sheela
Associate
August 25, 2022
Question

Hard Fault when the data section of memory increases STM32H753IIT6

  • August 25, 2022
  • 4 replies
  • 2030 views

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
August 25, 2022

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
August 26, 2022
Sheela
SheelaAuthor
Associate
August 26, 2022

0693W00000StqZ0QAJ.png

Sheela
SheelaAuthor
Associate
August 26, 2022

the MPU enable and disable doesn’t make any difference