cancel
Showing results for 
Search instead for 
Did you mean: 

hardfault with touchgfx on stm32u599

amb
Associate III

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?

6 REPLIES 6

>>what is the problem?

Perhaps stack corruption, or a callback pointer invalid?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
amb
Associate III

I tried severial times now the fault info become this:

QQ20250121-122425.png

Is there any ST guys who can help me?

Imen.D
ST Employee

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".
Thanks
Imen
amb
Associate III

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

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.

amb
Associate III

what do you mean by"Ensure that all memory accesses are properly aligned"? where should I focus on?