情况如下:
通过TouchGFX设计好一些界面后,可以直接通过F6(Run Target)去烧录程序到板子里面
然后在C:\TouchGFXProjects\MyApplication_3\TouchGFX\build\bin\路径下面可以找到intflash.hex和target.hex
我尝试通过STM32CubeProgrammer去把这两个hex文件download进去,但是都会报错
17:28:58 : Error: failed to download Segment[1]
17:28:58 : Error: failed to download the File
回到TouchGFX Designer里面的控制台
ST-LINK SN : 003F003B3137511333333639
ST-LINK FW : V3J7M2
Board : STM32H750B-DK
Voltage : 3.27V
SWD freq : 24000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Memory Programming ...
Opening and parsing file: target.hex
File : target.hex
Size : 290.36 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing memory corresponding to segment 1:
Erasing external memory sectors [0 1]
Erasing memory corresponding to segment 2:
Erasing external memory sectors [16 17]
Download in Progress:
北北北北北北北北北北北北北北北北北北北北北北北北北 0%
圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹 100%
File download complete
Time elapsed during download operation: 00:00:05.772
Hard reset is performed
Done
发现它除了擦出 sgment 0 1 2 之外,还会擦出外部的特定的memory sector
所以到底intflash.hex 和 target.hex 到底是要烧录到哪里???
再仔细看了一下TouchGFX Designer里面的控制台
Compile
make -f ../gcc/Makefile -j8
Middlewares/ST/touchgfx
Reading TouchGFX/application.config
Video Objects:
Linking 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
Done
最后写着target.hex是包含了 internal + external 的hex文件,也就是说包含了intflash.hex???
如果我不想通过TouchGFX Designer去下载程序到板子里面,想通过STM32CubeProgrammer去下载的话,需要怎样操作呢?
请各位大神指教一下小弟,谢谢。
|