我在使用TouchGFX Designer下载工程,编译无错误,下载提示错误,日志如下:
Flash
make -f ../../gcc/Makefile flash
make -C D:/stm32/stm32H7s_work/lugl_mypro1/gcc/ --no-print-directory -f makefile_boot flash
Linking Boot/TouchGFX/build/bin/target.elf
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------
ST-LINK SN : 003F00203033510135393935
ST-LINK FW : V3J15M6
Board : STM32H7S78-DK
Voltage : 3.29V
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 003F00203033510135393935
ST-LINK FW : V3J15M6
Board : STM32H7S78-DK
Voltage : 3.29V
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
make[2]: *** [_intflash_] Error 1
d:/stm32/stm32H7s_work/lugl_mypro1/gcc/include/flash_sections_int_ext.mk:10: recipe for target '_intflash_' failed
makefile_boot:45: recipe for target 'flash' failed
make[1]: *** [flash] Error 2
../../gcc/Makefile:8: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
看了信息的提示,是连接到STLINK错误,但是我使用STM32CubeIDE下载是正常的。 |
同问
找到原因了,要先写入一个正常touchgfx程序(用STM32CubeProgrammer写入),才能用touchgfx下载
恭喜大佬找到原因。