45度斜向上 发表于 2016-12-14 14:21:59

STMFlashLoader 命令行方式下载

板子为STM32F407. 在官网上下载了STMFlashLoader Demo.exe 和 STMFlashLoader.exe。把BOOT0置为1,通过STMFlashLoader Demo.exe可以成功下载程序。出于某些原因需要用命令行的方式。
同样BOOT0置为1. 命令行输入:
STMFlashLoader.exe -c --pn 3 --br 115200 --co ON -Rts --Hi -Dtr --Lo -e --all -i STM32F4_05_07_15_17_1024K.STmap -d --a @08000000 --fn monitor.hex --v
但是提示无法擦除,哪位大神知道是什么原因呢?是哪里设置不对么?
Opening Port                           
Set Rts line                           
Reset Dtr line                           
the MapFile name is Map\STM32F4_05_07_15_17_1024K.STmap.STmap
This version is not intended to support the <STM32F4_05_07_15_17_1024K.STmap> ta
rget

Press any key to continue ...

45度斜向上 发表于 2016-12-14 16:56:32

不设置DTR和RTS后,
Opening Port                           

ERASING STM32...
Enter STBL_ERASE...
erasing all pages                              
the MapFile name is Map\STM32F4_05_07_15_17_1024K.STmap
Activating device                              

DOWNLOADING ...

downloading      page/sector 0   @0x8000000    size 16.00(KB)         
downloading      page/sector 1   @0x8004000    size 16.00(KB)         
downloading      page/sector 2   @0x8008000    size 16.00(KB)         
downloading      page/sector 3   @0x800C000    size 16.00(KB)         
downloading      page/sector 4   @0x8010000    size 35.63(KB)         
disabling read protection                              
reseting device                                 
手动复位之后把Boot0置为0,无法启动。文件大小也不对,在window上显示有280KB。
有哪位大神知道嘛?

45度斜向上 发表于 2016-12-14 14:37:13

发现stam的名字写错了,更改了下。
STMFlashLoader.exe -c --pn 3 --br 115200 --co ON -Rts --Hi -Dtr --Lo -e --all -i STM32F4_05_07_15_17_1024K -d --a @08000000 --fn monitor.hex --v

提示:
Opening Port                           
Set Rts line                           
Reset Dtr line                           
the MapFile name is Map\STM32F4_05_07_15_17_1024K.STmap
Activating device                              
No response from the target, the Boot loader can not be started.
Please, verify the boot mode configuration, reset your device then try again.
Please, reset your device then then press any key to continue

45度斜向上 发表于 2016-12-14 15:10:03

加上擦除提示擦除失败。Opening Port                           

ERASING STM32...
Enter STBL_ERASE...
erasing all pages                              
the MapFile name is Map\STM32F4_05_07_15_17_1024K.STmap
Activating device                              
No response from the target, the Boot loader can not be started.
Please, verify the boot mode configuration, reset your device then try again.
Please, reset your device then then press any key to continue

jackten 发表于 2016-12-14 15:38:42

学习学习               

无薪税绵 发表于 2017-3-7 08:19:02

启动模式配置不正确。

胤幻1988 发表于 2017-3-7 08:54:02

This version is not intended to support the <STM32F4_05_07_15_17_1024K.STmap> ta
rget
不是提示版本不支持么?

boboo-23776 发表于 2017-3-7 10:30:42

版本不支持

johnson_gong 发表于 2017-3-7 11:04:32

提示模式配置不正确呀

cldym 发表于 2017-3-7 11:36:44

学习学习   
页: [1] 2
查看完整版本: STMFlashLoader 命令行方式下载