hardfault with touchgfx on stm32u599
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-19 6:30 AM
my project use u599 and enabled gpu2d,but after powerup,it rendered one frame then goes into hardfault,this is debug info.
what is the problem?
- Labels:
-
GPU2D (NeoChrom)
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-19 6:57 AM
>>what is the problem?
Perhaps stack corruption, or a callback pointer invalid?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-20 8:28 PM
I tried severial times now the fault info become this:
Is there any ST guys who can help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 12:22 AM - edited ‎2025-01-21 12:27 AM
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.
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 2:56 AM
hello @Imen.D
I cant decide which part go wrong,as a parttime programmer.
the debug info now say this:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 5:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-21 3:50 PM
what do you mean by"Ensure that all memory accesses are properly aligned"? where should I focus on?
