Skip to main content
Associate III
January 19, 2025
Question

hardfault with touchgfx on stm32u599

  • January 19, 2025
  • 4 replies
  • 877 views

my project use u599 and enabled gpu2d,but after powerup,it rendered one frame then goes into hardfault,this is debug info.

QQ20250119-222508.png

what is the problem?

4 replies

Tesla DeLorean
Guru
January 19, 2025

>>what is the problem?

Perhaps stack corruption, or a callback pointer invalid?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ambAuthor
Associate III
January 21, 2025

I tried severial times now the fault info become this:

QQ20250121-122425.png

Is there any ST guys who can help me?

Technical Moderator
January 21, 2025

Hello @amb ,

Check error registers to see what the hardfault is related to. The disassembly of your code around the point of failure (the faulty instruction) can also provide clues.

Ensure that all memory accesses are properly aligned.

This article might be very helpful on your investigation: How to debug a HardFault on an Arm Cortex®-M STM32.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
ambAuthor
Associate III
January 21, 2025

hello @Imen.D 

I cant decide which part go wrong,as a parttime programmer.

the debug info now say this:

QQ20250121-184620.png

I am totally confused.

I used costom made board,and one month ago ,I have a working project which displayed fine.but after re_generate the project ,something goes wrong and I cant find the problem.

urbito
Senior II
January 21, 2025

You have to, in debug mode, open the fault analyzer, and it would point you in a better direction on what is going on.

 

Hope it helps.