Skip to main content
Associate II
June 26, 2025
Question

TouchGFX - How to detect and recover from reset/failure during operation?

  • June 26, 2025
  • 1 reply
  • 353 views

Hello,

I’m currently working with an X-NUCLEO-GFX02Z1(ST7789V2) LCD using an 8080 parallel interface on a custom board. The LCD generally works well, but I’ve encountered some issues when the LCD fails to initialize correctly during power-on, or when it seems to reset or hang during operation (e.g., due to power glitches or signal noise). In these cases, the screen displays a corrupted image, stays blank, or becomes unresponsive.

Is there a reliable way to detect whether the ST7789V2 has been reset or failed during runtime?

What is the best practice to recover the LCD from this state automatically?

I appreciate any suggestions, example code, or your experience in dealing with similar issues.


Thanks in advance!

1 reply

ST Employee
June 26, 2025

Hello @wow.

I have not encountered issues similar to those you are describing with the X-NUCLEO-GFX02Z1.

There are two TBSs available in TouchGFX Designer that use the X-NUCLEO-GFX02Z1: NUCLEO-H563ZI + GFX02Z1 and NUCLEO-U575ZI + GFX02Z1.

JohanAstrup_0-1750940236585.png

I don't know if you based your display initialization code on one of the TBSs? If not, you can find the initialization code in TouchGFXHAL.cpp within the TBSs.

Have you tried reading the entire display status register when the failure occurs to check for any unusual values? This is the RDDST (0x09) register.

 

Best regards,
Johan