【野火 fireFlasher Mini 脱机烧录器】[‸]()烧写测试 - RISC-V MCU技术社区 - 电子技术论坛 - 广受欢迎的专业电子论坛
分享 收藏 返回

[文章]

【野火 fireFlasher Mini 脱机烧录器】[‸]()烧写测试

本次测试STM32F407ZGT6的离线功能。

一、准备固件

因为测试的是STM32F407ZGT6的烧写,刚好手头有款原子的探索者,顺手就用上了。反正都是JTAG,都连的上。
脱机烧录器.png
LVGL的功能,固件比较大,hex size为716K。

二、固件上传至烧写器

离线烧写固件,第一步是将生成的固件上传到fireFlasher Mini 脱机烧录器,打开野火脱机烧录器上位机,直接识别出MCU,然后选择“加载固件”将需要上传的固件导入,比较大的话,上位机会提示是否切分。

FIRE1.png

[21:00:31.758]>>>已连接到fireFlasher_Mini
[21:00:43.124]>>>当前MCU型号: STM32F407ZG

选择“一键烧录”,将固件上传至fireFlasher Mini 脱机烧录器。

[21:00:43.124]>>>正在解析文件: E:/fireFlasher/firmware/opt_pack_info/st/STM32/STM32F4xx/STM32F40xxx_41xxx.yml
[21:00:45.971]>>>Running packFile......
[21:00:45.986]>>>Finish packFile......
[21:00:45.986]>>>Starting Create file......
[21:00:45.986]>>>Starting Write file......
[21:00:45.986]>>>Finish Create file E:/fireFlasher/tmp/新建固件_1.fire......
[21:00:45.986]>>>Running blhost flash-erase-region, wait for a minute......
[21:00:46.066]>>>Inject command 'flash-erase-region'
[21:00:48.901]>>>Successful generic response to command 'flash-erase-region'
[21:00:48.901]>>>Response status = 0 (0x0) Success.
[21:00:48.902]>>>Running blhost write-memory ......
[21:00:48.905]>>>Inject command 'write-memory'
[21:00:48.906]>>>Preparing to send 264112 (0x407b0) bytes to the target.
[21:00:48.910]>>>Successful generic response to command 'write-memory'
[21:00:48.912]>>>(1/1) 1%
[21:00:48.920]>>>(1/1) 2%
[21:00:48.924]>>>(1/1) 3%
[21:00:48.926]>>>(1/1) 4%
[21:00:48.926]>>>(1/1) 5%
[21:00:48.942]>>>(1/1) 6%
[21:00:48.942]>>>(1/1) 7%
[21:00:48.957]>>>(1/1) 8%
[21:00:48.957]>>>(1/1) 9%
[21:00:48.957]>>>(1/1)10%
[21:00:48.973]>>>(1/1)11%
[21:00:48.973]>>>(1/1)12%
[21:00:48.989]>>>(1/1)13%
[21:00:48.989]>>>(1/1)14%
[21:00:49.004]>>>(1/1)15%
[21:00:49.004]>>>(1/1)16%
[21:00:49.004]>>>(1/1)17%
[21:00:49.020]>>>(1/1)18%
[21:00:49.020]>>>(1/1)19%
[21:00:49.036]>>>(1/1)20%
[21:00:49.036]>>>(1/1)21%
[21:00:49.036]>>>(1/1)22%
[21:00:49.051]>>>(1/1)23%
[21:00:49.051]>>>(1/1)24%
[21:00:49.067]>>>(1/1)25%
[21:00:49.067]>>>(1/1)26%
[21:00:49.067]>>>(1/1)27%
[21:00:49.082]>>>(1/1)28%
[21:00:49.082]>>>(1/1)29%
[21:00:49.098]>>>(1/1)30%
[21:00:49.098]>>>(1/1)31%
[21:00:49.114]>>>(1/1)32%
[21:00:49.114]>>>(1/1)33%
[21:00:49.114]>>>(1/1)34%
[21:00:49.129]>>>(1/1)35%
[21:00:49.129]>>>(1/1)36%
[21:00:49.145]>>>(1/1)37%
[21:00:49.145]>>>(1/1)38%
[21:00:49.145]>>>(1/1)39%
[21:00:49.160]>>>(1/1)40%
[21:00:49.160]>>>(1/1)41%
[21:00:49.176]>>>(1/1)42%
[21:00:49.176]>>>(1/1)43%
[21:00:49.176]>>>(1/1)44%
[21:00:49.197]>>>(1/1)45%
[21:00:49.205]>>>(1/1)46%
[21:00:49.209]>>>(1/1)47%
[21:00:49.217]>>>(1/1)48%
[21:00:49.223]>>>(1/1)49%
[21:00:49.226]>>>(1/1)50%
[21:00:49.226]>>>(1/1)51%
[21:00:49.226]>>>(1/1)52%
[21:00:49.242]>>>(1/1)53%
[21:00:49.242]>>>(1/1)54%
[21:00:49.257]>>>(1/1)55%
[21:00:49.257]>>>(1/1)56%
[21:00:49.273]>>>(1/1)57%
[21:00:49.273]>>>(1/1)58%
[21:00:49.273]>>>(1/1)59%
[21:00:49.289]>>>(1/1)60%
[21:00:49.289]>>>(1/1)61%
[21:00:49.305]>>>(1/1)62%
[21:00:49.305]>>>(1/1)63%
[21:00:49.320]>>>(1/1)64%
[21:00:49.320]>>>(1/1)65%
[21:00:49.320]>>>(1/1)66%
[21:00:49.336]>>>(1/1)67%
[21:00:49.336]>>>(1/1)68%
[21:00:49.351]>>>(1/1)69%
[21:00:49.351]>>>(1/1)70%
[21:00:49.351]>>>(1/1)71%
[21:00:49.367]>>>(1/1)72%
[21:00:49.367]>>>(1/1)73%
[21:00:49.385]>>>(1/1)74%
[21:00:49.390]>>>(1/1)75%
[21:00:49.400]>>>(1/1)76%
[21:00:49.405]>>>(1/1)77%
[21:00:49.410]>>>(1/1)78%
[21:00:49.417]>>>(1/1)79%
[21:00:49.422]>>>(1/1)80%
[21:00:49.429]>>>(1/1)81%
[21:00:49.429]>>>(1/1)82%
[21:00:49.429]>>>(1/1)83%
[21:00:49.444]>>>(1/1)84%
[21:00:49.444]>>>(1/1)85%
[21:00:49.460]>>>(1/1)86%
[21:00:49.460]>>>(1/1)87%
[21:00:49.460]>>>(1/1)88%
[21:00:49.475]>>>(1/1)89%
[21:00:49.475]>>>(1/1)90%
[21:00:49.491]>>>(1/1)91%
[21:00:49.491]>>>(1/1)92%
[21:00:49.507]>>>(1/1)93%
[21:00:49.507]>>>(1/1)94%
[21:00:49.507]>>>(1/1)95%
[21:00:49.523]>>>(1/1)96%
[21:00:49.523]>>>(1/1)97%
[21:00:49.538]>>>(1/1)98%
[21:00:49.538]>>>(1/1)99%
[21:00:49.538]>>>(1/1)100%
[21:00:49.538]>>> Completed!
[21:00:49.554]>>>Successful generic response to command 'write-memory'
[21:00:49.554]>>>Response status = 0 (0x0) Success.
[21:00:49.554]>>>Wrote 264112 of 264112 bytes.
[21:00:49.554]>>>当前固件:新建固件_1
[21:00:49.554]>>>固件注释:
[21:00:49.554]>>>最大烧录次数:无限制
[21:00:49.554]>>>固件地址:0x60081000
[21:00:49.554]>>>固件大小:264112
[21:00:49.554]>>>HASH:E1FD00D091DBBBA4B8C7DF8957C10A74E6B8774F1CEB34522A4CAACBC76D761D
[21:00:49.554]>>>Running blhost flash-erase-region, wait for a minute......
[21:00:49.554]>>>Inject command 'flash-erase-region'
[21:00:49.601]>>>Successful generic response to command 'flash-erase-region'
[21:00:49.601]>>>Response status = 0 (0x0) Success.
[21:00:49.601]>>>Running blhost write-memory ......
[21:00:49.601]>>>Inject command 'write-memory'
[21:00:49.601]>>>Preparing to send 4096 (0x1000) bytes to the target.
[21:00:49.601]>>>Successful generic response to command 'write-memory'
[21:00:49.601]>>>(1/1)24%
[21:00:49.601]>>>(1/1)49%
[21:00:49.616]>>>(1/1)74%
[21:00:49.616]>>>(1/1)98%
[21:00:49.616]>>>(1/1)100%
[21:00:49.616]>>> Completed!
[21:00:49.616]>>>Successful generic response to command 'write-memory'
[21:00:49.616]>>>Response status = 0 (0x0) Success.
[21:00:49.616]>>>Wrote 4096 of 4096 bytes.

选择“退出配置”,退出FlashLoader状态,此时固件已经上传至 fireFlasher Mini 脱机烧录器,马上就可以单独使用脱机烧录器给开发板烧录程序了。

[21:01:19.972]>>>已退出配置,长按连接到上位机,或者重新插拨烧录器usb
[21:01:20.057]>>>{   "command" : "reset",   "response" : [],   "status" : {      "description" : "0 (0x0) Success.",      "value" : 0   }}
[21:01:20.089]>>>fireFlasher_Mini 已断开连接

三、一键烧写

此时可以拔掉type-c连接线,保留fireFlasher Mini 脱机烧录器与开发板的JTAG连接即可,按下红点键,此时绿灯闪烁,随着滴的一声,固件离线烧写完毕。

FIRE.jpg

更多回帖

×
发帖