继续测试一下STM32的MCU脱机烧录。本次型号是STM32L053R8。
下面先打开烧录器软件,将固件烧录到烧录器中。选择读保护1级,限制10次烧录测试。加载固件,一键烧录。
固件是模拟一个U盘设备。
测试板子如下
烧录器连接如下
操作记录
[16:45:26.734]>>>当前MCU型号: STM32L053R8Tx
[16:45:26.735]>>>正在解析文件: F:/fireFlasher/firmware/opt_pack_info/st/STM32/STM32L0xx/STM32L0xxxx.yml
[16:45:32.207]>>>Running packFile......
[16:45:32.210]>>>Finish packFile......
[16:45:32.210]>>>Starting Create file......
[16:45:32.211]>>>Starting Write file......
[16:45:32.212]>>>Finish Create file F:/fireFlasher/tmp/STM32L053.fire......
[16:45:32.212]>>>Running blhost flash-erase-region, wait for a minute......
[16:45:32.220]>>>Inject command 'flash-erase-region'
[16:45:32.452]>>>Successful generic response to command 'flash-erase-region'
[16:45:32.453]>>>Response status = 0 (0x0) Success.
[16:45:32.454]>>>Running blhost write-memory ......
[16:45:32.461]>>>Inject command 'write-memory'
[16:45:32.462]>>>Preparing to send 17248 (0x4360) bytes to the target.
[16:45:32.465]>>>Successful generic response to command 'write-memory'
[16:45:32.466]>>>(1/1) 5%
[16:45:32.469]>>>(1/1)11%
[16:45:32.469]>>>(1/1)17%
[16:45:32.472]>>>(1/1)23%
[16:45:32.474]>>>(1/1)29%
[16:45:32.477]>>>(1/1)35%
[16:45:32.480]>>>(1/1)41%
[16:45:32.483]>>>(1/1)46%
[16:45:32.485]>>>(1/1)52%
[16:45:32.488]>>>(1/1)58%
[16:45:32.490]>>>(1/1)64%
[16:45:32.492]>>>(1/1)70%
[16:45:32.495]>>>(1/1)76%
[16:45:32.497]>>>(1/1)82%
[16:45:32.499]>>>(1/1)88%
[16:45:32.502]>>>(1/1)93%
[16:45:32.504]>>>(1/1)99%
[16:45:32.506]>>>(1/1)100%
[16:45:32.507]>>> Completed!
[16:45:32.507]>>>Successful generic response to command 'write-memory'
[16:45:32.507]>>>Response status = 0 (0x0) Success.
[16:45:32.508]>>>Wrote 17248 of 17248 bytes.
[16:45:32.511]>>>当前固件:STM32L053
[16:45:32.512]>>>固件注释:
[16:45:32.512]>>>最大烧录次数:10
[16:45:32.512]>>>固件地址:0x60081000
[16:45:32.513]>>>固件大小:17248
[16:45:32.513]>>>HASH:0BD06D77A4C4C6F7B745AE97D44CEAFBFE2C6DD1D1227610E4F0AD52A3460928
[16:45:32.514]>>>Running blhost flash-erase-region, wait for a minute......
[16:45:32.518]>>>Inject command 'flash-erase-region'
[16:45:32.566]>>>Successful generic response to command 'flash-erase-region'
[16:45:32.566]>>>Response status = 0 (0x0) Success.
[16:45:32.567]>>>Running blhost write-memory ......
[16:45:32.575]>>>Inject command 'write-memory'
[16:45:32.575]>>>Preparing to send 4096 (0x1000) bytes to the target.
[16:45:32.579]>>>Successful generic response to command 'write-memory'
[16:45:32.579]>>>(1/1)24%
[16:45:32.580]>>>(1/1)49%
[16:45:32.583]>>>(1/1)74%
[16:45:32.585]>>>(1/1)98%
[16:45:32.589]>>>(1/1)100%
[16:45:32.589]>>> Completed!
[16:45:32.589]>>>Successful generic response to command 'write-memory'
[16:45:32.590]>>>Response status = 0 (0x0) Success.
[16:45:32.590]>>>Wrote 4096 of 4096 bytes.
下面测试脱机烧录。软件退出配置,断开烧录器连接。
脱机烧录很成功。固件运行正常。
下面是固件运行生成的u盘设备在电脑上的显示
20230520165400
|