Skip to main content
Senior
May 26, 2021 12:58 PM UTC
Solved

TouchGFX 4.16.1 Hardfaults when D-Cache is enable

Hi,

I Have a custom board with stm32h743... I design a graph page with touchGFX and when D-cache is enable, system detect some hard faults specifically when I touch a button to change screens, some times it works and some times not, When I disable D-cache, system works fine, but graphic speed degrade dramatically ...

Please help me ...

This topic has been closed for replies.
scottSD
scottSDBest answer
Senior III
Aug 10, 2021 5:36 PM UTC

I don't know if you're still stuck on this, but I had this issue a while back and it is discussed in the following thread:

https://community.st.com/s/question/0D53W00000S752ySAB/touchgfx-4160-issue-when-dcache-is-disabled

4 replies

MHaji.1Author
Senior
May 28, 2021 2:09 PM UTC

Hi,

After some page changing, I have hard fault, PRECISERR = 1 & BFARVALID = 1, with SCB->BFAR=0x24080000 .

I thing the problem is in TouchGFX....

Is there any Idea how to find out what the problem is?

Thanks.

Tesla DeLorean
Guru
Aug 10, 2021 6:45 PM UTC

Precise error at 0x24080000, looks like your code is reading beyond the AXI SRAM, doesn't sound like it is directly related to D-Cache.

I'd try to pin down exactly what code is doing that, and why.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
scottSD
scottSDBest answer
Senior III
Aug 10, 2021 5:36 PM UTC

I don't know if you're still stuck on this, but I had this issue a while back and it is discussed in the following thread:

https://community.st.com/s/question/0D53W00000S752ySAB/touchgfx-4160-issue-when-dcache-is-disabled

unsigned_char_array
Lead III
Mar 1, 2024 12:41 PM UTC

The thread is no longer accessible. I have hardfaults too. Can you please explain how you fixed it?

I get PRECISERR at MMFAR=0x8c1008

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."