2025-04-14 12:19 PM
Hello,
I am using the STM32U5G9J-DK1 to learn the GUI development, and I have created a very simple UI project in TouchGFX designer with the dev. board setup. The UI has only a box widget with a filled color, nothing else. I could successfully run the UI on the target board either:
- directly click the 'Program and Run' button in TouchGFX designer.
- or using the default STM32 CubeIDE toolchain, i.e. compile & debug in the IDE.
So far, the default CubeIDE toolchain works good.
And I realized the new TouchGFX 4.25 support CMake as the build system, and I have followed the link to set it up. I am using VS Code with the correct setup of STM32 VS Code Extension, and the X-Cube TouchGFX version is 4.25.0. Following the guide, I could successfully build the project. The target file is generated as {proj_root}/build/Debug/xxx.elf, but after downloading the file to the dev board, I get a blank screen.
What I have tried:
void touchgfx_taskEntry()
{
/*
* Main event loop. Will wait for VSYNC signal, and then process next frame. Call
* this function from your GUI task.
*
* Note This function never returns
*/
hal.taskEntry();
}
2. I also tried to flash the .elf file using Cube Programmer, also I enabled the external loaders for the external flash on this dev board. And I get the blank screen as well.
Can you please check my procedures and tell me what I am missing? Thank you very much!
Best
abo