Skip to main content
zhuij.1
Associate II
Jun 30, 2022 11:14 AM UTC
Question

TouchGFX 4.20.0(TouchGFX 4.19) + keil show image occur hardfault

show circle and change screen are normal,but show image occur hardfault.how to reslove the issue?

psr: 0x60000000
r00: 0x20000318
r01: 0x0801da48
r02: 0x00000000
r03: 0x000000df
r04: 0x2005f486
r05: 0x0801da48
r06: 0x000000ff
r07: 0x00000080
r08: 0x20060106
r09: 0x2007b89a
r10: 0x20000436
r11: 0xdeadbeef
r12: 0x08017749
 lr: 0x0800a66b
 pc: 0x00000000
hard fault on thread: TouchGFX

​

This topic has been closed for replies.

2 replies

Yoann KLEIN
ST Employee
Jul 1, 2022 10:31 AM UTC

Hello @zhuij.1​ ,

Which board are your working with ?

Could you also please share your project ?

That would be easier for us to try to identify your issue.

Thank you,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
zhuij.1
zhuij.1Author
Associate II
Jul 4, 2022 1:59 AM UTC

As the screen interface uses FSMC, we do not use the official example project, but use the Keil project generated by CubeMX. For the screen driver, we use FSMC+DMA to drive, and for RTOS, we use RT-Thread. The cubemx configuration is as follows:

0693W00000QKLSFQA5.pngBefore, we used frame cache to display images in Partial Buffer, which was normal. However, when we switched to Single Buffer or Double Buffer, various abnormal states appeared