本帖最后由 WT_0213 于 2023-11-20 17:43 编辑
首先下载
固件烧录工具:下载地址
出厂固件:下载地址
将两个压缩包解压;
固件:
烧写工具:
打开烧写工具
默认选中的 BL616/BL618无需修改,直接点击finish。
默认烧写步骤按标号所指即可完成烧录。
进入烧写工具主页面后,
1、点击顶部MCU选项卡。
2、选择要烧写的固件
选择固件后自动带入地址栏
3、连接设备,然后点击refresh刷新按钮
port/sn 显示com 口的设备
这时直接烧写,你会发现烧写失败。因为少了一步。上电前需要按按钮。
- [17:42:36.159] - default set DTR high
- [17:42:36.268] - clean buf
- [17:42:36.270] - send sync
- [17:42:36.500] - ack is 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
- [17:42:36.502] - reshake
- [17:42:36.503] - sleep
- [17:42:38.118] - EFUSE_CFG
- [17:42:38.119] - BOOTHEADER_GROUP0_CFG
- [17:42:38.145] - Create bootheader using C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\img_create_mcu/efuse_bootheader_cfg.ini
- [17:42:38.146] - Updating data according to <C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP0_CFG]>
- [17:42:38.150] - Created file len:256
- [17:42:38.154] - Create efuse using C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\img_create_mcu/efuse_bootheader_cfg.ini
- [17:42:38.156] - Updating data according to <C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\img_create_mcu/efuse_bootheader_cfg.ini[EFUSE_CFG]>
- [17:42:38.161] - Created file len:512
- [17:42:38.167] - Image create path: C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\img_create_mcu
- [17:42:38.169] - Config file: C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\img_create_mcu/img_create_cfg.ini
- [17:42:38.238] - img already have bootheader
- [17:42:38.238] - Write flash img direct
- [17:42:38.241] - ========= eflash loader config =========
- [17:42:38.250] - group0 img len error, get 37072 except 1054272
- [17:42:38.280] - Version: eflash_loader_v2.4.5
- [17:42:38.282] - Program Start
- [17:42:38.282] - ========= eflash loader cmd arguments =========
- [17:42:38.282] - None
- [17:42:38.282] - Config file: C:\Users\tengy\Downloads\bouffalolabdevcube-v1.8.3\chips\bl616\eflash_loader\eflash_loader_cfg.ini
- [17:42:38.284] - serial port is COM5
- [17:42:38.284] - cpu_reset=False
- [17:42:38.284] - chiptype: bl616
- [17:42:38.286] - ========= Interface is uart =========
- [17:42:38.286] - com speed: 2000000
- [17:42:38.286] - Bootrom load
- [17:42:38.288] - ========= get_boot_info =========
- [17:42:38.288] - ========= image get bootinfo =========
- [17:42:39.506] - Error: 'NoneType' object has no attribute 'timeout'
- [17:42:39.507] - ErrorCode: 0001, ErrorMsg: BFLB EFLASH LOADER SHAKEHAND FAIL
- [17:42:39.508] - Shake hand redo
- [17:42:39.512] - FL00f8 unknown
- [17:42:39.512] - Not ack OK
- [17:42:39.512] - FL00f8 unknown
- [17:42:39.512] - result: FL00f8 unknown
- [17:42:39.785] - tx rx and power off, press the machine!
- [17:42:39.786] - cutoff time is 0.05
- [17:42:39.848] - power on tx and rx
- [17:42:40.847] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
- [17:42:40.848] - clean buf
- [17:42:40.850] - send sync
- [17:42:40.853] - FL0000(BFLB_SUCCESS)
- [17:42:40.854] - Not ack OK
- [17:42:40.854] - FL0000(BFLB_SUCCESS)
- [17:42:40.854] - Read log
- [17:42:40.854] - Read Fail
- [17:42:40.856] - ack is
- [17:42:40.856] - retry
- [17:42:40.856] - Error: 'NoneType' object has no attribute 'setRTS'
- [17:42:40.862] - shake hand fail
- [17:42:40.863] - ########################################################################
- [17:42:40.863] - 请按照以下描述排查问题:
- [17:42:40.863] - Boot pin是否上拉到板子自身的3.3V,而不是外部的3.3V
- [17:42:40.864] - UART RX是否连接到USB转串口的TX引脚
- [17:42:40.864] - UART TX是否连接到USB转串口的RX引脚
- [17:42:40.864] - 在使用烧录软件进行烧录前,是否在Boot pin拉高的情况下,使用Reset/Chip_En复位了芯片
- [17:42:40.864] - 烧录软件所选择的COM口,是否是连接芯片的串口
- [17:42:40.865] - 烧录软件上选择的波特率是否是USB转串口支持的波特率
- [17:42:40.865] - 3.3V供电是否正常
- [17:42:40.866] - 板子供电电流是否正常(烧录模式下,芯片耗电电流5-7mA)
- [17:42:40.866] - ########################################################################
- [17:42:40.866] - shake hand fail
- [17:42:40.866] - ErrorCode: 0050, ErrorMsg: BFLB IMG LOAD SHAKEHAND FAIL
- [17:42:40.866] - Burn Retry
- [17:42:40.867] - 0
- [17:42:40.867] - Burn return with retry fail
复制代码
我们拔掉设备,Ai-M61-32S type-c口朝下。按住type-c口右侧的按钮然后连接数据线。检测到设备后松手即可。
点击Create & DownLoad烧写,等待烧写成功即可
打开VScode 然后打开串行监视器,点击Start Monitoring,然后Ai-M61-32S type-c口朝下。按一下type-c口左侧的按钮。
从串行监视器中可以看到设备启动信息了。
|