2026-04-02 7:52 AM
Hi,
I am at the beginner/beginning stages trying to pick up STM32 ecosystem involving touchGFX and a display board STM32H7S78-DK. For now I would like to interact a touch button on screen to turn on an LED.
Could I get guidance on the overall workflow if it is correct:
1) touchGFX - generate UI and generate code
2) open up STM32CubeIDE and import touchGFX generated .cprojects and other supporting files
3) edit .ioc file to set LED pin (PO1) as output (active-low). save and generate code
4) stm32CubeIDE -> build and run
-> LED PO1 turns on but my display goes blank
over at touchGFX when I try to regenerate code it states [generate code failure]
Could I get some guidance thanks.
2026-04-02 9:39 AM
Try more explain , or better is say in point 1 you start in TouchGFX then use only TochGFX on first projects. NO IDE NO MX NO IOC.
1. Create project direct for your DK choiced in TouchGFX.
2. On creating proces you can choice empty gui or some example project.
3. Immediately after TGFX open GUI editor press first button generate code and if ends ok , third button load to target.
4. Use any editor (no IDE) to add code to existing files. Test your led and button only with TGFX simulate and load to target.
For standart custom project you require other steps as your.
1. Create project in IDE or MX , no in TGFX...
2026-04-16 6:23 AM
Hello @platedknt ,
We have a video on our YouTube channel that demonstrates how to turn on an LED through an interaction with the screen using TouchGFX. Although the video is a bit old and uses an older version of TouchGFX, the concept remains the same.
I also recommend checking out our board-specific demo, "Control LED from GUI Demo". It also shows how to turn an LED on and off from a TouchGFX application.