Skip to main content
Associate II
November 9, 2023
Solved

Not able to Run target for STM32H745-disco board using TouchGFX

  • November 9, 2023
  • 1 reply
  • 2681 views

i am facing such error while flashing the code to board.

What can be probable region ?

@JTP1 

 

ST-LINK error (DEV_CONNECT_ERR)

c:/TouchGFXProjects/11092023/gcc/include/flash_sections_int_ext.mk:5: recipe for target '_extflash_' failed
make[2]: *** [_extflash_] Error 1
make[2]: Leaving directory 'c:/TouchGFXProjects/11092023'
makefile_cm4:42: recipe for target 'flash' failed
make[1]: *** [flash] Error 2
make[1]: Leaving directory 'C:/TouchGFXProjects/11092023/gcc'
../../gcc/Makefile:10: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed

This topic has been closed for replies.
Best answer by JTP1

Hello

Are you able to program your device with CubeProgrammer ?

Please also note that you should not have Cubeprogrammer connection open to the device or CubeIDE debug session open same time when try to 'Run target' in TGFX Designer. It seems to give this exact DEV_CONNECT_ERR- error.

Br JTP

1 reply

JTP1Best answer
Graduate II
November 9, 2023

Hello

Are you able to program your device with CubeProgrammer ?

Please also note that you should not have Cubeprogrammer connection open to the device or CubeIDE debug session open same time when try to 'Run target' in TGFX Designer. It seems to give this exact DEV_CONNECT_ERR- error.

Br JTP

Associate II
November 10, 2023

thank you for the solution.

now i am able to solely run target using gfx but another issue is raised.

@JTP1 

Board : STM32H745I - DISCO

Cubeide : v.1.13.2
TouchGFX : v4.22.1 Designer

i did generate code in touchgfx then imported the entire project in cube IDE.


STM32H745I - DISCO as it is dual core m4 and m7
1st i did build and debugging for STM32H745I_DISCO_CM4 <--- (check in image). It is successful.
2nly done with building for STM32H745I_DISCO_CM7 <--- (check in image) .It is successful
But while debugging the STM32H745I_DISCO_CM7 ;

i am facing following issue ??????

 

 

Error in final launch sequence:

 

Failed to execute MI command:

load C:\\TouchGFXProjects\\T_First_Project\\STM32CubeIDE\\CM7\\Debug\\STM32H745I_DISCO_CM7.elf

 

Error message from debugger back end:

Load failed

Failed to execute MI command:

load C:\\TouchGFXProjects\\T_First_Project\\STM32CubeIDE\\CM7\\Debug\\STM32H745I_DISCO_CM7.elf

 

Error message from debugger back end:

Load failed

Failed to execute MI command:

load C:\\TouchGFXProjects\\T_First_Project\\STM32CubeIDE\\CM7\\Debug\\STM32H745I_DISCO_CM7.elf

 

Error message from debugger back end:

Load failed

Load failed



Graduate II
November 10, 2023

Hello

Im not experienced with these dual-core mcus. But check this video, it might help you :D

https://m.youtube.com/watch?v=jI1k6p-fduE

Br JTP