cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a Hard Fault while debugging a TouchGFX example project on STM32H757I-EVAL

Pieter25
Associate II

Split from this thread for a new question.

Thank you. I've changed the programmer, and it now programmed without errors.

I however get a Hard Fault, sitting in HardFault_Handler(), as soon as I run. It happens before the code gets to main(). It also does not look like it is matching symbols to files correctly, because it is not showing code. I did check that Load Symbols is checked in debugger settings.

Can this HardFault be related, or should I start new post to help with that?

2 REPLIES 2
JohanAstrup
ST Employee

Hello @Pieter25.

Which example project are you trying to run?

Could you test the TBS for STM32H747I-EVAL available in TouchGFX Designer? I believe this project should also work for STM32H757I-EVAL.

JohanAstrup_0-1766134136915.png

Best regards,
Johan

Pieter25
Associate II

In STMCube32IDE, I followed these steps:

  1. File > New > STM32 Project.
  2. Selected Example Selector tab.
  3. Type STM32H757I-EVAL for Board, and select the TouchGFX example (see image below).
  4. Used all the default settings.
  5. Build the project.
  6. Create new debug connection to debug the TouchGFX Release that was built.
  7. Select MT25TL01G_STM32H747I-EVAL.stldr as external loader.
  8. Debug the application.

Is there something I missed or did wrong?

I've tried going into compiler options and compile with -g and -Og (to enable debugging and disable speed optimisation) but it made no difference. I can at least see the HardFault() after adding debug symbols (-g). Below is a screengrab of where it gets stuck in HardFault, and the call stack does not help me much.

Pieter25_0-1766485589589.png

Pieter25_1-1766486178249.png