cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F769I-DISCO: LCD Blank After Flashing .hex with CubeProgrammer (Works in CubeIDE)

amspurge
Associate II

Hi all,

I'm working with the STM32F769I-DISCO board and using TouchGFX for GUI development. When I build and flash the project through STM32CubeIDE, everything works fine — the LCD displays as expected.

However, when I flash the generated .hex file using STM32CubeProgrammer, the board resets and runs, but the LCD stays blank. I’ve verified that the program is running (e.g., with an LED), but no graphics appear.

Here’s what I’ve already done:

  • SDRAM is initialized via MX_FMC_Init(), and it calls BSP_SDRAM_Initialization_Sequence().

  • LCD and DSI are initialized in MX_LTDC_Init() and MX_DSIHOST_DSI_Init().

  • TouchGFX is initialized using MX_TouchGFX_Init().

  • The framebuffer is mapped to SDRAM (0xC0000000).

  • Boot config and option bytes are correct (BOOT from main flash).

  • The .hex and .bin are both generated and tested — same issue.

  • Backlight GPIO is set high manually.

It seems like CubeIDE is doing something extra that CubeProgrammer does not — possibly initializing QSPI, DSI, or loading something into RAM that doesn’t persist after a reset?

Any ideas what might be missing, or what CubeIDE might be doing during debug that I need to replicate in code?

Thanks in advance

1 REPLY 1
mƎALLEm
ST Employee

Hello,

Did you enable the QSPI flash loader when you uploaded the hex file with the CubeProgrammer?

mALLEm_0-1752243021295.png

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.