Skip to main content
Associate II
September 17, 2026
Question

TouchGFX Run Target not working: STM32CubeProgrammer is not found.

  • September 17, 2026
  • 1 reply
  • 25 views

Hi,

I am trying to flash my STM32U5G9J-DK2 via TouchGFX Run Target button. The mk file returns this error:


* STM32CubeProgrammer is not found. Make sure the STM32CubeProgrammer is installed in its default directory.               *
* You can download it at https://www.st.com/en/development-tools/stm32cubeprog.html                                        *
 

I am 100% sure that STM32CubeProgrammer is installed at the right directory that is required by the mk file.

The problem happens even when trying to flash an exemple app after selecting the right demo board in TouchGFX Designer.

Anyone encountered this issue?

1 reply

GuilamAuthor
Associate II
September 18, 2026

I found 2 workarounds but I find these unsatisfiying because they require modifying the .mk files generated by TouchGFXDesigner. I was successful in flashing my board with both.

 

The first one is adding the path as a static value in first line of flash_sections_int_ext.mk:

flash_sections_int_ext.mk

The second one is modifying the syntaxe of the auto-path detection in cube_programmer.mk:

cube_programmer.mk

 

If anyone at ST have an input for why either of these modifications is necessary in my case please let me know.