由 WT_0213 贡献,Ai-Thinker 进行整理
本文介绍 Hello World 例程编译与烧录过程中遇到的问题及处理方法(前提:默认环境已配置完善)。

操作步骤
在 hello world 项目上点击鼠标右键,选择“在集成终端中打开”。

右侧出现终端窗口。

输入 make 回车,等待编译完成(完整编译日志见下方折叠区)。
环境配置没问题时编译基本能通过。查看 README 后发现缺少 CHIP=bl616 BOARD=bl616dk 参数,重新执行 make CHIP=bl616 BOARD=bl616dk 编译指定的固件。
执行 make flash CHIP=bl616 COMX=COM7 烧录。若失败,先检查设备管理器中对应的 COM 口(把 7 改成实际端口号);命令中的 chip_name 应为 bl616。
烧录前需让开发板进入烧录模式:拔掉 USB 线,Type-C 口朝下,按住右侧 BOOT 按钮,插入 USB 线后松手,再执行烧录命令。
打开串行监视器,按一下 EN 按钮(Type-C 口朝下左侧按钮)启动输出。若出现乱码,是波特率不匹配所致——将 bsp -> board -> bl616dk -> board.c 第 193 行波特率由 2000000 改为 115200,重新编译烧录后再验证。

📜 点击展开完整运行日志(编译 / 烧录输出)
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=/dev/ttyUSB0 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/aithinker_Ai-M6X_SDK/toolchain_gcc_t-head_windows/bin/riscv64-unknown-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/aithinker_Ai-M6X_SDK/toolchain_gcc_t-head_windows/bin/riscv64-unknown-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/aithinker_Ai-M6X_SDK/toolchain_gcc_t-head_windows/bin/riscv64-unknown-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CONFIG_COMX
CONFIG_USB_HS
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 0%] [ 0%] Building C object build_out/components/utils/CMakeFiles/utils.dir/log/log.c.obj
Building C object CMakeFiles/app.dir/D_/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board.c.obj[ 2%] [ 2%]
Building C object build_out/components/utils/CMakeFiles/utils.dir/ring_buffer/ring_buffer.c.objBuilding C object build_out/components/utils/CMakeFiles/utils.dir/bflb_block_pool/bflb_block_pool.c.obj
[ 3%] [ 3%]
Building C object build_out/components/libc/CMakeFiles/libc.dir/newlib/port_memory.c.objBuilding C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_common.c.obj
[ 3%] Building C object build_out/components/mm/CMakeFiles/mm.dir/mem.c.obj
[ 4%] Building ASM object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/start.S.obj
[ 4%] Building ASM object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/vector.S.obj
[ 5%] Building ASM object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/riscv_fpu.S.obj
[ 6%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/start_load.c.obj
[ 7%] Building C object CMakeFiles/app.dir/D_/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/fw_header.c.obj
[ 8%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/system_bl616.c.obj[ 9%]
Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_adc.c.obj
[ 10%] Building C object build_out/components/libc/CMakeFiles/libc.dir/newlib/syscalls_nosys.c.obj
[ 11%] Building C object build_out/components/mm/CMakeFiles/mm.dir/tlsf/tlsf.c.obj
[ 13%] [ 13%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/startup/interrupt.c.objBuilding C object build_out/components/utils/CMakeFiles/utils.dir/bflb_timestamp/bflb_timestamp.c.obj
[ 14%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_acomp.c.obj
[ 15%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_abs.c.obj
[ 16%] Linking C static library build_out\lib\libapp.a
[ 17%] Building C object build_out/components/utils/CMakeFiles/utils.dir/getopt/utils_getopt.c.obj
[ 18%] Building C object build_out/components/mm/CMakeFiles/mm.dir/tlsf/bflb_tlsf.c.obj
[ 19%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_cks.c.obj
[ 19%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_romapi_e907.c.obj
[ 20%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_ef_ctrl.c.obj
[ 21%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_romapi_patch.c.obj[ 21%] Built target app
[ 21%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_atof.c.obj
[ 22%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_atoi.c.obj
[ 22%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_gpio.c.obj
[ 23%] Linking C static library ....\lib\libutils.a
[ 24%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_common.c.obj
[ 25%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_atol.c.obj
[ 26%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_i2c.c.obj
[ 27%] Linking C static library ....\lib\libmm.a
[ 27%] Built target utils
[ 28%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_ef_cfg.c.obj
[ 29%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_atoll.c.obj
[ 30%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_dma.c.obj
[ 31%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_bsearch.c.obj
[ 32%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_sdh.c.obj
[ 32%] Built target mm
[ 33%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_rtc.c.obj
[ 33%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_checkbase.c.obj
[ 34%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_itoa.c.obj
[ 35%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_sec_aes.c.obj
[ 36%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_tzc_sec.c.obj
[ 37%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_llabs.c.obj
[ 37%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_psram.c.obj
[ 38%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_sec_sha.c.obj
[ 38%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_sec_trng.c.obj
[ 39%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_lldiv.c.obj
[ 40%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_pm.c.obj
[ 41%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_spi.c.obj
[ 42%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/src/bl616_aon.c.obj
[ 43%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_qsort.c.obj
[ 44%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_timer.c.obj
[ 45%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_uart.c.obj
[ 46%] Building C object build_out/drivers/soc/bl616/std/CMakeFiles/std.dir/port/bl616_clock.c.obj
[ 46%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/stdlib/lib_strtod.c.obj
[ 47%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_wdg.c.obj
[ 48%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_ffs.c.obj
[ 48%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_flash.c.obj
[ 49%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/flash/bflb_sf_cfg.c.obj
[ 50%] Linking C static library ........\lib\libstd.a
[ 51%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/flash/bflb_xip_sflash.c.obj
[ 52%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_ffsl.c.obj
[ 53%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/flash/bflb_sflash.c.obj
[ 54%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_ffsll.c.obj
[ 55%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_fls.c.obj
[ 56%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/flash/bflb_sf_ctrl.c.obj
[ 56%] Built target std
[ 56%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_dac.c.obj
[ 57%] [ 58%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_flsl.c.obj
Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_emac.c.obj[ 58%]
[ 59%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_flsll.c.obj
Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_ir.c.obj
[ 60%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_mjpeg.c.obj
[ 61%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_index.c.obj
[ 62%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_pwm_v2.c.obj
[ 63%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_cam.c.obj
[ 63%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_sdio2.c.obj
[ 64%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_memccpy.c.obj
[ 65%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_i2s.c.obj
[ 66%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_memchr.c.obj
[ 67%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_dbi.c.obj
[ 68%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_memcmp.c.obj
[ 69%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_audac.c.obj
[ 69%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_memmove.c.obj
[ 70%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_memrchr.c.obj
[ 71%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_memset.c.obj
[ 72%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_auadc.c.obj
[ 73%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_stpcpy.c.obj
[ 73%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_platform_dma.c.obj[ 74%]
Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_stpncpy.c.obj
[ 75%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_irq.c.obj
[ 75%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strcasecmp.c.obj
[ 76%] [ 77%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_l1c.c.obj
Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/src/bflb_mtimer.c.obj
[ 78%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strcasestr.c.obj
[ 79%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strcat.c.obj
[ 80%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/include/arch/risc-v/t-head/rv_hart.c.obj
[ 80%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/include/arch/risc-v/t-head/rv_pmp.c.obj
[ 81%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strchr.c.obj
[ 82%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strcmp.c.obj
[ 83%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strcspn.c.obj
[ 84%] Building C object build_out/drivers/lhal/CMakeFiles/lhal.dir/config/bl616/device_table.c.obj
[ 84%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strdup.c.obj
[ 85%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strnlen.c.obj
[ 86%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strpbrk.c.obj
[ 87%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strrchr.c.obj
[ 88%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strsep.c.obj
[ 88%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strspn.c.obj
[ 89%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strstr.c.obj
[ 90%] Linking C static library ....\lib\liblhal.a
[ 91%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strtok.c.obj
[ 92%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_strtokr.c.obj
[ 93%] Building C object build_out/components/libc/CMakeFiles/libc.dir/nuttx/libc/string/lib_vikmemcpy.c.obj
[ 94%] [ 94%] Building C object build_out/components/libc/CMakeFiles/libc.dir/snprintf.c.objBuilding C object build_out/components/libc/CMakeFiles/libc.dir/vsnprintf.c.obj
[ 95%] Building C object build_out/components/libc/CMakeFiles/libc.dir/sprintf.c.obj
[ 96%] [ 97%] Building C object build_out/components/libc/CMakeFiles/libc.dir/vsprintf.c.objBuilding C object build_out/components/libc/CMakeFiles/libc.dir/printf.c.obj
[ 97%] Built target lhal
[ 98%] Linking C static library ....\lib\liblibc.a
[ 98%] Built target libc
[ 99%] Building C object CMakeFiles/helloworld_bl616.elf.dir/main.c.obj
[100%] Linking C executable build_out\helloworld_bl616.elf
Generate D:/aithinker_Ai-M6X_SDK/examples/helloworld/build/build_out/helloworld_bl616.bin
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:39:00.763] - bflb firmware post process : V1.2.0
[11:39:00.763] - Chipname: bl616
[11:39:00.764] - Board config dir: ./../../bsp/board/bl616dk/config
[11:39:00.764] - Create partition using partition_cfg_4M.toml
[11:39:00.918] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:39:00.918] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:39:00.945] - 4K header found,append dts file
[11:39:00.946] - Copy boot2_bl616_release_v8.0.8.bin
[11:39:00.973] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:39:00.994] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:39:00.994] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:39:01.008] - 4K header found,append dts file
[11:39:01.009] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:39:01.023] - ========= sp image create =========
[11:39:01.024] - Flash config crc: b'b5fec518'
[11:39:01.024] - Clock config crc: b'4a05f490'
[11:39:01.024] - Image Offset:0x1000
[11:39:01.025] - Image hash is b'6ace164cd8c2c3d32acd16bf44324798e2015b118cf716294da9d7115068b52f'
[11:39:01.026] - Encrypt efuse data
[11:39:01.033] - Image Offset:0x1000
[11:39:01.033] - Image hash ignore,not calculate
[11:39:01.033] - Bootheader config crc: b'4ddfb44c'
[11:39:01.034] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:39:01.036] - ========= sp image create =========
[11:39:01.036] - Flash config crc: b'b5fec518'
[11:39:01.037] - Clock config crc: b'4a05f490'
[11:39:01.037] - Image Offset:0x2000
[11:39:01.038] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:39:01.038] - Encrypt efuse data
[11:39:01.044] - Image Offset:0x2000
[11:39:01.045] - Image hash ignore,not calculate
[11:39:01.046] - Bootheader config crc: b'ccbfa125'
[11:39:01.048] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:39:01.051] - Flash config crc: b'4fb1fe70'
[11:39:01.052] - Clock config crc: b'0b34ef89'
[11:39:01.052] - Image Offset:0x1000
[11:39:01.056] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:39:01.057] - Encrypt efuse data
[11:39:01.059] - Image Offset:0x1000
[11:39:01.060] - Bootheader config crc: b'f9cf01e0'
[11:39:01.062] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:39:01.081] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:39:01.113] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
helloworld
Support CHIP
| CHIP | Remark |
|:----------------😐:------😐
|BL602/BL604 | |
|BL702/BL704/BL706 | |
|BL616/BL618 | |
|BL808 | |
Compile
- BL602/BL604
make CHIP=bl602 BOARD=bl602dk
- BL702/BL704/BL706
make CHIP=bl702 BOARD=bl702dk
- BL616/BL618
make CHIP=bl616 BOARD=bl616dk
- BL808
make CHIP=bl808 BOARD=bl808dk CPU_ID=m0
make CHIP=bl808 BOARD=bl808dk CPU_ID=d0
Flash
make flash CHIP=chip_name COMX=xxx # xxx is your com name
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make CHIP=bl616 BOARD=bl616dk
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=/dev/ttyUSB0 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 2%] Built target app
[ 16%] Built target std
[ 53%] Built target lhal[ 53%]
Built target utils
[ 56%] Built target mm
[ 98%] Built target libc
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:39:15.700] - bflb firmware post process : V1.2.0
[11:39:15.701] - Chipname: bl616
[11:39:15.701] - Board config dir: ./../../bsp/board/bl616dk/config
[11:39:15.701] - Create partition using partition_cfg_4M.toml
[11:39:15.709] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:39:15.709] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:39:15.717] - 4K header found,append dts file
[11:39:15.718] - Copy boot2_bl616_release_v8.0.8.bin
[11:39:15.719] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:39:15.721] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:39:15.722] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:39:15.735] - 4K header found,append dts file
[11:39:15.736] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:39:15.738] - ========= sp image create =========
[11:39:15.739] - Flash config crc: b'b5fec518'
[11:39:15.739] - Clock config crc: b'4a05f490'
[11:39:15.739] - Image Offset:0x1000
[11:39:15.740] - Image hash is b'6ace164cd8c2c3d32acd16bf44324798e2015b118cf716294da9d7115068b52f'
[11:39:15.741] - Encrypt efuse data
[11:39:15.744] - Image Offset:0x1000
[11:39:15.745] - Image hash ignore,not calculate
[11:39:15.745] - Bootheader config crc: b'4ddfb44c'
[11:39:15.747] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:39:15.750] - ========= sp image create =========
[11:39:15.750] - Flash config crc: b'b5fec518'
[11:39:15.751] - Clock config crc: b'4a05f490'
[11:39:15.751] - Image Offset:0x2000
[11:39:15.752] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:39:15.752] - Encrypt efuse data
[11:39:15.754] - Image Offset:0x2000
[11:39:15.754] - Image hash ignore,not calculate
[11:39:15.755] - Bootheader config crc: b'ccbfa125'
[11:39:15.756] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:39:15.758] - Flash config crc: b'4fb1fe70'
[11:39:15.759] - Clock config crc: b'0b34ef89'
[11:39:15.759] - Image Offset:0x1000
[11:39:15.762] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:39:15.764] - Encrypt efuse data
[11:39:15.767] - Image Offset:0x1000
[11:39:15.767] - Bootheader config crc: b'f9cf01e0'
[11:39:15.769] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:39:15.776] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:39:15.810] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make flash CHIP=chip_name COMX=7
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=chip_name -DCPU_ID= -DBOARD=bl616dk
-DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=7 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
CMake Error at D:/aithinker_Ai-M6X_SDK/CMakeLists.txt:6 (add_subdirectory):
add_subdirectory given source "drivers/soc/chip_name/std" which is not an
existing directory.
-- Configuring incomplete, errors occurred!
See also "D:/aithinker_Ai-M6X_SDK/examples/helloworld/build/CMakeFiles/CMakeOutput.log".
make: *** [../../project.build:72: build] Error 1
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make flash CHIP=chip_name COMX=COM7
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=chip_name -DCPU_ID= -DBOARD=bl616dk
-DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=COM7 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
CMake Error at D:/aithinker_Ai-M6X_SDK/CMakeLists.txt:6 (add_subdirectory):
add_subdirectory given source "drivers/soc/chip_name/std" which is not an
existing directory.
-- Configuring incomplete, errors occurred!
See also "D:/aithinker_Ai-M6X_SDK/examples/helloworld/build/CMakeFiles/CMakeOutput.log".
make: *** [../../project.build:72: build] Error 1
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make flash CHIP=bl616 COMX=COM7
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=COM7 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 2%] Built target app
[ 5%] Built target mm
[ 10%] Built target utils
[ 53%] Built target std
[ 66%] Built target libc
[ 98%] Built target lhal
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:48:31.748] - bflb firmware post process : V1.2.0
[11:48:31.748] - Chipname: bl616
[11:48:31.748] - Board config dir: ./../../bsp/board/bl616dk/config
[11:48:31.749] - Create partition using partition_cfg_4M.toml
[11:48:31.752] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:48:31.752] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:48:31.757] - 4K header found,append dts file
[11:48:31.758] - Copy boot2_bl616_release_v8.0.8.bin
[11:48:31.760] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:48:31.763] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:48:31.763] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:48:31.777] - 4K header found,append dts file
[11:48:31.778] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:48:31.779] - ========= sp image create =========
[11:48:31.780] - Flash config crc: b'b5fec518'
[11:48:31.780] - Clock config crc: b'4a05f490'
[11:48:31.781] - Image Offset:0x1000
[11:48:31.781] - Image hash is b'6ace164cd8c2c3d32acd16bf44324798e2015b118cf716294da9d7115068b52f'
[11:48:31.782] - Encrypt efuse data
[11:48:31.787] - Image Offset:0x1000
[11:48:31.787] - Image hash ignore,not calculate
[11:48:31.788] - Bootheader config crc: b'4ddfb44c'
[11:48:31.789] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:48:31.790] - ========= sp image create =========
[11:48:31.790] - Flash config crc: b'b5fec518'
[11:48:31.790] - Clock config crc: b'4a05f490'
[11:48:31.790] - Image Offset:0x2000
[11:48:31.791] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:48:31.792] - Encrypt efuse data
[11:48:31.797] - Image Offset:0x2000
[11:48:31.798] - Image hash ignore,not calculate
[11:48:31.798] - Bootheader config crc: b'ccbfa125'
[11:48:31.799] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:48:31.800] - ========= sp image create =========
[11:48:31.801] - Flash config crc: b'4fb1fe70'
[11:48:31.801] - Clock config crc: b'0b34ef89'
[11:48:31.802] - Image Offset:0x1000
[11:48:31.806] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:48:31.806] - Encrypt efuse data
[11:48:31.809] - Image Offset:0x1000
[11:48:31.809] - Bootheader config crc: b'f9cf01e0'
[11:48:31.811] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:48:31.824] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:48:31.850] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe --interface=uart --baudrate=2000000 --port=COM7 --chipname=bl616 --cpu_id= --config=flash_prog_cfg.ini
['./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe', '--interface=uart', '--baudrate=2000000', '--port=COM7', '--chipname=bl616', '--cpu_id=', '--config=flash_prog_cfg.ini']
[11:48:36.844] - Serial port is COM7
[11:48:36.845] - ==================================================
[11:48:36.856] - Program Start
[11:48:36.856] - ========= eflash loader cmd arguments =========
[11:48:36.893] - serial port is COM7
[11:48:36.894] - chiptype: bl616
[11:48:36.894] - cpu_reset=False
[11:48:36.936] - ========= Interface is uart =========
[11:48:36.937] - Bootrom load
[11:48:36.937] - ========= get_boot_info =========
[11:48:36.938] - ========= image get bootinfo =========
[11:48:37.243] - tx rx and power off, press the machine!
[11:48:37.243] - cutoff time is 0.05
[11:48:37.304] - power on tx and rx
[11:48:38.294] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[11:48:38.294] - clean buf
[11:48:38.296] - send sync
[11:48:38.542] - ack is b'000000000000000000000000000000000000000000000000000000f8000080f800008000f8000000f8000000000000f80000f8000000f800f800f8000000000000000000f800f800f8000000000000000000f80000000000f80000f8000000000000000000f800008000000000f800000000000000f8000000f80000008000000000f800f8f800f80000008000000000f80000000080000000f8000000f80000000000000000000000f800f8f80000000000f8000000f80000800000f8000000800000000000f80000000000000000000000000000000000f800f800000000000000f800f8f800008000000000000000f8000000f8780000f800000000000000000000800000000000f80000000000000000f800f878000000000000f80000000000000000f8f88000f800f8000000800000000000000000000000f8000000000000f80000f80000800080000000000000f80078000000000000f800f8f800f80000000080000000000000f8000000000000000000000000808000f800000000f88000000000000000f800000000000000000000f80000000000000000000000000000008000000000000000f80000000000000000000000000000f8f800000000000000000000f800f800f800000000000000f80000000000f80000000000f800780000f8000000000000000000000000f8000000000000f800f80000f800f8f8000000000000f800f8f8f800000000f800f800000000f800f80000000000f800f80000000000000000800000000000f80000800000000000f8000000f8f80000000000f800f8000000'
[11:48:38.543] - reshake
[11:48:38.807] - tx rx and power off, press the machine!
[11:48:38.808] - cutoff time is 0.05
[11:48:38.869] - power on tx and rx
[11:48:39.860] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[11:48:39.860] - clean buf
[11:48:39.862] - send sync
[11:48:40.107] - ack is b'000000000000000000000000000000000000800000f8000000f8f8000000000000f80000808000f8f88000007880f8f800f8000000000000f8000000008000f8000000f80000000000000000f800000000f800000000000000000000800000000000000000000000008080000000f80000f800000000f800f8800000f800000000000000f8008000000000808000f80000f8000000000000808000f800f80078000000000000000000f800000078000000f8000000f800f800000080800000000000f8000000f800000000f80000f80000f8000000000000000000f800f80000f800f8f80000000000f800f80000008000f80000000000f8000000f8f800f8000000000000f8f88000f800f800800000f8f8000080f8000000000000f80000f800000000000000000000000000000000000000f8000000f8f8000000000000000000000000f80000007800000000f8000000008000000000f800f800000000000000000000f80000000000f800000000f800000000f8000000f800000000000000000000000000f800f80000000000000000f8000000000000000000f8f80078f80000000000000000f800f800000000000000000080000000f800f8000000f8008000f80000000000000000000000f800f800000000f8000000f80000000000000000f800000000000000000000000000000000f80000000000f8000000000000000000f8000000f80000f8000000f8f80000f8f80000000000000000000080000000000000000000000000008000f8000000f8780000000000000000f80000000000000000800000f80000f8'
[11:48:40.109] - reshake
[11:48:40.386] - tx rx and power off, press the machine!
[11:48:40.386] - cutoff time is 0.05
[11:48:40.446] - power on tx and rx
[11:48:41.437] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[11:48:41.437] - clean buf
[11:48:41.438] - send sync
[11:48:41.685] - ack is b'00000000000000000000000000000000000000f8000000000080000000f8000000808000000000000000000078008000000000000000000000f88000000000000000000000f800000000f800f8000000008080f80000f800008000000000f8007800000000000000f800f8008000000000000000000000f8f800f8000000000000000000f8000000000000f8f80000f800000000000000000000f8008000000000f80000000000000000f8800000f80000008000000000f80000f800000000f80080000000000000000000000000000000f8000000000000f80000f8000000000000f800f800000000008000000000f8000000f800800000008000f800f8007880008000000000f80000000000000000f800f80000000000000000000000f80000008000f8f8007800000000f880000000008000000000f8000000800000000000f8f8808000000000008000000000f800000000000000000000000000f8000000f80000f800000000000000780000f8000000000000000000f80000000000000000000000f800f800000000000000000000800000000000f800f800000000000000f80000f800f8000000000000000000000000000000f8f800f80000000000000000f800f80000f800000000000000000080f800000000f80000000000f8f800000000000000000000000000000000f800f8000000000000f800f80000000000000000000000000000f8000000000000f800f8f800788080f80000f80000000000f8f8000000008080008000000000000000000000780000f88000f80000000080f800000000f8000000000000f80000'
[11:48:41.687] - reshake
[11:48:41.688] - shake hand fail
[11:48:41.688] - ########################################################################
[11:48:41.688] - 请按照以下描述排查问题:
[11:48:41.689] - Boot pin是否上拉到板子自身的3.3V,而不是外部的3.3V
[11:48:41.689] - UART RX是否连接到USB转串口的TX引脚
[11:48:41.690] - 在使用烧录软件进行烧录前,是否在Boot pin拉高的情况下,使用Reset/Chip_En复位了芯片
[11:48:41.690] - 烧录软件所选择的COM口,是否是连接芯片的串口
[11:48:41.690] - 烧录软件上选择的波特率是否是USB转串口支持的波特率
[11:48:41.691] - 3.3V供电是否正常
[11:48:41.691] - 板子供电电流是否正常(烧录模式下,芯片耗电电流5-7mA)
[11:48:41.691] - ########################################################################
[11:48:41.692] - shake hand fail
[11:48:41.692] - ========= ChipID: =========
[11:48:41.693] - Get bootinfo time cost(ms): 4754.581298828125
[11:48:41.693] -
[11:48:41.693] - Burn Retry
[11:48:41.694] - Burn return with retry fail
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make flash CHIP=bl616 COMX=COM7
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=COM7 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 3%] Built target mm
[ 5%] Built target app
[ 19%] Built target std
[ 24%] Built target utils
[ 72%] Built target libc
[ 98%] Built target lhal
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:49:08.789] - bflb firmware post process : V1.2.0
[11:49:08.789] - Chipname: bl616
[11:49:08.790] - Board config dir: ./../../bsp/board/bl616dk/config
[11:49:08.790] - Create partition using partition_cfg_4M.toml
[11:49:08.794] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:49:08.794] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:49:08.800] - 4K header found,append dts file
[11:49:08.802] - Copy boot2_bl616_release_v8.0.8.bin
[11:49:08.804] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:49:08.806] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:49:08.806] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:49:08.816] - 4K header found,append dts file
[11:49:08.818] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:49:08.820] - ========= sp image create =========
[11:49:08.820] - Flash config crc: b'b5fec518'
[11:49:08.821] - Clock config crc: b'4a05f490'
[11:49:08.821] - Image Offset:0x1000
[11:49:08.821] - Image hash is b'6ace164cd8c2c3d32acd16bf44324798e2015b118cf716294da9d7115068b52f'
[11:49:08.822] - Encrypt efuse data
[11:49:08.827] - Image Offset:0x1000
[11:49:08.827] - Image hash ignore,not calculate
[11:49:08.827] - Bootheader config crc: b'4ddfb44c'
[11:49:08.828] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:49:08.829] - ========= sp image create =========
[11:49:08.829] - Flash config crc: b'b5fec518'
[11:49:08.830] - Clock config crc: b'4a05f490'
[11:49:08.830] - Image Offset:0x2000
[11:49:08.830] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:49:08.831] - Encrypt efuse data
[11:49:08.832] - Image Offset:0x2000
[11:49:08.832] - Image hash ignore,not calculate
[11:49:08.833] - Bootheader config crc: b'ccbfa125'
[11:49:08.834] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:49:08.836] - ========= sp image create =========
[11:49:08.838] - Flash config crc: b'4fb1fe70'
[11:49:08.838] - Clock config crc: b'0b34ef89'
[11:49:08.838] - Image Offset:0x1000
[11:49:08.842] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:49:08.843] - Encrypt efuse data
[11:49:08.845] - Image Offset:0x1000
[11:49:08.845] - Bootheader config crc: b'f9cf01e0'
[11:49:08.846] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:49:08.854] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:49:08.880] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe --interface=uart --baudrate=2000000 --port=COM7 --chipname=bl616 --cpu_id= --config=flash_prog_cfg.ini
['./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe', '--interface=uart', '--baudrate=2000000', '--port=COM7', '--chipname=bl616', '--cpu_id=', '--config=flash_prog_cfg.ini']
[11:49:11.283] - Serial port is COM7
[11:49:11.283] - ==================================================
[11:49:11.288] - Program Start
[11:49:11.289] - ========= eflash loader cmd arguments =========
[11:49:11.290] - serial port is COM7
[11:49:11.291] - chiptype: bl616
[11:49:11.291] - cpu_reset=False
[11:49:11.324] - ========= Interface is uart =========
[11:49:11.324] - Bootrom load
[11:49:11.325] - ========= get_boot_info =========
[11:49:11.325] - ========= image get bootinfo =========
[11:49:11.596] - tx rx and power off, press the machine!
[11:49:11.596] - cutoff time is 0.05
[11:49:11.658] - power on tx and rx
[11:49:12.646] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[11:49:12.646] - clean buf
[11:49:12.648] - send sync
[11:49:12.895] - ack is b'4f4b464c0201'
[11:49:12.940] - shake hand success
[11:49:13.453] - data read is b'010016060000010027128901cd002bcf0eb49a000f758010'
[11:49:13.454] - ========= ChipID: b40ecf2b00cd =========
[11:49:13.454] - Get bootinfo time cost(ms): 2129.41015625
[11:49:13.455] - change bdrate: 2000000
[11:49:13.455] - Clock PLL set
[11:49:13.457] - Set clock time cost(ms): 2.024169921875
[11:49:13.590] - Read mac addr
[11:49:13.592] - flash set para
[11:49:13.593] - get flash pin cfg from bootinfo: 0x24
[11:49:13.593] - set flash cfg: 14124
[11:49:13.594] - Set flash config
[11:49:13.597] - Set para time cost(ms): 3.026123046875
[11:49:13.597] - ========= flash read jedec ID =========
[11:49:13.600] - Read flash jedec ID
[11:49:13.600] - readdata:
[11:49:13.600] - b'5e401700'
[11:49:13.601] - Finished
[11:49:13.650] - Program operation
[11:49:13.651] - Dealing Index 0
[11:49:13.651] - ========= programming D:\aithinker_Ai-M6X_SDK\examples\helloworld.\build\build_out\helloworld_bl616.bin to 0x000000
[11:49:13.658] - flash para file: D:\aithinker_Ai-M6X_SDK\tools\bflb_tools\bouffalo_flash_cube\chips/bl616/efuse_bootheader/flash_para.bin
[11:49:13.658] - Set flash config
[11:49:13.663] - Set para time cost(ms): 3.029052734375
[11:49:13.663] - ========= flash load =========
[11:49:13.663] - ========= flash erase =========
[11:49:13.663] - Erase flash from 0x0 to 0x97bf
[11:49:13.995] - Erase time cost(ms): 331.152099609375
[11:49:14.011] - Load 2048/38848
[11:49:14.027] - Load 4096/38848
[11:49:14.042] - Load 6144/38848
[11:49:14.058] - Load 8192/38848
[11:49:14.074] - Load 10240/38848
[11:49:14.090] - Load 12288/38848
[11:49:14.106] - Load 14336/38848
[11:49:14.121] - Load 16384/38848
[11:49:14.137] - Load 18432/38848
[11:49:14.154] - Load 20480/38848
[11:49:14.170] - Load 22528/38848
[11:49:14.186] - Load 24576/38848
[11:49:14.201] - Load 26624/38848
[11:49:14.217] - Load 28672/38848
[11:49:14.233] - Load 30720/38848
[11:49:14.249] - Load 32768/38848
[11:49:14.265] - Load 34816/38848
[11:49:14.281] - Load 36864/38848
[11:49:14.297] - Load 38848/38848
[11:49:14.297] - Load 38848/38848
[11:49:14.298] - Write check
[11:49:14.303] - Finished
[11:49:14.305] - Sha caled by host: 7171533906de5fe3105f361076760193fd10af4d33c58620dd70dcc5a05d515f
[11:49:14.305] - xip mode Verify
[11:49:14.342] - Read Sha256/38848
[11:49:14.342] - Flash xip readsha time cost(ms): 33.947265625
[11:49:14.342] - Finished
[11:49:14.345] - Sha caled by dev: 7171533906de5fe3105f361076760193fd10af4d33c58620dd70dcc5a05d515f
[11:49:14.345] - Verify success
[11:49:14.347] - Program Finished
[11:49:14.347] - All time cost(ms): 3059.04150390625
[11:49:14.454] - close interface
[11:49:14.455] - [All Success]
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make CHIP=bl616 BOARD=bl616dk
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=/dev/ttyUSB0 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CONFIG_COMX
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 0%] Building C object CMakeFiles/app.dir/D_/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board.c.obj
[ 5%] Built target utils
[ 8%] Built target mm
[ 22%] Built target std
[ 90%] Built target lhal
[ 96%] Built target libc
[ 97%] Linking C static library build_out\lib\libapp.a
[ 98%] Built target app
[ 99%] Linking C executable build_out\helloworld_bl616.elf
Generate D:/aithinker_Ai-M6X_SDK/examples/helloworld/build/build_out/helloworld_bl616.bin
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:53:00.097] - bflb firmware post process : V1.2.0
[11:53:00.098] - Chipname: bl616
[11:53:00.098] - Board config dir: ./../../bsp/board/bl616dk/config
[11:53:00.098] - Create partition using partition_cfg_4M.toml
[11:53:00.101] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:53:00.102] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:53:00.108] - 4K header found,append dts file
[11:53:00.109] - Copy boot2_bl616_release_v8.0.8.bin
[11:53:00.110] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:00.112] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:00.112] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:53:00.121] - 4K header found,append dts file
[11:53:00.122] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:53:00.166] - ========= sp image create =========
[11:53:00.167] - Flash config crc: b'b5fec518'
[11:53:00.167] - Clock config crc: b'4a05f490'
[11:53:00.167] - Image Offset:0x1000
[11:53:00.168] - Image hash is b'455318b9c4db193e4be111a0df3dc3c2395ed3475cb2481af8a052626668c5f7'
[11:53:00.169] - Encrypt efuse data
[11:53:00.172] - Image Offset:0x1000
[11:53:00.173] - Image hash ignore,not calculate
[11:53:00.173] - Bootheader config crc: b'4ddfb44c'
[11:53:00.174] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:53:00.175] - ========= sp image create =========
[11:53:00.176] - Flash config crc: b'b5fec518'
[11:53:00.176] - Clock config crc: b'4a05f490'
[11:53:00.177] - Image Offset:0x2000
[11:53:00.177] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:53:00.178] - Encrypt efuse data
[11:53:00.180] - Image Offset:0x2000
[11:53:00.180] - Image hash ignore,not calculate
[11:53:00.181] - Bootheader config crc: b'ccbfa125'
[11:53:00.182] -
[11:53:00.184] - ========= sp image create =========
[11:53:00.185] - Flash config crc: b'4fb1fe70'
[11:53:00.185] - Clock config crc: b'0b34ef89'
[11:53:00.186] - Image Offset:0x1000
[11:53:00.190] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:53:00.191] - Encrypt efuse data
[11:53:00.193] - Image Offset:0x1000
[11:53:00.193] - Bootheader config crc: b'f9cf01e0'
[11:53:00.195] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:53:00.205] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:53:00.233] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make flash CHIP=bl616 COMX=COM7
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=COM7 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CONFIG_COMX
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 2%] Built target app
[ 10%] Built target utils[ 10%] Built target mm
[ 24%] Built target std
[ 66%] Built target libc
[ 98%] Built target lhal
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:53:14.194] - bflb firmware post process : V1.2.0
[11:53:14.195] - Chipname: bl616
[11:53:14.195] - Board config dir: ./../../bsp/board/bl616dk/config
[11:53:14.195] - Create partition using partition_cfg_4M.toml
[11:53:14.199] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:53:14.199] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:53:14.204] - 4K header found,append dts file
[11:53:14.205] - Copy boot2_bl616_release_v8.0.8.bin
[11:53:14.206] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:14.208] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:14.209] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:53:14.221] - 4K header found,append dts file
[11:53:14.222] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:53:14.223] - ========= sp image create =========
[11:53:14.223] - Flash config crc: b'b5fec518'
[11:53:14.223] - Clock config crc: b'4a05f490'
[11:53:14.224] - Image Offset:0x1000
[11:53:14.224] - Image hash is b'455318b9c4db193e4be111a0df3dc3c2395ed3475cb2481af8a052626668c5f7'
[11:53:14.225] - Encrypt efuse data
[11:53:14.231] - Image Offset:0x1000
[11:53:14.232] - Image hash ignore,not calculate
[11:53:14.233] - Bootheader config crc: b'4ddfb44c'
[11:53:14.234] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:53:14.235] - ========= sp image create =========
[11:53:14.235] - Flash config crc: b'b5fec518'
[11:53:14.236] - Clock config crc: b'4a05f490'
[11:53:14.236] - Image Offset:0x2000
[11:53:14.236] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:53:14.237] - Encrypt efuse data
[11:53:14.238] - Image Offset:0x2000
[11:53:14.238] - Image hash ignore,not calculate
[11:53:14.239] - Bootheader config crc: b'ccbfa125'
[11:53:14.239] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:14.240] - ========= sp image create =========
[11:53:14.242] - Flash config crc: b'4fb1fe70'
[11:53:14.242] - Clock config crc: b'0b34ef89'
[11:53:14.243] - Image Offset:0x1000
[11:53:14.248] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:53:14.249] - Encrypt efuse data
[11:53:14.252] - Image Offset:0x1000
[11:53:14.252] - Bootheader config crc: b'f9cf01e0'
[11:53:14.253] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:53:14.266] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:53:14.296] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe --interface=uart --baudrate=2000000 --port=COM7 --chipname=bl616 --cpu_id= --config=flash_prog_cfg.ini
['./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe', '--interface=uart', '--baudrate=2000000', '--port=COM7', '--chipname=bl616', '--cpu_id=', '--config=flash_prog_cfg.ini']
[11:53:16.793] - Serial port is COM7
[11:53:16.793] - ==================================================
[11:53:16.796] - Program Start
[11:53:16.796] - ========= eflash loader cmd arguments =========
[11:53:16.798] - serial port is COM7
[11:53:16.798] - chiptype: bl616
[11:53:16.798] - cpu_reset=False
[11:53:16.827] - ========= Interface is uart =========
[11:53:16.828] - Bootrom load
[11:53:16.828] - ========= get_boot_info =========
[11:53:16.828] - ========= image get bootinfo =========
[11:53:16.829] - could not open port 'COM7': FileNotFoundError(2, '系统找不到指定的文件。', None, 2)
[11:53:17.834] - could not open port 'COM7': FileNotFoundError(2, '系统找不到指定的文件。', None, 2)
[11:53:18.839] - could not open port 'COM7': FileNotFoundError(2, '系统找不到指定的文件。', None, 2)
[11:53:19.845] - Error: 'NoneType' object has no attribute 'timeout'
[11:53:19.845] - shake hand fail
[11:53:19.846] - ########################################################################
[11:53:19.846] - 请按照以下描述排查问题:
[11:53:19.847] - Boot pin是否上拉到板子自身的3.3V,而不是外部的3.3V
[11:53:19.847] - UART RX是否连接到USB转串口的TX引脚
[11:53:19.847] - 在使用烧录软件进行烧录前,是否在Boot pin拉高的情况下,使用Reset/Chip_En复位了芯片
[11:53:19.847] - 烧录软件所选择的COM口,是否是连接芯片的串口
[11:53:19.848] - 烧录软件上选择的波特率是否是USB转串口支持的波特率
[11:53:19.848] - 3.3V供电是否正常
[11:53:19.849] - 板子供电电流是否正常(烧录模式下,芯片耗电电流5-7mA)
[11:53:19.849] - ########################################################################
[11:53:19.849] - shake hand fail
[11:53:19.850] - ========= ChipID: =========
[11:53:19.850] - Get bootinfo time cost(ms): 3022.7861328125
[11:53:19.850] -
[11:53:19.851] - Burn Retry
[11:53:19.851] - Burn return with retry fail
PS D:\aithinker_Ai-M6X_SDK\examples\helloworld> make flash CHIP=bl616 COMX=COM7
./../../tools/cmake/bin/cmake.exe -S . -B build -G "MinGW Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=COM7 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:D:/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:D:/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:D:/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:D:/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:D:/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
-- Build files have been written to: D:/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[ 3%] Built target mm
[ 5%] Built target app
[ 10%] Built target utils
[ 24%] Built target std
[ 66%] Built target libc
[ 98%] Built target lhal
[100%] Built target helloworld_bl616.elf
make -C build combine
[11:53:38.015] - bflb firmware post process : V1.2.0
[11:53:38.015] - Chipname: bl616
[11:53:38.016] - Board config dir: ./../../bsp/board/bl616dk/config
[11:53:38.016] - Create partition using partition_cfg_4M.toml
[11:53:38.020] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:53:38.021] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:53:38.029] - 4K header found,append dts file
[11:53:38.031] - Copy boot2_bl616_release_v8.0.8.bin
[11:53:38.032] - Copy mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:38.034] - Create dts for D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:38.035] - Create dts using bl_factory_params_IoTKitA_auto.dts
[11:53:38.047] - 4K header found,append dts file
[11:53:38.048] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin
[11:53:38.049] - ========= sp image create =========
[11:53:38.049] - Flash config crc: b'b5fec518'
[11:53:38.050] - Clock config crc: b'4a05f490'
[11:53:38.050] - Image Offset:0x1000
[11:53:38.051] - Image hash is b'455318b9c4db193e4be111a0df3dc3c2395ed3475cb2481af8a052626668c5f7'
[11:53:38.051] - Encrypt efuse data
[11:53:38.056] - Image Offset:0x1000
[11:53:38.057] - Image hash ignore,not calculate
[11:53:38.058] - Bootheader config crc: b'4ddfb44c'
[11:53:38.059] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\boot2_bl616_release_v8.0.8.bin
[11:53:38.061] - ========= sp image create =========
[11:53:38.061] - Flash config crc: b'b5fec518'
[11:53:38.062] - Clock config crc: b'4a05f490'
[11:53:38.062] - Image Offset:0x2000
[11:53:38.063] - Image hash is b'4f4eecaddc6e597708f626253879f5560534d2e3baff848f4d96fabbce4b020f'
[11:53:38.063] - Encrypt efuse data
[11:53:38.064] - Image Offset:0x2000
[11:53:38.065] - Image hash ignore,not calculate
[11:53:38.065] - Bootheader config crc: b'ccbfa125'
[11:53:38.066] -
Process D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\mfg_bl616_gu_af8b0946f_v2.26.bin
[11:53:38.067] - ========= sp image create =========
[11:53:38.069] - Flash config crc: b'4fb1fe70'
[11:53:38.070] - Clock config crc: b'0b34ef89'
[11:53:38.070] - Image Offset:0x1000
[11:53:38.073] - Image hash is b'69de5b7af45fea2e456fb6864612126bbdad58e69294d1466a2f892e010d1f3d'
[11:53:38.074] - Encrypt efuse data
[11:53:38.076] - Image Offset:0x1000
[11:53:38.077] - Bootheader config crc: b'f9cf01e0'
[11:53:38.079] - create OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.bin.ota
[11:53:38.086] - create XZ file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz
[11:53:38.115] - create XZ OTA file:D:\aithinker_Ai-M6X_SDK\examples\helloworld\build\build_out\helloworld_bl616.xz.ota
Built target combine
./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe --interface=uart --baudrate=2000000 --port=COM7 --chipname=bl616 --cpu_id= --config=flash_prog_cfg.ini
['./../../tools/bflb_tools/bouffalo_flash_cube/BLFlashCommand.exe', '--interface=uart', '--baudrate=2000000', '--port=COM7', '--chipname=bl616', '--cpu_id=', '--config=flash_prog_cfg.ini']
[11:53:40.859] - Serial port is COM7
[11:53:40.859] - ==================================================
[11:53:40.862] - Program Start
[11:53:40.863] - ========= eflash loader cmd arguments =========
[11:53:40.863] - serial port is COM7
[11:53:40.864] - chiptype: bl616
[11:53:40.864] - cpu_reset=False
[11:53:40.893] - ========= Interface is uart =========
[11:53:40.894] - Bootrom load
[11:53:40.894] - ========= get_boot_info =========
[11:53:40.894] - ========= image get bootinfo =========
[11:53:41.173] - tx rx and power off, press the machine!
[11:53:41.174] - cutoff time is 0.05
[11:53:41.235] - power on tx and rx
[11:53:42.224] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[11:53:42.224] - clean buf
[11:53:42.226] - send sync
[11:53:42.472] - ack is b'4f4b464c0201'
[11:53:42.518] - shake hand success
[11:53:43.031] - data read is b'010016060000010027128901cd002bcf0eb49a000f758010'
[11:53:43.032] - ========= ChipID: b40ecf2b00cd =========
[11:53:43.032] - Get bootinfo time cost(ms): 2137.283203125
[11:53:43.032] - change bdrate: 2000000
[11:53:43.033] - Clock PLL set
[11:53:43.035] - Set clock time cost(ms): 2.0234375
[11:53:43.168] - Read mac addr
[11:53:43.170] - flash set para
[11:53:43.171] - get flash pin cfg from bootinfo: 0x24
[11:53:43.171] - set flash cfg: 14124
[11:53:43.171] - Set flash config
[11:53:43.175] - Set para time cost(ms): 3.026611328125
[11:53:43.175] - ========= flash read jedec ID =========
[11:53:43.178] - Read flash jedec ID
[11:53:43.178] - readdata:
[11:53:43.178] - b'5e401700'
[11:53:43.179] - Finished
[11:53:43.186] - Program operation
[11:53:43.186] - Dealing Index 0
[11:53:43.187] - ========= programming D:\aithinker_Ai-M6X_SDK\examples\helloworld.\build\build_out\helloworld_bl616.bin to 0x000000
[11:53:43.191] - flash para file: D:\aithinker_Ai-M6X_SDK\tools\bflb_tools\bouffalo_flash_cube\chips/bl616/efuse_bootheader/flash_para.bin
[11:53:43.192] - Set flash config
[11:53:43.197] - Set para time cost(ms): 3.953125
[11:53:43.197] - ========= flash load =========
[11:53:43.198] - ========= flash erase =========
[11:53:43.199] - Erase flash from 0x0 to 0x97bf
[11:53:43.504] - Erase time cost(ms): 305.228271484375
[11:53:43.521] - Load 2048/38848
[11:53:43.537] - Load 4096/38848
[11:53:43.553] - Load 6144/38848
[11:53:43.568] - Load 8192/38848
[11:53:43.585] - Load 10240/38848
[11:53:43.601] - Load 12288/38848
[11:53:43.617] - Load 14336/38848
[11:53:43.633] - Load 16384/38848
[11:53:43.649] - Load 18432/38848
[11:53:43.665] - Load 20480/38848
[11:53:43.681] - Load 22528/38848
[11:53:43.698] - Load 24576/38848
[11:53:43.713] - Load 26624/38848
[11:53:43.730] - Load 28672/38848
[11:53:43.746] - Load 30720/38848
[11:53:43.763] - Load 32768/38848
[11:53:43.779] - Load 34816/38848
[11:53:43.795] - Load 36864/38848
[11:53:43.811] - Load 38848/38848
[11:53:43.811] - Load 38848/38848
[11:53:43.811] - Write check
[11:53:43.817] - Flash load time cost(ms): 311.7744140625
[11:53:43.817] - Finished
[11:53:43.818] - Sha caled by host: a2b398b591cd49f1daadc5164f1915af270289a080d32b3ae2025e29ebd31076
[11:53:43.819] - xip mode Verify
[11:53:43.855] - Read Sha256/38848
[11:53:43.856] - Flash xip readsha time cost(ms): 34.873779296875
[11:53:43.856] - Finished
[11:53:43.858] - Sha caled by dev: a2b398b591cd49f1daadc5164f1915af270289a080d32b3ae2025e29ebd31076
[11:53:43.858] - Verify success
[11:53:43.859] - Program Finished
[11:53:43.859] - All time cost(ms): 2997.5947265625
[11:53:43.971] - close interface
[11:53:43.972] - [All Success]
最终成功编译并烧录。
make flash CHIP=bl616 COMX=COM7
这里有几点需要注意:1、CHIP : 对应的是cpu2、COMX:需要和设备管理器上看到一致3、烧录的时候需要按下boot按键。Type-c口朝下右侧的按钮。
遇到问题?
如有其他问题,请到统一的提问与讨论区:Ai-Thinker Discussions

