20220705开发板BL602的SDK编译以及刷机
2022/7/5 15:24
1、下载BL602的SDK
https://bouffalolab.github.io/bl_iot_sdk/get-started/Developer_Environment_BL602/get_started_hw_windows/get_started_hw_windows.html
BL602的快速入门
下载代码,使用 git clone git@github.com:bouffalolab/bl_iot_sdk.git 命令克隆远程仓库(如果)
提示没有权限!
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$ git clone git@github.com:bouffalolab/bl_iot_sdk.git
Cloning into 'bl_iot_sdk'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$
https://bbs.elecfans.com/jishu_2186829_1_1.html
【博流 BL-HWC-G1 开发板试用】开箱及编译烧录官方程序(BL602 IoT SDK)
源码获取:
我们使用的官方的BL_IoT_SDK源码,从gitee获取,地址如下:
源码网址:https://github.com/bouffalolab/bl_iot_sdk
如果有gitee账号,则可以通过:git clone https://github.com/bouffalolab/bl_iot_sdk.git
如果配置好gitee ssh,则可以通过:git clone git@github.com:bouffalolab/bl_iot_sdk.git
否则,可以直接下载zip包:https://github.com/bouffalolab/bl_iot_sdk/archive/refs/heads/master.zip
但是建议立刻注册gitee账号。
我是直接下载的ZIP包。下载速度从30kBps到3MBPS,速度考验的是您的人品(RPWT问题了!)
如果低于300KBPS,建议您换个时间下载试试(github的网速时好时坏!)。或者更换网络环境!
2、编译
我的编译环境可以编译RK3568的Android11,其它没有经过太多的配置!
同步完成后,便可以进入到对应的app目录进行编译了,操作如下:
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$ ll
total 1700524
drwxrwxr-x 2 rootroot rootroot 4096 7月 5 16:43 ./
drwxr-xr-x 51 rootroot rootroot 4096 7月 5 16:34 ../
-rwxr--r-- 1 rootroot rootroot 1741322817 7月 5 09:54 bl_iot_sdk-master.zip*
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$ unzip bl_iot_sdk-master.zip
成功现象如下:
rootroot@rootroot-System-Product1:~/bl602$ ll
total 1700528
drwxrwxr-x 3 rootroot rootroot 4096 7月 5 16:44 ./
drwxr-xr-x 51 rootroot rootroot 4096 7月 5 16:34 ../
drwxrwxr-x 8 rootroot rootroot 4096 7月 1 10:54 bl_iot_sdk-master/
-rwxr--r-- 1 rootroot rootroot 1741322817 7月 5 09:54 bl_iot_sdk-master.zip*
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$
rootroot@rootroot-System-Product1:~/bl602$ cd bl_iot_sdk-master/
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master$ ll
total 128
drwxrwxr-x 8 rootroot rootroot 4096 7月 1 10:54 ./
drwxrwxr-x 3 rootroot rootroot 4096 7月 5 16:44 ../
-rwxr-xr-x 1 rootroot rootroot 6205 7月 1 10:54 bl_iot_sdk_debug_eclipse.launch*
-rwxr-xr-x 1 rootroot rootroot 7530 7月 1 10:54 bl_iot_sdk_debug_freedom_studio.launch*
-rwxr-xr-x 1 rootroot rootroot 7560 7月 1 10:54 bl_iot_sdk_debug_freedom_studio_win_attach_bl702.launch*
-rwxr-xr-x 1 rootroot rootroot 7479 7月 1 10:54 bl_iot_sdk_debug_freedom_studio_win_attach.launch*
-rwxr-xr-x 1 rootroot rootroot 7550 7月 1 10:54 bl_iot_sdk_debug_freedom_studio_win_bl702.launch*
-rwxr-xr-x 1 rootroot rootroot 7474 7月 1 10:54 bl_iot_sdk_debug_freedom_studio_win.launch*
-rwxr-xr-x 1 rootroot rootroot 21 7月 1 10:54 ChangeLog*
-rwxr-xr-x 1 rootroot rootroot 306 7月 1 10:54 clean*
drwxrwxr-x 14 rootroot rootroot 4096 7月 1 10:54 components/
drwxrwxr-x 15 rootroot rootroot 4096 7月 1 10:54 customer_app/
drwxrwxr-x 15 rootroot rootroot 4096 7月 1 10:54 docs/
-rw-rw-r-- 1 rootroot rootroot 87 7月 1 10:54 .gitattributes
-rw-rw-r-- 1 rootroot rootroot 89 7月 1 10:54 .gitignore
-rwxr-xr-x 1 rootroot rootroot 11367 7月 1 10:54 LICENSE*
-rwxr-xr-x 1 rootroot rootroot 11358 7月 1 10:54 LICENSE-2.0.txt*
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 make_scripts_riscv/
-rwxr-xr-x 1 rootroot rootroot 419 7月 1 10:54 README.rst*
drwxrwxr-x 3 rootroot rootroot 4096 7月 1 10:54 toolchain/
drwxrwxr-x 4 rootroot rootroot 4096 7月 1 10:54 tools/
-rwxr-xr-x 1 rootroot rootroot 547 7月 1 10:54 version.mk*
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master$ cd customer_app/
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app$ ll
total 60
drwxrwxr-x 15 rootroot rootroot 4096 7月 1 10:54 ./
drwxrwxr-x 8 rootroot rootroot 4096 7月 1 10:54 ../
drwxrwxr-x 6 rootroot rootroot 4096 7月 1 10:54 benchmark/
drwxrwxr-x 6 rootroot rootroot 4096 7月 1 10:54 bl602_demo_event/
drwxrwxr-x 5 rootroot rootroot 4096 7月 1 10:54 bl602_demo_wifi/
drwxrwxr-x 3 rootroot rootroot 4096 7月 1 10:54 bl702_demo_event/
drwxrwxr-x 3 rootroot rootroot 4096 7月 1 10:54 bl702_demo_lmac154/
drwxrwxr-x 3 rootroot rootroot 4096 7月 1 10:54 cloud/
drwxrwxr-x 3 rootroot rootroot 4096 7月 1 10:54 common/
drwxrwxr-x 8 rootroot rootroot 4096 7月 1 10:54 component/
drwxrwxr-x 6 rootroot rootroot 4096 7月 1 10:54 enjoy/
drwxrwxr-x 4 rootroot rootroot 4096 7月 1 10:54 get-start/
drwxrwxr-x 7 rootroot rootroot 4096 7月 1 10:54 network/
drwxrwxr-x 14 rootroot rootroot 4096 7月 1 10:54 peripheral/
drwxrwxr-x 10 rootroot rootroot 4096 7月 1 10:54 system/
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app$ cd bl602_demo_event/
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$ ll
total 10100
drwxrwxr-x 6 rootroot rootroot 4096 7月 1 10:54 ./
drwxrwxr-x 15 rootroot rootroot 4096 7月 1 10:54 ../
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 bl602_demo_event/
-rwxr-xr-x 1 rootroot rootroot 4142238 7月 1 10:54 BL602模组基本功耗测量方法.docx*
-rwxr-xr-x 1 rootroot rootroot 2321645 7月 1 10:54 BL602模组基本功耗测量方法.pdf*
-rwxr-xr-x 1 rootroot rootroot 2874 7月 1 10:54 Ble_throughput.rst*
-rwxr-xr-x 1 rootroot rootroot 5071 7月 1 10:54 coex_test.rst*
-rwxr-xr-x 1 rootroot rootroot 2530424 7月 1 10:54 Coex评估测试使用手册.pdf*
-rwxr-xr-x 1 rootroot rootroot 6294 7月 1 10:54 Current_test.rst*
-rwxr-xr-x 1 rootroot rootroot 8832 7月 1 10:54 Current_test.xlsx*
-rwxr-xr-x 1 rootroot rootroot 82 7月 1 10:54 genblecontroller*
-rwxr-xr-x 1 rootroot rootroot 181 7月 1 10:54 genblehogp*
-rwxr-xr-x 1 rootroot rootroot 97 7月 1 10:54 genblem0s1*
-rwxr-xr-x 1 rootroot rootroot 98 7月 1 10:54 genblem0s1s*
-rwxr-xr-x 1 rootroot rootroot 334 7月 1 10:54 genblemesh*
-rwxr-xr-x 1 rootroot rootroot 118 7月 1 10:54 genromap*
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 img_conf/
-rwxr-xr-x 1 rootroot rootroot 565626 7月 1 10:54 Iperf_User_Manual.docx*
-rwxr-xr-x 1 rootroot rootroot 650332 7月 1 10:54 Iperf_User_Manual.pdf*
-rwxr-xr-x 1 rootroot rootroot 4166 7月 1 10:54 Iperf_User_Manual.rst*
-rwxr-xr-x 1 rootroot rootroot 17129 7月 1 10:54 logo.png*
-rwxr-xr-x 1 rootroot rootroot 2526 7月 1 10:54 Makefile*
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 picture/
-rwxr-xr-x 1 rootroot rootroot 1420 7月 1 10:54 proj_config.mk*
-rwxr-xr-x 1 rootroot rootroot 978 7月 1 10:54 README.md*
drwxrwxr-x 5 rootroot rootroot 4096 7月 1 10:54 tests/
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$ ./genromap
****** Please SET BL60X_SDK_PATH ******
****** Trying SDK PATH [/home/rootroot/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event/../..]
use existing version.mk file
****** Please SET BL60X_SDK_PATH ******
****** Trying SDK PATH [/home/rootroot/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event/../..]
use existing version.mk file
CC build_out/bl602_demo_event/aws_iot_main.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/external_libs/jsmn/jsmn.o
AS build_out/bl602/evb/src/boot/gcc/entry.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_jobs_interface.o
CC build_out/bl602_demo_event/ble.o
AS build_out/bl602/evb/src/boot/gcc/start.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_jobs_json.o
CC build_out/bl602/evb/src/debug.o
CC build_out/bl602_demo_event/blsync_ble_app.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_jobs_topics.o
CC build_out/bl_os_adapter/bl_os_adapter/bl_os_hal.o
CC build_out/bl602_demo_event/coex_debug.o
CC build_out/bl602/evb/src/strntoumax.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_jobs_types.o
CC build_out/bl602/bfl_main.o
CC build_out/bl602_demo_event/main.o
CC build_out/blcrypto_suite/src/blcrypto_suite_bignum.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_json_utils.o
CC build_out/blcrypto_suite/src/blcrypto_suite_ecp.o
CC build_out/bl602_demo_event/rijndael.o
CC build_out/blcrypto_suite/src/blcrypto_suite_ecp_curves.o
CC build_out/bl602_demo_event/wifi_prov_api.o
CC build_out/blcrypto_suite/src/blcrypto_suite_platform_util.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_common_internal.o
CC build_out/blcrypto_suite/src/blcrypto_suite_porting.o
CC build_out/blcrypto_suite/src/blcrypto_suite_hacc.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_connect.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_uart.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_adc.o
CC build_out/blmtd/bl_mtd.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_publish.o
CC build_out/blcrypto_suite/src/blcrypto_suite_aes.o
CC build_out/blcrypto_suite/src/blcrypto_suite_hacc_glue.o
CC build_out/blfdt/src/fdt.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_subscribe.o
CC build_out/blog/blog.o
CC build_out/blfdt/src/fdt_ro.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sec_eng.o
CC build_out/blfdt/src/fdt_wip.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_dma.o
CC build_out/blcrypto_suite/src/blcrypto_suite_hacc_secp256r1_mul.o
CC build_out/blcrypto_suite/src/blcrypto_suite_supplicant_api.o
CC build_out/blestack/src/port/bl_port.o
CC build_out/blestack/src/common/atomic_c.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_unsubscribe.o
CC build_out/blog_testc/blog_testc.o
CC build_out/blfdt/src/fdt_sw.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_yield.o
CC build_out/blog_testc/blog_testc1_diable.o
CC build_out/blestack/src/common/log.o
CC build_out/blestack/src/common/buf.o
In file included from /home/rootroot/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event/bl602_demo_event/ble.c:37:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:242:42: warning: 'struct bt_le_conn_param' declared inside parameter list will not be visible outside of this definition or declaration
242 | bool bt_le_conn_params_valid(const struct bt_le_conn_param *param);
| ^~~~~~~~~~~~~~~~
In file included from /home/rootroot/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event/bl602_demo_event/ble.c:37:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:246:34: warning: 'struct bt_le_conn_param' declared inside parameter list will not be visible outside of this definition or declaration
246 | int bt_le_auto_conn(const struct bt_le_conn_param *conn_param);
| ^~~~~~~~~~~~~~~~
In file included from /home/rootroot/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event/bl602_demo_event/ble.c:37:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:281:31: warning: 'struct bt_conn' declared inside parameter list will not be visible outside of this definition or declaration
281 | int bt_le_set_data_len(struct bt_conn *conn, u16_t tx_octets, u16_t tx_time);
| ^~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:282:27: warning: 'struct bt_conn' declared inside parameter list will not be visible outside of this definition or declaration
282 | int hci_le_set_phy(struct bt_conn *conn, uint8_t all_phys,
| ^~~~~~~
CC build_out/blestack/src/common/poll.o
CC build_out/blota/bl_sys_ota.o
CC build_out/bltime/bl_sys_time.o
/home/rootroot/bl602/bl_iot_sdk-master/components/os/bl_os_adapter/bl_os_adapter/bl_os_hal.c:703:13: warning: 'bl_os_update_time' defined but not used [-Wunused-function]
703 | static void bl_os_update_time(uint32_t *ms, uint32_t ticks)
| ^~~~~~~~~~~~~~~~~
CC build_out/bltime/bl_sys_time_cli.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_common.o
CC build_out/bloop/src/bloop_base.o
CC build_out/blfdt/src/fdt_rw.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_glb.o
CC build_out/blota/bl_sys_ota_cli.o
CC build_out/blfdt/src/fdt_strerror.o
CC build_out/blog_testc/blog_testc3_nopri.o
CC build_out/bloop/src/bloop_handler_sys.o
CC build_out/blog_testc/blog_testc2_full.o
CC build_out/bugkiller_freertos/bugkiller_clocktree_dump.o
CC build_out/bugkiller_freertos/bugkiller_help.o
CC build_out/blfdt/src/fdt_empty_tree.o
CC build_out/blestack/src/common/rpa.o
CC build_out/blog_testc/blog_testc4_onlypri.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_shadow.o
CC build_out/cjson/cJSON.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_shadow_actions.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_hbn.o
CC build_out/blestack/src/common/work_q.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_timer.o
CC build_out/blcrypto_suite/src/blcrypto_suite_export_fw.o
CC build_out/blfdt/src/fdt_addresses.o
CC build_out/bugkiller_freertos/bugkiller_switch_task.o
CC build_out/cli/cli/cli.o
CC build_out/bugkiller_freertos/bugkiller_uart_dump.o
CC build_out/blfdt/src/fdt_overlay.o
CC build_out/blestack/src/common/utils.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_aon.o
CC build_out/blestack/src/common/dec.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_shadow_json.o
CC build_out/blfdt/test/tc_blfdt_dump.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_pds.o
CC build_out/bugkiller_freertos/bugkillerinc_string.o
CC build_out/coredump/bl_coredump.o
CC build_out/blfdt/test/tc_blfdt_wifi.o
AR build_out/blmtd/libblmtd.a
CC build_out/blestack/src/common/dummy.o
CC build_out/aws-iot/aws-iot-device-sdk-embedded-C/src/aws_iot_shadow_records.o
CC build_out/blestack/src/common/tinycrypt/source/aes_decrypt.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_pwm.o
CC build_out/blfdt/test/blfdt_cli_test.o
CC build_out/aws-iot/port/network_mbedtls_wrapper.o
CC build_out/dns_server/src/dns_server.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_l1c.o
CC build_out/dns_server/src/web_server.o
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_help.c: In function 'bugkiller_help':
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_help.c:92:39: warning: initialization of 'struct bugkiller_command *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
92 | struct bugkiller_command *start = &__bugkiller_command_start;
| ^
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_help.c:93:37: warning: initialization of 'struct bugkiller_command *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
93 | struct bugkiller_command *end = &__bugkiller_command_end;
| ^
CC build_out/blestack/src/common/tinycrypt/source/aes_encrypt.o
CC build_out/blestack/src/common/tinycrypt/source/cbc_mode.o
CC build_out/aws-iot/port/threads_freertos.o
CC build_out/easyflash4/src/easyflash.o
CC build_out/easyflash4/src/ef_env.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_ef_ctrl.o
CC build_out/easyflash4/src/ef_env_legacy_wl.o
CC build_out/aws-iot/port/timer.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_efuse.o
CC build_out/blestack/src/common/tinycrypt/source/ccm_mode.o
CC build_out/blestack/src/common/tinycrypt/source/cmac_mode.o
CC build_out/easyflash4/src/ef_env_legacy.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_flash.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_media.o
CC build_out/easyflash4/src/ef_port.o
CC build_out/httpc/http_client.o
CC build_out/freertos_riscv_ram/event_groups.o
CC build_out/blestack/src/common/tinycrypt/source/ctr_mode.o
CC build_out/freertos_riscv_ram/list.o
CC build_out/hosal/bl602_hal/bl_uart.o
CC build_out/blestack/src/common/tinycrypt/source/ctr_prng.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_dac.o
CC build_out/hosal/bl602_hal/bl_chip.o
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/blota/bl_sys_ota_cli.c: In function 'ota_tcp_server':
CC build_out/easyflash4/src/ef_utils.o
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/blota/bl_sys_ota_cli.c:663:17: warning: passing argument 1 of 'xTaskCreate' from incompatible pointer type [-Wincompatible-pointer-types]
663 | xTaskCreate(ota_tcp_server_handle, (char*)"ota_tcp_server", 1024, NULL, 15, NULL);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/sys/blota/bl_sys_ota_cli.c:34:
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/soc/bl602/freertos_riscv_ram/config/task.h:330:41: note: expected 'TaskFunction_t' {aka 'void (*)(void *)'} but argument is of type 'void (*)(void)'
330 | BaseType_t xTaskCreate( TaskFunction_t pxTaskCode,
| ~~~~~~~~~~~~~~~^~~~~~~~~~
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_ir.o
CC build_out/freertos_riscv_ram/queue.o
CC build_out/looprt/src/looprt.o
CC build_out/looprt/src/looprt_test_cli.o
CC build_out/freertos_riscv_ram/stream_buffer.o
CC build_out/loopset/src/loopset_led.o
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_clocktree_dump.c:31:
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_clocktree_dump_bl602.inc:261:24: warning: 'clock_XCLK' defined but not used [-Wunused-variable]
261 | static struct clk_tree clock_XCLK = {
| ^~~~~~~~~~
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_clocktree_dump.c:31:
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_clocktree_dump_bl602.inc:241:12: warning: 'clock_xtal_gating_status' defined but not used [-Wunused-function]
241 | static int clock_xtal_gating_status(struct clk_tree *node)
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_clocktree_dump_bl602.inc:231:12: warning: 'clock_xtal_div_get' defined but not used [-Wunused-function]
231 | static int clock_xtal_div_get(struct clk_tree *node)
| ^~~~~~~~~~~~~~~~~~
CC build_out/hosal/bl602_hal/bl_cks.o
CC build_out/loopset/src/loopset_led_cli.o
CC build_out/hosal/bl602_hal/bl_sys.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_spi.o
CC build_out/loopset/src/loopset_ir.o
CC build_out/blestack/src/common/tinycrypt/source/ecc.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_i2c.o
CC build_out/freertos_riscv_ram/tasks.o
CC build_out/easyflash4/src/easyflash_cli.o
CC build_out/hosal/bl602_hal/bl_sys_cli.o
CC build_out/blestack/src/common/tinycrypt/source/ecc_dh.o
CC build_out/freertos_riscv_ram/timers.o
CC build_out/lwip_altcp_tls_mbedtls/src/altcp_tls_mbedtls.o
CC build_out/hosal/bl602_hal/bl_dma.o
CC build_out/lwip_dhcpd/dhcp_server_raw.o
CC build_out/loopset/src/loopset_pwm.o
CC build_out/lwip_altcp_tls_mbedtls/src/altcp_tls_mbedtls_mem.o
CC build_out/freertos_riscv_ram/misaligned/misaligned_ldst.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sdu.o
CC build_out/hosal/bl602_hal/bl_irq.o
AS build_out/freertos_riscv_ram/misaligned/fp_asm.o
CC build_out/blestack/src/common/tinycrypt/source/ecc_dsa.o
CC build_out/bl602_std/bl602_std/Common/soft_crc/softcrc.o
CC build_out/hosal/bl602_hal/bl_sec.o
CC build_out/blestack/src/common/tinycrypt/source/ecc_platform_specific.o
CC build_out/newlibc/syscalls.o
CC build_out/lwip/bugkiller/bugkillerinc_string.o
AR build_out/bltime/libbltime.a
CC build_out/newlibc/assert.o
CC build_out/lwip/lwip-port/FreeRTOS/ethernetif.o
CC build_out/freertos_riscv_ram/panic/panic_c.o
CC build_out/mbedtls_lts/mbedtls/library/xtea.o
CC build_out/hosal/bl602_hal/bl_ir.o
CC build_out/mbedtls_lts/mbedtls/library/aes.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_crc32.o
CC build_out/freertos_riscv_ram/portable/GCC/RISC-V/port.o
CC build_out/hosal/bl602_hal/bl_boot2.o
CC build_out/lwip/lwip-port/FreeRTOS/sys_arch.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_dec_lzma2.o
CC build_out/romfs/src/bl_romfs.o
CC build_out/lwip/src/api/api_lib.o
CC build_out/netutils/tcpclient/tcpclient.o
CC build_out/blestack/src/common/tinycrypt/source/hmac.o
CC build_out/mbedtls_lts/mbedtls/library/aesni.o
CC build_out/hosal/bl602_hal/bl_timer.o
CC build_out/netutils/tcpserver/tcpserver.o
CC build_out/blestack/src/common/tinycrypt/source/hmac_prng.o
CC build_out/sntp/sntp.o
CC build_out/mbedtls_lts/mbedtls/library/arc4.o
AS build_out/freertos_riscv_ram/portable/GCC/RISC-V/portASM.o
CC build_out/hosal/bl602_hal/bl_hbn.o
CC build_out/lwip/src/api/api_msg.o
CC build_out/freertos_riscv_ram/portable/MemMang/heap_5.o
CC build_out/sntp/sntp_cli.o
CC build_out/lwip/src/api/err.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_dec_stream.o
CC build_out/hosal/bl602_hal/bl_efuse.o
CC build_out/netutils/iperf/iperf.o
CC build_out/blestack/src/common/tinycrypt/source/sha256.o
CC build_out/hosal/bl602_hal/bl_flash.o
CC build_out/mbedtls_lts/mbedtls/library/aria.o
CC build_out/utils/src/utils_hex.o
CC build_out/mbedtls_lts/mbedtls/library/asn1parse.o
CC build_out/netutils/netstat/netstat.o
CC build_out/utils/src/utils_crc.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_decompress.o
CC build_out/mbedtls_lts/mbedtls/library/asn1write.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_port.o
CC build_out/vfs/src/vfs.o
CC build_out/lwip/src/api/if_api.o
CC build_out/blestack/src/common/tinycrypt/source/utils.o
CC build_out/mbedtls_lts/mbedtls/library/base64.o
CC build_out/lwip/src/api/netbuf.o
CC build_out/vfs/src/vfs_file.o
CC build_out/wifi_bt_coex/src/wifi_bt_coex.o
CC build_out/mbedtls_lts/mbedtls/library/blowfish.o
CC build_out/lwip/src/api/netdb.o
CC build_out/netutils/ping/ping.o
CC build_out/utils/src/utils_sha256.o
CC build_out/hosal/bl602_hal/bl_gpio.o
CC build_out/wifi_hosal/wifi_hosal.o
CC build_out/wifi_bt_coex/src/wifi_bt_coex_cli.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_crypt.o
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_freertos.inc:2,
from /home/rootroot/bl602/bl_iot_sdk-master/components/platform/soc/bl602/freertos_riscv_ram/tasks.c:5427:
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_task_dump.inc: In function 'bugkiller_task_dump':
CC build_out/utils/src/utils_fec.o
/home/rootroot/bl602/bl_iot_sdk-master/components/sys/bugkiller_freertos/bugkiller_task_dump.inc:294:12: warning: unused variable 'pxTCB' [-Wunused-variable]
294 | TCB_t *pxTCB = NULL;
| ^~~~~
CC build_out/wifi_hosal/port/wifi_hosal_bl602.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_hash.o
CC build_out/hosal/bl602_hal/bl_gpio_cli.o
CC build_out/vfs/src/vfs_inode.o
CC build_out/wifi_manager/bl60x_wifi_driver/ipc_host.o
CC build_out/wifi_bt_coex/src/wifi_bt_coex_ctx.o
CC build_out/blestack/src/bl_hci_wrapper/bl_hci_wrapper.o
CC build_out/vfs/src/vfs_register.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_cmds.o
CC build_out/blestack/src/hci_onchip/hci_driver.o
CC build_out/lwip/src/api/netifapi.o
CC build_out/wifi_bt_coex/src/wifi_bt_coex_impl_bl602.o
CC build_out/hosal/bl602_hal/hal_gpio.o
AR build_out/blog/libblog.a
CC build_out/mbedtls_lts/mbedtls/library/camellia.o
CC build_out/utils/src/utils_log.o
CC build_out/hosal/bl602_hal/hal_button.o
CC build_out/lwip/src/api/sockets.o
CC build_out/vfs/device/vfs_uart.o
AR build_out/looprt/liblooprt.a
CC build_out/mbedtls_lts/mbedtls/library/ccm.o
CC build_out/yloop/src/yloop.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_irqs.o
CC build_out/vfs/device/vfs_adc.o
CC build_out/utils/src/utils_dns.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_dsa.o
CC build_out/yloop/src/select.o
CC build_out/hosal/bl602_hal/bl_pwm.o
CC build_out/blestack/src/host/crypto.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_main.o
CC build_out/blestack/src/host/hci_core.o
CC build_out/lwip/src/api/tcpip.o
CC build_out/hosal/bl602_hal/bl_sec_aes.o
CC build_out/utils/src/utils_list.o
AR build_out/blog_testc/libblog_testc.a
CC build_out/vfs/device/vfs_spi.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_mod_params.o
CC build_out/yloop/src/aos_freertos.o
CC build_out/utils/src/utils_ringblk.o
CC build_out/lwip/src/apps/altcp_tls/altcp_tls_mbedtls.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_msg_rx.o
AR build_out/coredump/libcoredump.a
CC build_out/vfs/device/vfs_gpio.o
CC build_out/mbedtls_lts/mbedtls/library/certs.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_ecdsa.o
CC build_out/yloop/src/device.o
CC build_out/wpa_supplicant/port/os_bl.o
AR build_out/dns_server/libdns_server.a
CC build_out/wpa_supplicant/src/ap/ap_config.o
CC build_out/hosal/bl602_hal/bl_wifi.o
CC build_out/utils/src/utils_rbtree.o
CC build_out/lwip/src/apps/altcp_tls/altcp_tls_mbedtls_mem.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_msg_tx.o
AR build_out/bl_os_adapter/libbl_os_adapter.a
CC build_out/vfs/device/vfs_pwm.o
CC build_out/hosal/bl602_hal/bl_wdt.o
CC build_out/utils/src/utils_hexdump.o
CC build_out/yloop/src/local_event.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_platform.o
CC build_out/mbedtls_lts/mbedtls/library/chacha20.o
CC build_out/blestack/src/host/hci_ecc.o
CC build_out/wpa_supplicant/src/ap/wpa_auth_ie.o
CC build_out/bl602_std/bl602_std/Common/platform_print/platform_device.o
CC build_out/lwip/src/core/altcp.o
CC build_out/wpa_supplicant/src/ap/wpa_auth_rsn_ccmp_only.o
CC build_out/utils/src/utils_time.o
CC build_out/mbedtls_lts/mbedtls/library/chachapoly.o
CC build_out/bl602_std/bl602_std/Common/platform_print/platform_gpio.o
CC build_out/hosal/bl602_hal/bl_wdt_cli.o
CC build_out/lwip/src/core/altcp_alloc.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_rx.o
CC build_out/utils/src/utils_notifier.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_tx.o
CC build_out/hosal/bl602_hal/bl_clocktree.o
CC build_out/wpa_supplicant/src/bl_supplicant/bl_hostap.o
CC build_out/bl602_std/bl602_std/Common/ring_buffer/ring_buffer.o
CC build_out/hosal/bl602_hal/hal_boot2.o
CC build_out/wpa_supplicant/src/bl_supplicant/bl_wpa3.o
CC build_out/mbedtls_lts/mbedtls/library/cipher.o
CC build_out/lwip/src/core/altcp_tcp.o
CC build_out/wifi_manager/bl60x_wifi_driver/bl_utils.o
CC build_out/lwip/src/core/def.o
CC build_out/hosal/bl602_hal/hal_sys.o
CC build_out/utils/src/utils_getopt.o
CC build_out/mbedtls_lts/mbedtls/library/cipher_wrap.o
CC build_out/wpa_supplicant/src/bl_supplicant/bl_wpa_main.o
CC build_out/wifi_manager/bl60x_wifi_driver/stateMachine.o
CC build_out/utils/src/utils_string.o
CC build_out/wpa_supplicant/src/bl_supplicant/bl_wpas_glue.o
CC build_out/blestack/src/host/l2cap.o
CC build_out/blestack/src/host/uuid.o
CC build_out/hosal/bl602_hal/hal_board.o
AR build_out/wifi_hosal/libwifi_hosal.a
CC build_out/bl602_std/bl602_std/RISCV/Device/Bouffalo/BL602/Startup/interrupt.o
CC build_out/lwip/src/core/dns.o
CC build_out/hosal/bl602_hal/hal_ir.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi.o
CC build_out/lwip/src/core/inet_chksum.o
CC build_out/wpa_supplicant/src/bl_supplicant/bl_wps.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_romapi.o
CC build_out/utils/src/utils_hmac_sha1_fast.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_mgmr.o
CC build_out/wpa_supplicant/src/common/sae.o
CC build_out/utils/src/utils_psk_fast.o
CC build_out/blestack/src/host/att.o
AR build_out/bugkiller_freertos/libbugkiller_freertos.a
CC build_out/blestack/src/host/conn.o
CC build_out/hosal/bl602_hal/bl_adc.o
CC build_out/wpa_supplicant/src/common/wpa_common.o
AR build_out/loopset/libloopset.a
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_mgmr_api.o
CC build_out/wpa_supplicant/src/crypto/aes-cbc.o
CC build_out/mbedtls_lts/mbedtls/library/cmac.o
CC build_out/hosal/bl602_hal/bl_dac_audio.o
CC build_out/utils/src/utils_memp.o
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/hci_onchip/hci_driver.c:290:13: warning: 'recv_thread' defined but not used [-Wunused-function]
290 | static void recv_thread(void *p1)
| ^~~~~~~~~~~
CC build_out/mbedtls_lts/mbedtls/library/constant_time.o
CC build_out/lwip/src/core/init.o
AR build_out/newlibc/libnewlibc.a
CC build_out/blestack/src/host/gatt.o
CC build_out/wpa_supplicant/src/crypto/aes-internal-bl.o
CC build_out/lwip/src/core/ip.o
CC build_out/wpa_supplicant/src/crypto/aes-omac1.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sflash_ext.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_mgmr_cli.o
CC build_out/utils/src/utils_tlv_bl.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sf_cfg_ext.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_mgmr_ext.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_mgmr_profile.o
CC build_out/mbedtls_lts/mbedtls/library/ctr_drbg.o
CC build_out/mbedtls_lts/mbedtls/library/debug.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_xip_sflash_ext.o
CC build_out/blestack/src/host/smp.o
CC build_out/blestack/src/host/keys.o
CC build_out/lwip/src/core/ipv4/autoip.o
CC build_out/hosal/bl602_hal/bl_i2c.o
CC build_out/mbedtls_lts/mbedtls/library/des.o
CC build_out/lwip/src/core/ipv4/dhcp.o
CC build_out/blestack/src/host/settings.o
CC build_out/wpa_supplicant/src/crypto/aes-unwrap.o
CC build_out/mbedtls_lts/mbedtls/library/dhm.o
CC build_out/hosal/bl602_hal/bl_pm.o
CC build_out/blestack/src/cli_cmds/ble_cli_cmds.o
CC build_out/wpa_supplicant/src/crypto/aes-wrap.o
CC build_out/utils/src/utils_base64.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_netif.o
CC build_out/utils/src/utils_bitmap_window.o
CC build_out/blestack/src/cli_cmds/bredr_cli_cmds.o
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_mgmr_event.o
CC build_out/blestack/src/cli_cmds/pts_cli_cmds.o
CC build_out/lwip/src/core/ipv4/etharp.o
CC build_out/mbedtls_lts/mbedtls/library/ecdh.o
CC build_out/wpa_supplicant/src/crypto/crypto_internal-modexp.o
AR build_out/wifi_bt_coex/libwifi_bt_coex.a
CC build_out/hosal/bl602_hal/bl_pds.o
CC build_out/lwip/src/core/ipv4/icmp.o
CC build_out/mbedtls_lts/mbedtls/library/ecdsa.o
CC build_out/utils/src/test/test_utils_base64.o
AR build_out/bloop/libbloop.a
CC build_out/wifi_manager/bl60x_wifi_driver/wifi_pkt_hooks.o
CC build_out/utils/src/test/test_utils_ringblk.o
CC build_out/wpa_supplicant/src/crypto/dh_group5.o
CC build_out/mbedtls_lts/mbedtls/library/ecjpake.o
CC build_out/wpa_supplicant/src/crypto/dh_groups.o
CC build_out/blestack/src/services/ble_tp_svc.o
CC build_out/mbedtls_lts/mbedtls/library/ecp.o
CC build_out/blestack/src/host/bl_host_assist.o
CC build_out/utils/src/test/test_utils_bitmap_window.o
CC build_out/lwip/src/core/ipv4/igmp.o
CC build_out/hosal/bl602_hal/hosal_pwm.o
CC build_out/lwip/src/core/ipv4/ip4.o
CC build_out/hosal/bl602_hal/hal_pds.o
CC build_out/mbedtls_lts/mbedtls/library/ecp_curves.o
CC build_out/mbedtls_lts/mbedtls/library/entropy.o
CC build_out/wpa_supplicant/src/crypto/md5-internal.o
CC build_out/wpa_supplicant/src/crypto/md5.o
CC build_out/mbedtls_lts/mbedtls/library/entropy_poll.o
CC build_out/hosal/bl602_hal/hosal_rng.o
CC build_out/mbedtls_lts/mbedtls/library/error.o
CC build_out/lwip/src/core/ipv4/ip4_addr.o
CC build_out/wpa_supplicant/src/crypto/rc4.o
CC build_out/wpa_supplicant/src/crypto/sha1-internal.o
CC build_out/hosal/bl602_hal/bl_rtc.o
CC build_out/hosal/bl602_hal/hal_hbn.o
CC build_out/lwip/src/core/ipv4/ip4_frag.o
CC build_out/wpa_supplicant/src/crypto/sha1-pbkdf2.o
CC build_out/mbedtls_lts/mbedtls/library/gcm.o
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c: In function 'hal_sys_romapi_get':
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:69:65: warning: array subscript 88 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
69 | *(gp_data_start + 0) = (uint32_t)((uint8_t*)(gp_data_start) + 0x58);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:71:65: warning: array subscript 96 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
71 | *(gp_data_start + 1) = (uint32_t)((uint8_t*)(gp_data_start) + 0x60);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:71:5: warning: array subscript 1 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
71 | *(gp_data_start + 1) = (uint32_t)((uint8_t*)(gp_data_start) + 0x60);
| ^~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:73:5: warning: array subscript 2 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
73 | *(gp_data_start + 2) = 32 * 1000 / 1000;//Use 32K
| ^~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:66:21: warning: array subscript 1116 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
66 | romapi_freertos = (struct romapi_freertos_map*) (((uint8_t*)gp_data_start) + 0x45c);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
CC build_out/mbedtls_lts/mbedtls/library/havege.o
CC build_out/lwip/src/core/mem.o
CC build_out/hosal/bl602_hal/hal_hbnram.o
CC build_out/mbedtls_lts/mbedtls/library/hkdf.o
AR build_out/httpc/libhttpc.a
CC build_out/wpa_supplicant/src/crypto/sha1.o
CC build_out/mbedtls_lts/mbedtls/library/hmac_drbg.o
CC build_out/hosal/bl602_hal/hosal_rtc.o
AR build_out/bl602/libbl602.a
AR build_out/blota/libblota.a
CC build_out/lwip/src/core/memp.o
CC build_out/wpa_supplicant/src/crypto/sha256-internal.o
CC build_out/hosal/bl602_hal/hosal_gpio.o
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/cli_cmds/bredr_cli_cmds.c:12:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:242:42: warning: 'struct bt_le_conn_param' declared inside parameter list will not be visible outside of this definition or declaration
242 | bool bt_le_conn_params_valid(const struct bt_le_conn_param *param);
| ^~~~~~~~~~~~~~~~
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/cli_cmds/bredr_cli_cmds.c:12:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:246:34: warning: 'struct bt_le_conn_param' declared inside parameter list will not be visible outside of this definition or declaration
246 | int bt_le_auto_conn(const struct bt_le_conn_param *conn_param);
| ^~~~~~~~~~~~~~~~
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/cli_cmds/bredr_cli_cmds.c:12:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:281:31: warning: 'struct bt_conn' declared inside parameter list will not be visible outside of this definition or declaration
281 | int bt_le_set_data_len(struct bt_conn *conn, u16_t tx_octets, u16_t tx_time);
| ^~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.h:282:27: warning: 'struct bt_conn' declared inside parameter list will not be visible outside of this definition or declaration
282 | int hci_le_set_phy(struct bt_conn *conn, uint8_t all_phys,
| ^~~~~~~
CC build_out/lwip/src/core/netif.o
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c: In function 'bt_gatts_add_char':
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/cli_cmds/bredr_cli_cmds.c: In function 'bredr_remote_name':
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/cli_cmds/bredr_cli_cmds.c:374:21: warning: unused variable 'conn' [-Wunused-variable]
374 | struct bt_conn *conn;
| ^~~~
CC build_out/hosal/bl602_hal/hosal_adc.o
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.c: In function 'bt_enable':
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.c:5979:4: warning: passing argument 4 of 'k_thread_create' from incompatible pointer type [-Wincompatible-pointer-types]
5979 | bt_co_thread,
| ^~~~~~~~~~~~
| |
| void (*)(void *, void *, void *)
AR build_out/lwip_dhcpd/liblwip_dhcpd.a
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/port/include/zephyr.h:9,
from /home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/hci_core.c:10:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/port/include/bl_port.h:236:57: note: expected 'k_thread_entry_t' {aka 'void (*)(void *)'} but argument is of type 'void (*)(void *, void *, void *)'
236 | size_t stack_size, k_thread_entry_t entry,
| ~~~~~~~~~~~~~~~~~^~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c:4865:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
4865 | char_uuid = char_attr->uuid;
| ^
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c: In function 'bt_gatts_add_desc':
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c:4924:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
4924 | desc_uuid = desp_attr->uuid;
| ^
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c: In function 'bt_gatts_get_service_desp':
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c:5140:43: warning: passing argument 1 of 'attr_is_descptor' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
5140 | if(d && !attr_is_descptor(d)){
| ^
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c:5078:50: note: expected 'struct bt_gatt_attr *' but argument is of type 'const struct bt_gatt_attr *'
5078 | static int attr_is_descptor(struct bt_gatt_attr *desp_attr)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/rootroot/bl602/bl_iot_sdk-master/components/network/ble/blestack/src/host/gatt.c:5150:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
5150 | struct bt_gatt_attr * a = find_attr(phdl);
| ^~~~~~~~~
AR build_out/aws-iot/libaws-iot.a
CC build_out/lwip/src/core/pbuf.o
CC build_out/lwip/src/core/raw.o
CC build_out/mbedtls_lts/mbedtls/library/md2.o
CC build_out/hosal/bl602_hal/hosal_spi.o
CC build_out/hosal/bl602_hal/hal_hwtimer.o
CC build_out/lwip/src/core/stats.o
CC build_out/lwip/src/core/sys.o
CC build_out/mbedtls_lts/mbedtls/library/md4.o
CC build_out/mbedtls_lts/mbedtls/library/md5.o
CC build_out/hosal/bl602_hal/hal_wifi.o
CC build_out/hosal/bl602_hal/hosal_wdg.o
CC build_out/wpa_supplicant/src/crypto/sha256-prf.o
AR build_out/sntp/libsntp.a
CC build_out/lwip/src/core/tcp.o
CC build_out/wpa_supplicant/src/crypto/sha256.o
CC build_out/lwip/src/core/tcp_in.o
CXX build_out/hosal/platform_hal/platform_hal_device.o
CC build_out/wpa_supplicant/src/eap_peer/eap_common.o
CC build_out/mbedtls_lts/mbedtls/library/md.o
CC build_out/lwip/src/core/tcp_out.o
CC build_out/mbedtls_lts/mbedtls/library/memory_buffer_alloc.o
CC build_out/wpa_supplicant/src/rsn_supp/pmksa_cache.o
CC build_out/wpa_supplicant/src/rsn_supp/wpa.o
CC build_out/hosal/bl602_hal/hosal_uart.o
CC build_out/lwip/src/core/timeouts.o
CC build_out/mbedtls_lts/mbedtls/library/mps_reader.o
AR build_out/blfdt/libblfdt.a
CC build_out/mbedtls_lts/mbedtls/library/mps_trace.o
CC build_out/lwip/src/core/udp.o
CC build_out/wpa_supplicant/src/rsn_supp/wpa_ie.o
CC build_out/hosal/bl602_hal/hosal_dma.o
CC build_out/hosal/bl602_hal/hosal_flash.o
CC build_out/lwip/src/core/utils.o
CC build_out/lwip/src/netif/bridgeif.o
CC build_out/wpa_supplicant/src/utils/common.o
CC build_out/mbedtls_lts/mbedtls/library/nist_kw.o
CC build_out/mbedtls_lts/mbedtls/library/oid.o
AR build_out/yloop/libyloop.a
CC build_out/wpa_supplicant/src/utils/wpa_debug.o
CC build_out/lwip/src/netif/bridgeif_fdb.o
CC build_out/wpa_supplicant/src/utils/wpabuf.o
CC build_out/lwip/src/netif/ethernet.o
CC build_out/mbedtls_lts/mbedtls/library/padlock.o
AR build_out/vfs/libvfs.a
In file included from /home/rootroot/bl602/bl_iot_sdk-master/components/network/lwip/src/core/tcp.c:2705:
/home/rootroot/bl602/bl_iot_sdk-master/components/network/lwip/bugkiller/bugkiller_tcp_dump.inc: In function 'bugkiller_tcp_listen_dump':
/home/rootroot/bl602/bl_iot_sdk-master/components/network/lwip/bugkiller/bugkiller_tcp_dump.inc:43:28: warning: unused variable 'listen_pcb' [-Wunused-variable]
43 | struct tcp_pcb_listen *listen_pcb = (struct tcp_pcb_listen *)s;
| ^~~~~~~~~~
CC build_out/hosal/bl602_hal/hosal_dac.o
CC build_out/mbedtls_lts/mbedtls/library/pem.o
CC build_out/hosal/bl602_hal/hosal_i2c.o
CC build_out/wpa_supplicant/src/wps/wps.o
CC build_out/lwip/src/netif/lowpan6.o
CC build_out/wpa_supplicant/src/wps/wps_attr_build.o
AR build_out/bl602_demo_event/libbl602_demo_event.a
CC build_out/lwip/src/netif/lowpan6_ble.o
CC build_out/wpa_supplicant/src/wps/wps_attr_parse.o
CC build_out/mbedtls_lts/mbedtls/library/pk.o
CC build_out/hosal/bl602_hal/hosal_ota.o
CC build_out/wpa_supplicant/src/wps/wps_attr_process.o
CC build_out/mbedtls_lts/mbedtls/library/pkcs11.o
CC build_out/hosal/bl602_hal/hosal_timer.o
CC build_out/wpa_supplicant/src/wps/wps_common.o
CC build_out/wpa_supplicant/src/wps/wps_dev_attr.o
CC build_out/lwip/src/netif/lowpan6_common.o
CC build_out/mbedtls_lts/mbedtls/library/pkcs12.o
CC build_out/hosal/bl602_hal/hosal_efuse.o
CC build_out/lwip/src/netif/slipif.o
CC build_out/wpa_supplicant/src/wps/wps_enrollee.o
CC build_out/hosal/sec_common/bl_sec_sha.o
CC build_out/wpa_supplicant/src/wps/wps_registrar.o
CC build_out/mbedtls_lts/mbedtls/library/pkcs5.o
CC build_out/lwip/src/netif/zepif.o
CC build_out/mbedtls_lts/mbedtls/library/pk_wrap.o
CC build_out/wpa_supplicant/src/wps/wps_validate.o
CC build_out/hosal/sec_common/bl_sec_pka.o
CC build_out/wpa_supplicant/test/test_crypto-bl.o
CC build_out/mbedtls_lts/mbedtls/library/pkwrite.o
CC build_out/hosal/sec_common/bl_sec_aes.o
CC build_out/mbedtls_lts/mbedtls/library/platform.o
AR build_out/netutils/libnetutils.a
CC build_out/mbedtls_lts/mbedtls/library/platform_util.o
CC build_out/mbedtls_lts/mbedtls/library/poly1305.o
CC build_out/mbedtls_lts/mbedtls/library/ripemd160.o
CC build_out/mbedtls_lts/mbedtls/library/rsa.o
AR build_out/lwip_altcp_tls_mbedtls/liblwip_altcp_tls_mbedtls.a
CC build_out/mbedtls_lts/mbedtls/library/rsa_internal.o
CC build_out/mbedtls_lts/mbedtls/library/sha1.o
CC build_out/mbedtls_lts/mbedtls/library/sha256.o
CC build_out/mbedtls_lts/mbedtls/library/sha512.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_cache.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_ciphersuites.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_cli.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_cookie.o
AR build_out/romfs/libromfs.a
AR build_out/cli/libcli.a
CC build_out/mbedtls_lts/mbedtls/library/ssl_msg.o
AR build_out/easyflash4/libeasyflash4.a
CC build_out/mbedtls_lts/mbedtls/library/ssl_srv.o
AR build_out/utils/libutils.a
CC build_out/mbedtls_lts/mbedtls/library/ssl_ticket.o
AR build_out/bl602_std/libbl602_std.a
CC build_out/mbedtls_lts/mbedtls/library/ssl_tls13_keys.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_tls.o
CC build_out/mbedtls_lts/mbedtls/library/threading.o
AR build_out/blcrypto_suite/libblcrypto_suite.a
CC build_out/mbedtls_lts/mbedtls/library/timing.o
CC build_out/mbedtls_lts/mbedtls/library/version.o
CC build_out/mbedtls_lts/mbedtls/library/version_features.o
CC build_out/mbedtls_lts/mbedtls/library/x509.o
AR build_out/cjson/libcjson.a
CC build_out/mbedtls_lts/mbedtls/library/x509_create.o
CC build_out/mbedtls_lts/mbedtls/library/x509_crl.o
CC build_out/mbedtls_lts/mbedtls/library/x509_crt.o
CC build_out/mbedtls_lts/mbedtls/library/x509_csr.o
AR build_out/wifi_manager/libwifi_manager.a
CC build_out/mbedtls_lts/mbedtls/library/x509write_crt.o
CC build_out/mbedtls_lts/mbedtls/library/x509write_csr.o
CC build_out/mbedtls_lts/port/pkparse.o
CC build_out/mbedtls_lts/port/mbedtls_port_mem.o
CC build_out/mbedtls_lts/port/net_sockets.o
CC build_out/mbedtls_lts/port/hw_entropy_poll.o
CC build_out/mbedtls_lts/port/bignum_ext.o
CC build_out/mbedtls_lts/port/bignum.o
CC build_out/mbedtls_lts/port/hw_acc/bignum_hw.o
CC build_out/mbedtls_lts/port/hw_acc/aes_alt.o
CC build_out/mbedtls_lts/port/hw_acc/ecp_alt.o
AR build_out/freertos_riscv_ram/libfreertos_riscv_ram.a
CC build_out/mbedtls_lts/port/hw_acc/ecp_curves_alt.o
CC build_out/mbedtls_lts/port/hw_acc/hw_common.o
CC build_out/mbedtls_lts/port/test_case.o
AR build_out/lwip/liblwip.a
AR build_out/hosal/libhosal.a
AR build_out/wpa_supplicant/libwpa_supplicant.a
AR build_out/blestack/libblestack.a
AR build_out/mbedtls_lts/libmbedtls_lts.a
LD build_out/bl602_demo_event.elf
Generating BIN File to /home/rootroot/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event/build_out/bl602_demo_event.bin
Building Finish. To flash build output.
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$ ll
total 10104
drwxrwxr-x 7 rootroot rootroot 4096 7月 5 16:45 ./
drwxrwxr-x 15 rootroot rootroot 4096 7月 1 10:54 ../
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 bl602_demo_event/
-rwxr-xr-x 1 rootroot rootroot 4142238 7月 1 10:54 BL602模组基本功耗测量方法.docx*
-rwxr-xr-x 1 rootroot rootroot 2321645 7月 1 10:54 BL602模组基本功耗测量方法.pdf*
-rwxr-xr-x 1 rootroot rootroot 2874 7月 1 10:54 Ble_throughput.rst*
drwxrwxr-x 44 rootroot rootroot 4096 7月 5 16:45 build_out/
-rwxr-xr-x 1 rootroot rootroot 5071 7月 1 10:54 coex_test.rst*
-rwxr-xr-x 1 rootroot rootroot 2530424 7月 1 10:54 Coex评估测试使用手册.pdf*
-rwxr-xr-x 1 rootroot rootroot 6294 7月 1 10:54 Current_test.rst*
-rwxr-xr-x 1 rootroot rootroot 8832 7月 1 10:54 Current_test.xlsx*
-rwxr-xr-x 1 rootroot rootroot 82 7月 1 10:54 genblecontroller*
-rwxr-xr-x 1 rootroot rootroot 181 7月 1 10:54 genblehogp*
-rwxr-xr-x 1 rootroot rootroot 97 7月 1 10:54 genblem0s1*
-rwxr-xr-x 1 rootroot rootroot 98 7月 1 10:54 genblem0s1s*
-rwxr-xr-x 1 rootroot rootroot 334 7月 1 10:54 genblemesh*
-rwxr-xr-x 1 rootroot rootroot 118 7月 1 10:54 genromap*
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 img_conf/
-rwxr-xr-x 1 rootroot rootroot 565626 7月 1 10:54 Iperf_User_Manual.docx*
-rwxr-xr-x 1 rootroot rootroot 650332 7月 1 10:54 Iperf_User_Manual.pdf*
-rwxr-xr-x 1 rootroot rootroot 4166 7月 1 10:54 Iperf_User_Manual.rst*
-rwxr-xr-x 1 rootroot rootroot 17129 7月 1 10:54 logo.png*
-rwxr-xr-x 1 rootroot rootroot 2526 7月 1 10:54 Makefile*
drwxrwxr-x 2 rootroot rootroot 4096 7月 1 10:54 picture/
-rwxr-xr-x 1 rootroot rootroot 1420 7月 1 10:54 proj_config.mk*
-rwxr-xr-x 1 rootroot rootroot 978 7月 1 10:54 README.md*
drwxrwxr-x 5 rootroot rootroot 4096 7月 1 10:54 tests/
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$
rootroot@rootroot-System-Product1:~/bl602/bl_iot_sdk-master/customer_app/bl602_demo_event$
3、刷机:
使用的是2Mbps的USB转串口来刷机的。
但是博流没有专门写驱动程序,直接使用的是Zadig的驱动程序。
Zadig - USB driver installation made easy
我这里使用的是Zadig2.7,安装的时候360杀毒/安全卫士会报告未知,信任即可!^_
驱动安装:
【请注意,这里要选择:允许本次执行。将异常文件添加到“信任!”】
在Zadig2.7中已经找到Bouffalo Serial这个USB转串口了!
驱动安装正常,你就会发现COM20【具体的端口号因电脑而异!】
我将刷机工具Z:\bl602\bl_iot_sdk-master\tools\flash_tool放到C:\temp下了。
C:\temp\flash_tool\chips\bl602\device_tree\bl_factory_params_IoTKitA_40M.dts
C:\temp\flash_tool\chips\bl602\partition\partition_cfg_2M.toml
boot2的目录和文件名肯定是修改了!这个选择是最接近的了!
C:\temp\flash_tool\chips\bl602\builtin_imgs\boot2_iap_v5.3\boot2_iap_release.bin
Z:\bl602\bl_iot_sdk-master\customer_app\bl602_demo_event\build_out\bl602_demo_event.bin
刷机的LOG:
[17:36:50.876] - ========= Interface is Uart =========
[17:36:50.889] - eflash loader bin is eflash_loader_40m.bin
[17:36:50.890] - ========= chip flash id: ef4015 =========
[17:36:50.901] - create partition.bin, pt_new is True
[17:36:50.908] - bl60x_fw_boot_head_gen xtal: 40M
[17:36:50.914] - Create bootheader using C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini
[17:36:50.914] - Updating data according to <C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
[17:36:50.916] - Created file len:176
[17:36:50.924] - Create efuse using C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini
[17:36:50.925] - Updating data according to <C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini[EFUSE_CFG]>
[17:36:50.927] - Created file len:128
[17:36:50.931] - ========= sp image create =========
[17:36:50.933] - Image hash is b'7eab2fa91c9f93e138c8f1b410de161a96608e3409844bb3d44d12a1f1e8861f'
[17:36:50.934] - Hash ignored
[17:36:50.934] - Header crc ignored
[17:36:50.934] - Write flash img
[17:36:50.979] - bl60x_fw_boot_head_gen xtal: 40M
[17:36:50.981] - Create bootheader using C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini
[17:36:50.981] - Updating data according to <C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
[17:36:50.983] - Created file len:176
[17:36:50.986] - Create efuse using C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini
[17:36:50.988] - Updating data according to <C:\temp\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini[EFUSE_CFG]>
[17:36:50.988] - Created file len:128
[17:36:50.993] - ========= sp image create =========
[17:36:51.016] - Image hash is b'f37aeae95ca825ac3d36697e18897fe0cb0d8377e94746b39a298ca8165f4b58'
[17:36:51.016] - Header crc: b'5aab7206'
[17:36:51.016] - Write flash img
[17:36:51.025] - FW Header is 176, 3920 still needed
[17:36:51.026] - FW OTA bin header is Done. Len is 4096
[17:36:51.202] - FW OTA bin is Done. Len is 859584
[17:36:51.746] - FW OTA xz is Done
[17:36:51.746] - ========= eflash loader config =========
[17:36:51.797] - =========C:\temp\flash_tool\chips\bl602\device_tree\bl_factory_params_IoTKitA_40M.dts ——> C:\temp\flash_tool\chips\bl602/device_tree/ro_params.dtb=========
[17:36:51.944] - Version: bflb_eflash_loader_v2.3.0
[17:36:51.945] - Program Start
[17:36:51.945] - ========= eflash loader cmd arguments =========
[17:36:51.945] - C:\temp\flash_tool\chips\bl602\eflash_loader/eflash_loader_cfg.ini
[17:36:51.945] - Config file: C:\temp\flash_tool\chips\bl602\eflash_loader/eflash_loader_cfg.ini
[17:36:51.946] - serial port is COM20 (PROG)
[17:36:51.947] - cpu_reset=False
[17:36:51.947] - chiptype: bl602
[17:36:51.947] - ========= Interface is uart =========
[17:36:51.947] - com speed: 2000000
[17:36:51.947] - Eflash load helper file: C:\temp\flash_tool\chips\bl602\eflash_loader/eflash_loader_40m.bin
[17:36:51.948] - Eflash load helper file: C:\temp\flash_tool\chips\bl602\eflash_loader/eflash_loader_40m.bin
[17:36:51.948] - ========= load eflash_loader.bin =========
[17:36:51.948] - Load eflash_loader.bin via uart
[17:36:51.948] - ========= image load =========
[17:36:51.974] - default set DTR high
[17:36:52.088] - usb serial port
[17:36:52.148] - clean buf
[17:36:52.190] - send sync
[17:36:52.404] - ack is b'ffffffffffffffffffffff4f4b'
[17:36:52.463] - shake hand success
[17:36:52.479] - get_boot_info
[17:36:52.479] - data read is b'0100000000000000030000004dc96129d8ac1a00'
[17:36:52.480] - ========= ChipID: acd82961c94d =========
[17:36:52.480] - last boot info: None
[17:36:52.480] - sign is 0 encrypt is 0
[17:36:52.481] - segcnt is 1
[17:36:52.486] - segdata_len is 37152
[17:36:52.569] - 4080/37152
[17:36:52.653] - 8160/37152
[17:36:52.736] - 12240/37152
[17:36:52.818] - 16320/37152
[17:36:52.902] - 20400/37152
[17:36:52.985] - 24480/37152
[17:36:53.067] - 28560/37152
[17:36:53.150] - 32640/37152
[17:36:53.233] - 36720/37152
[17:36:53.243] - 37152/37152
[17:36:53.244] - Run img
[17:36:53.352] - Load helper bin time cost(ms): 1402.496826171875
[17:36:53.456] - Flash load shake hand
[17:36:53.482] - default set DTR high
[17:36:53.592] - clean buf
[17:36:53.633] - send sync
[17:36:53.847] - ack is b'4f4b'
[17:36:53.907] - Read mac addr
[17:36:53.908] - flash set para
[17:36:53.908] - ========= flash read jedec ID =========
[17:36:53.909] - Read flash jedec ID
[17:36:53.910] - readdata:
[17:36:53.910] - b'ef401580'
[17:36:53.910] - Finished
[17:36:53.913] - Program operation
[17:36:53.915] - Dealing Index 0
[17:36:53.915] - ========= programming chips\bl602\img_create_iot\whole_img_boot2.bin to 0x00000000
[17:36:53.918] - ========= flash load =========
[17:36:53.919] - ========= flash erase =========
[17:36:53.920] - Erase flash from 0x0 to 0xc44f
[17:36:53.945] - erase pending
[17:36:54.091] - erase pending
[17:36:54.121] - erase pending
[17:36:54.152] - erase pending
[17:36:54.178] - erase pending
[17:36:54.205] - erase pending
[17:36:54.282] - Erase time cost(ms): 362.517822265625
[17:36:54.320] - decompress flash load 26444
[17:36:54.331] - Load 2048/26444 {"progress":7}
[17:36:54.347] - Load 4096/26444 {"progress":15}
[17:36:54.362] - Load 6144/26444 {"progress":23}
[17:36:54.377] - Load 8192/26444 {"progress":30}
[17:36:54.393] - Load 10240/26444 {"progress":38}
[17:36:54.404] - Load 12288/26444 {"progress":46}
[17:36:54.419] - Load 14336/26444 {"progress":54}
[17:36:54.434] - Load 16384/26444 {"progress":61}
[17:36:54.446] - Load 18432/26444 {"progress":69}
[17:36:54.461] - Load 20480/26444 {"progress":77}
[17:36:54.476] - Load 22528/26444 {"progress":85}
[17:36:54.492] - Load 24576/26444 {"progress":92}
[17:36:54.507] - Load 26444/26444 {"progress":100}
[17:36:54.507] - Load 26444/26444 {"progress":100}
[17:36:54.508] - Write check
[17:36:54.523] - Flash load time cost(ms): 219.19677734375
[17:36:54.524] - Finished
[17:36:54.524] - Sha caled by host: 7394ad5e9481a46becb081bcb98b16260ab4e972c1ecef24061755fe8b904276
[17:36:54.526] - xip mode Verify
[17:36:54.542] - Read Sha256/50256
[17:36:54.543] - Flash xip readsha time cost(ms): 15.965087890625
[17:36:54.543] - Finished
[17:36:54.544] - Sha caled by dev: 7394ad5e9481a46becb081bcb98b16260ab4e972c1ecef24061755fe8b904276
[17:36:54.544] - Verify success
[17:36:54.545] - Dealing Index 1
[17:36:54.545] - ========= programming chips\bl602\partition\partition.bin to 0xe000
[17:36:54.548] - ========= flash load =========
[17:36:54.548] - ========= flash erase =========
[17:36:54.549] - Erase flash from 0xe000 to 0xe10f
[17:36:54.569] - erase pending
[17:36:54.642] - Erase time cost(ms): 93.342529296875
[17:36:54.666] - Load 272/272 {"progress":100}
[17:36:54.667] - Load 272/272 {"progress":100}
[17:36:54.667] - Write check
[17:36:54.667] - Flash load time cost(ms): 2.990478515625
[17:36:54.668] - Finished
[17:36:54.669] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[17:36:54.670] - xip mode Verify
[17:36:54.671] - Read Sha256/272
[17:36:54.671] - Flash xip readsha time cost(ms): 0.995849609375
[17:36:54.672] - Finished
[17:36:54.672] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[17:36:54.673] - Verify success
[17:36:54.675] - Dealing Index 2
[17:36:54.676] - ========= programming chips\bl602\partition\partition.bin to 0xf000
[17:36:54.679] - ========= flash load =========
[17:36:54.679] - ========= flash erase =========
[17:36:54.679] - Erase flash from 0xf000 to 0xf10f
[17:36:54.701] - erase pending
[17:36:54.779] - Erase time cost(ms): 98.682373046875
[17:36:54.801] - Load 272/272 {"progress":100}
[17:36:54.801] - Load 272/272 {"progress":100}
[17:36:54.802] - Write check
[17:36:54.802] - Flash load time cost(ms): 2.99169921875
[17:36:54.802] - Finished
[17:36:54.803] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[17:36:54.803] - xip mode Verify
[17:36:54.806] - Read Sha256/272
[17:36:54.807] - Flash xip readsha time cost(ms): 2.988525390625
[17:36:54.807] - Finished
[17:36:54.808] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
[17:36:54.809] - Verify success
[17:36:54.810] - Dealing Index 3
[17:36:54.810] - ========= programming chips\bl602\img_create_iot\whole_img.bin to 0x10000
[17:36:54.814] - ========= flash load =========
[17:36:54.816] - ========= flash erase =========
[17:36:54.816] - Erase flash from 0x10000 to 0xe1dbf
[17:36:54.841] - erase pending
[17:36:55.042] - erase pending
[17:36:55.256] - erase pending
[17:36:55.464] - erase pending
[17:36:55.662] - erase pending
[17:36:55.856] - erase pending
[17:36:56.067] - erase pending
[17:36:56.256] - erase pending
[17:36:56.457] - erase pending
[17:36:56.666] - erase pending
[17:36:56.852] - erase pending
[17:36:57.051] - erase pending
[17:36:57.254] - erase pending
[17:36:57.457] - erase pending
[17:36:57.486] - erase pending
[17:36:57.557] - Erase time cost(ms): 2740.18701171875
[17:36:57.923] - decompress flash load 480788
[17:36:57.934] - Load 2048/480788 {"progress":0}
[17:36:57.954] - Load 4096/480788 {"progress":0}
[17:36:57.965] - Load 6144/480788 {"progress":1}
[17:36:57.981] - Load 8192/480788 {"progress":1}
[17:36:57.995] - Load 10240/480788 {"progress":2}
[17:36:58.011] - Load 12288/480788 {"progress":2}
[17:36:58.022] - Load 14336/480788 {"progress":2}
[17:36:58.037] - Load 16384/480788 {"progress":3}
[17:36:58.052] - Load 18432/480788 {"progress":3}
[17:36:58.068] - Load 20480/480788 {"progress":4}
[17:36:58.082] - Load 22528/480788 {"progress":4}
[17:36:58.097] - Load 24576/480788 {"progress":5}
[17:36:58.109] - Load 26624/480788 {"progress":5}
[17:36:58.124] - Load 28672/480788 {"progress":5}
[17:36:58.139] - Load 30720/480788 {"progress":6}
[17:36:58.155] - Load 32768/480788 {"progress":6}
[17:36:58.170] - Load 34816/480788 {"progress":7}
[17:36:58.185] - Load 36864/480788 {"progress":7}
[17:36:58.200] - Load 38912/480788 {"progress":8}
[17:36:58.215] - Load 40960/480788 {"progress":8}
[17:36:58.226] - Load 43008/480788 {"progress":8}
[17:36:58.241] - Load 45056/480788 {"progress":9}
[17:36:58.256] - Load 47104/480788 {"progress":9}
[17:36:58.272] - Load 49152/480788 {"progress":10}
[17:36:58.286] - Load 51200/480788 {"progress":10}
[17:36:58.302] - Load 53248/480788 {"progress":11}
[17:36:58.317] - Load 55296/480788 {"progress":11}
[17:36:58.332] - Load 57344/480788 {"progress":11}
[17:36:58.347] - Load 59392/480788 {"progress":12}
[17:36:58.358] - Load 61440/480788 {"progress":12}
[17:36:58.373] - Load 63488/480788 {"progress":13}
[17:36:58.388] - Load 65536/480788 {"progress":13}
[17:36:58.403] - Load 67584/480788 {"progress":14}
[17:36:58.418] - Load 69632/480788 {"progress":14}
[17:36:58.429] - Load 71680/480788 {"progress":14}
[17:36:58.445] - Load 73728/480788 {"progress":15}
[17:36:58.460] - Load 75776/480788 {"progress":15}
[17:36:58.474] - Load 77824/480788 {"progress":16}
[17:36:58.490] - Load 79872/480788 {"progress":16}
[17:36:58.504] - Load 81920/480788 {"progress":17}
[17:36:58.515] - Load 83968/480788 {"progress":17}
[17:36:58.531] - Load 86016/480788 {"progress":17}
[17:36:58.546] - Load 88064/480788 {"progress":18}
[17:36:58.561] - Load 90112/480788 {"progress":18}
[17:36:58.576] - Load 92160/480788 {"progress":19}
[17:36:58.591] - Load 94208/480788 {"progress":19}
[17:36:58.603] - Load 96256/480788 {"progress":20}
[17:36:58.618] - Load 98304/480788 {"progress":20}
[17:36:58.634] - Load 100352/480788 {"progress":20}
[17:36:58.648] - Load 102400/480788 {"progress":21}
[17:36:58.663] - Load 104448/480788 {"progress":21}
[17:36:58.674] - Load 106496/480788 {"progress":22}
[17:36:58.690] - Load 108544/480788 {"progress":22}
[17:36:58.705] - Load 110592/480788 {"progress":23}
[17:36:58.720] - Load 112640/480788 {"progress":23}
[17:36:58.735] - Load 114688/480788 {"progress":23}
[17:36:58.750] - Load 116736/480788 {"progress":24}
[17:36:58.765] - Load 118784/480788 {"progress":24}
[17:36:58.781] - Load 120832/480788 {"progress":25}
[17:36:58.792] - Load 122880/480788 {"progress":25}
[17:36:58.815] - Load 124928/480788 {"progress":25}
[17:36:58.826] - Load 126976/480788 {"progress":26}
[17:36:58.841] - Load 129024/480788 {"progress":26}
[17:36:58.865] - Load 131072/480788 {"progress":27}
[17:36:58.880] - Load 133120/480788 {"progress":27}
[17:36:58.892] - Load 135168/480788 {"progress":28}
[17:36:58.907] - Load 137216/480788 {"progress":28}
[17:36:58.921] - Load 139264/480788 {"progress":28}
[17:36:58.937] - Load 141312/480788 {"progress":29}
[17:36:58.952] - Load 143360/480788 {"progress":29}
[17:36:58.963] - Load 145408/480788 {"progress":30}
[17:36:58.978] - Load 147456/480788 {"progress":30}
[17:36:58.993] - Load 149504/480788 {"progress":31}
[17:36:59.008] - Load 151552/480788 {"progress":31}
[17:36:59.020] - Load 153600/480788 {"progress":31}
[17:36:59.035] - Load 155648/480788 {"progress":32}
[17:36:59.050] - Load 157696/480788 {"progress":32}
[17:36:59.065] - Load 159744/480788 {"progress":33}
[17:36:59.076] - Load 161792/480788 {"progress":33}
[17:36:59.091] - Load 163840/480788 {"progress":34}
[17:36:59.105] - Load 165888/480788 {"progress":34}
[17:36:59.120] - Load 167936/480788 {"progress":34}
[17:36:59.136] - Load 169984/480788 {"progress":35}
[17:36:59.151] - Load 172032/480788 {"progress":35}
[17:36:59.162] - Load 174080/480788 {"progress":36}
[17:36:59.177] - Load 176128/480788 {"progress":36}
[17:36:59.192] - Load 178176/480788 {"progress":37}
[17:36:59.207] - Load 180224/480788 {"progress":37}
[17:36:59.223] - Load 182272/480788 {"progress":37}
[17:36:59.234] - Load 184320/480788 {"progress":38}
[17:36:59.249] - Load 186368/480788 {"progress":38}
[17:36:59.264] - Load 188416/480788 {"progress":39}
[17:36:59.279] - Load 190464/480788 {"progress":39}
[17:36:59.294] - Load 192512/480788 {"progress":40}
[17:36:59.309] - Load 194560/480788 {"progress":40}
[17:36:59.322] - Load 196608/480788 {"progress":40}
[17:36:59.337] - Load 198656/480788 {"progress":41}
[17:36:59.352] - Load 200704/480788 {"progress":41}
[17:36:59.367] - Load 202752/480788 {"progress":42}
[17:36:59.382] - Load 204800/480788 {"progress":42}
[17:36:59.397] - Load 206848/480788 {"progress":43}
[17:36:59.408] - Load 208896/480788 {"progress":43}
[17:36:59.424] - Load 210944/480788 {"progress":43}
[17:36:59.439] - Load 212992/480788 {"progress":44}
[17:36:59.454] - Load 215040/480788 {"progress":44}
[17:36:59.469] - Load 217088/480788 {"progress":45}
[17:36:59.480] - Load 219136/480788 {"progress":45}
[17:36:59.495] - Load 221184/480788 {"progress":46}
[17:36:59.509] - Load 223232/480788 {"progress":46}
[17:36:59.525] - Load 225280/480788 {"progress":46}
[17:36:59.536] - Load 227328/480788 {"progress":47}
[17:36:59.551] - Load 229376/480788 {"progress":47}
[17:36:59.566] - Load 231424/480788 {"progress":48}
[17:36:59.581] - Load 233472/480788 {"progress":48}
[17:36:59.592] - Load 235520/480788 {"progress":48}
[17:36:59.608] - Load 237568/480788 {"progress":49}
[17:36:59.623] - Load 239616/480788 {"progress":49}
[17:36:59.637] - Load 241664/480788 {"progress":50}
[17:36:59.653] - Load 243712/480788 {"progress":50}
[17:36:59.664] - Load 245760/480788 {"progress":51}
[17:36:59.679] - Load 247808/480788 {"progress":51}
[17:36:59.694] - Load 249856/480788 {"progress":51}
[17:36:59.709] - Load 251904/480788 {"progress":52}
[17:36:59.724] - Load 253952/480788 {"progress":52}
[17:36:59.740] - Load 256000/480788 {"progress":53}
[17:36:59.751] - Load 258048/480788 {"progress":53}
[17:36:59.765] - Load 260096/480788 {"progress":54}
[17:36:59.780] - Load 262144/480788 {"progress":54}
[17:36:59.796] - Load 264192/480788 {"progress":54}
[17:36:59.811] - Load 266240/480788 {"progress":55}
[17:36:59.826] - Load 268288/480788 {"progress":55}
[17:36:59.838] - Load 270336/480788 {"progress":56}
[17:36:59.853] - Load 272384/480788 {"progress":56}
[17:36:59.868] - Load 274432/480788 {"progress":57}
[17:36:59.883] - Load 276480/480788 {"progress":57}
[17:36:59.898] - Load 278528/480788 {"progress":57}
[17:36:59.910] - Load 280576/480788 {"progress":58}
[17:36:59.925] - Load 282624/480788 {"progress":58}
[17:36:59.941] - Load 284672/480788 {"progress":59}
[17:36:59.956] - Load 286720/480788 {"progress":59}
[17:36:59.967] - Load 288768/480788 {"progress":60}
[17:36:59.982] - Load 290816/480788 {"progress":60}
[17:36:59.997] - Load 292864/480788 {"progress":60}
[17:37:00.013] - Load 294912/480788 {"progress":61}
[17:37:00.025] - Load 296960/480788 {"progress":61}
[17:37:00.040] - Load 299008/480788 {"progress":62}
[17:37:00.055] - Load 301056/480788 {"progress":62}
[17:37:00.070] - Load 303104/480788 {"progress":63}
[17:37:00.084] - Load 305152/480788 {"progress":63}
[17:37:00.100] - Load 307200/480788 {"progress":63}
[17:37:00.112] - Load 309248/480788 {"progress":64}
[17:37:00.127] - Load 311296/480788 {"progress":64}
[17:37:00.142] - Load 313344/480788 {"progress":65}
[17:37:00.157] - Load 315392/480788 {"progress":65}
[17:37:00.172] - Load 317440/480788 {"progress":66}
[17:37:00.184] - Load 319488/480788 {"progress":66}
[17:37:00.199] - Load 321536/480788 {"progress":66}
[17:37:00.214] - Load 323584/480788 {"progress":67}
[17:37:00.229] - Load 325632/480788 {"progress":67}
[17:37:00.244] - Load 327680/480788 {"progress":68}
[17:37:00.259] - Load 329728/480788 {"progress":68}
[17:37:00.271] - Load 331776/480788 {"progress":69}
[17:37:00.287] - Load 333824/480788 {"progress":69}
[17:37:00.302] - Load 335872/480788 {"progress":69}
[17:37:00.317] - Load 337920/480788 {"progress":70}
[17:37:00.329] - Load 339968/480788 {"progress":70}
[17:37:00.344] - Load 342016/480788 {"progress":71}
[17:37:00.359] - Load 344064/480788 {"progress":71}
[17:37:00.374] - Load 346112/480788 {"progress":71}
[17:37:00.389] - Load 348160/480788 {"progress":72}
[17:37:00.400] - Load 350208/480788 {"progress":72}
[17:37:00.415] - Load 352256/480788 {"progress":73}
[17:37:00.431] - Load 354304/480788 {"progress":73}
[17:37:00.445] - Load 356352/480788 {"progress":74}
[17:37:00.461] - Load 358400/480788 {"progress":74}
[17:37:00.473] - Load 360448/480788 {"progress":74}
[17:37:00.489] - Load 362496/480788 {"progress":75}
[17:37:00.504] - Load 364544/480788 {"progress":75}
[17:37:00.519] - Load 366592/480788 {"progress":76}
[17:37:00.531] - Load 368640/480788 {"progress":76}
[17:37:00.546] - Load 370688/480788 {"progress":77}
[17:37:00.561] - Load 372736/480788 {"progress":77}
[17:37:00.577] - Load 374784/480788 {"progress":77}
[17:37:00.592] - Load 376832/480788 {"progress":78}
[17:37:00.606] - Load 378880/480788 {"progress":78}
[17:37:00.621] - Load 380928/480788 {"progress":79}
[17:37:00.637] - Load 382976/480788 {"progress":79}
[17:37:00.648] - Load 385024/480788 {"progress":80}
[17:37:00.664] - Load 387072/480788 {"progress":80}
[17:37:00.679] - Load 389120/480788 {"progress":80}
[17:37:00.694] - Load 391168/480788 {"progress":81}
[17:37:00.709] - Load 393216/480788 {"progress":81}
[17:37:00.720] - Load 395264/480788 {"progress":82}
[17:37:00.736] - Load 397312/480788 {"progress":82}
[17:37:00.751] - Load 399360/480788 {"progress":83}
[17:37:00.766] - Load 401408/480788 {"progress":83}
[17:37:00.782] - Load 403456/480788 {"progress":83}
[17:37:00.793] - Load 405504/480788 {"progress":84}
[17:37:00.808] - Load 407552/480788 {"progress":84}
[17:37:00.823] - Load 409600/480788 {"progress":85}
[17:37:00.838] - Load 411648/480788 {"progress":85}
[17:37:00.853] - Load 413696/480788 {"progress":86}
[17:37:00.868] - Load 415744/480788 {"progress":86}
[17:37:00.879] - Load 417792/480788 {"progress":86}
[17:37:00.894] - Load 419840/480788 {"progress":87}
[17:37:00.909] - Load 421888/480788 {"progress":87}
[17:37:00.924] - Load 423936/480788 {"progress":88}
[17:37:00.936] - Load 425984/480788 {"progress":88}
[17:37:00.951] - Load 428032/480788 {"progress":89}
[17:37:00.967] - Load 430080/480788 {"progress":89}
[17:37:00.983] - Load 432128/480788 {"progress":89}
[17:37:00.999] - Load 434176/480788 {"progress":90}
[17:37:01.014] - Load 436224/480788 {"progress":90}
[17:37:01.030] - Load 438272/480788 {"progress":91}
[17:37:01.054] - Load 440320/480788 {"progress":91}
[17:37:01.070] - Load 442368/480788 {"progress":92}
[17:37:01.095] - Load 444416/480788 {"progress":92}
[17:37:01.119] - Load 446464/480788 {"progress":92}
[17:37:01.134] - Load 448512/480788 {"progress":93}
[17:37:01.149] - Load 450560/480788 {"progress":93}
[17:37:01.174] - Load 452608/480788 {"progress":94}
[17:37:01.198] - Load 454656/480788 {"progress":94}
[17:37:01.214] - Load 456704/480788 {"progress":94}
[17:37:01.238] - Load 458752/480788 {"progress":95}
[17:37:01.254] - Load 460800/480788 {"progress":95}
[17:37:01.278] - Load 462848/480788 {"progress":96}
[17:37:01.294] - Load 464896/480788 {"progress":96}
[17:37:01.318] - Load 466944/480788 {"progress":97}
[17:37:01.342] - Load 468992/480788 {"progress":97}
[17:37:01.358] - Load 471040/480788 {"progress":97}
[17:37:01.374] - Load 473088/480788 {"progress":98}
[17:37:01.399] - Load 475136/480788 {"progress":98}
[17:37:01.415] - Load 477184/480788 {"progress":99}
[17:37:01.438] - Load 479232/480788 {"progress":99}
[17:37:01.453] - Load 480788/480788 {"progress":100}
[17:37:01.454] - Load 480788/480788 {"progress":100}
[17:37:01.454] - Write check
[17:37:01.475] - Flash load time cost(ms): 3897.573486328125
[17:37:01.475] - Finished
[17:37:01.481] - Sha caled by host: 39d71576c28c3a532aeecc014c1017d057904fd07f68ce48cfd1c7315d512fa1
[17:37:01.482] - xip mode Verify
[17:37:01.716] - Read Sha256/859584
[17:37:01.717] - Flash xip readsha time cost(ms): 234.1572265625
[17:37:01.717] - Finished
[17:37:01.717] - Sha caled by dev: 39d71576c28c3a532aeecc014c1017d057904fd07f68ce48cfd1c7315d512fa1
[17:37:01.718] - Verify success
[17:37:01.719] - Dealing Index 4
[17:37:01.719] - ========= programming chips\bl602\device_tree\ro_params.dtb to 0x1f8000
[17:37:01.722] - ========= flash load =========
[17:37:01.724] - ========= flash erase =========
[17:37:01.724] - Erase flash from 0x1f8000 to 0x1f965d
[17:37:01.746] - erase pending
[17:37:01.778] - erase pending
[17:37:01.850] - Erase time cost(ms): 125.40380859375
[17:37:01.875] - decompress flash load 1512
[17:37:01.884] - Load 1512/1512 {"progress":100}
[17:37:01.885] - Load 1512/1512 {"progress":100}
[17:37:01.885] - Write check
[17:37:01.902] - Flash load time cost(ms): 30.91845703125
[17:37:01.903] - Finished
[17:37:01.903] - Sha caled by host: 6e32e86aeaa06a4dafcf4a5558e28b4dd5ecd4b2784b4cb775d26b27839e4123
[17:37:01.904] - xip mode Verify
[17:37:01.907] - Read Sha256/5726
[17:37:01.908] - Flash xip readsha time cost(ms): 3.990478515625
[17:37:01.908] - Finished
[17:37:01.908] - Sha caled by dev: 6e32e86aeaa06a4dafcf4a5558e28b4dd5ecd4b2784b4cb775d26b27839e4123
[17:37:01.909] - Verify success
[17:37:01.909] - Program Finished
[17:37:01.909] - All time cost(ms): 9963.933837890625
[17:37:02.017] - [All Success]
使用BLDevCube.exe工具开始给BL602刷机:
4、启动:
串口工具使用的是XSHELL7。
由于XSHELL没有比921600更高的波特率,请直接输入数值就是了!
启动的LOG:
Xshell 7 (Build 0108)
Copyright (c) 2020 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[C:\~]$
Connecting to COM20...
Connected.
ÿStarting bl602 now....
Booting BL602 Chip...
██████╗ ██╗ ██████╗ ██████╗ ██████╗
██╔══██╗██║ ██╔════╝ ██╔═████╗╚════██╗
██████╔╝██║ ███████╗ ██║██╔██║ █████╔╝
██╔══██╗██║ ██╔═══██╗████╔╝██║██╔═══╝
██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝
------------------------------------------------------------
RISC-V Core Feature:RV32-ACFIMX
Build Version: release_bl_iot_sdk_1.6.36-374-g8fefcfc75-dirty
Build Date: Jul 4 2022
Build Time: 07:16:00
------------------------------------------------------------
blog init set power on level 2, 2, 2.
[IRQ] Clearing and Disable all the pending IRQ...
[ 0][INFO: hal_boot2.c: 282] [HAL] [BOOT2] Active Partition[0] consumed 596 Bytes
[ 0][INFO: hal_boot2.c: 82] ======= PtTable_Config @0x4200eac8=======
[ 0][INFO: hal_boot2.c: 83] magicCode 0x54504642; version 0x0000; entryCnt 7; age 0; crc32 0x12DF9A26
[ 0][INFO: hal_boot2.c: 89] idx type device activeIndex name Address[0] Address[1] Length[0] Length[1] age
[ 0][INFO: hal_boot2.c: 91] [00] 00 0 0 FW 0x00010000 0x000e8000 0x000d8000 0x00088000 0
[ 0][INFO: hal_boot2.c: 91] [01] 02 0 0 mfg 0x00170000 0x00000000 0x00032000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [02] 03 0 0 media 0x001a2000 0x00000000 0x00047000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [03] 04 0 0 PSM 0x001e9000 0x00000000 0x00008000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [04] 05 0 0 KEY 0x001f1000 0x00000000 0x00002000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [05] 06 0 0 DATA 0x001f3000 0x00000000 0x00005000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [06] 07 0 0 factory 0x001f8000 0x00000000 0x00007000 0x00000000 0
[ 0][INFO: bl_flash.c: 391] ======= FlashCfg magiccode @0x42049c18=======
[ 0][INFO: bl_flash.c: 392] mid 0xEF
[ 0][INFO: bl_flash.c: 393] clkDelay 0x1
[ 0][INFO: bl_flash.c: 394] clkInvert 0x1
[ 0][INFO: bl_flash.c: 395] sector size 4KBytes
[ 0][INFO: bl_flash.c: 396] page size 256Bytes
[ 0][INFO: bl_flash.c: 397] ---------------------------------------------------------------
[ 0][INFO: hal_board.c:1249] [MAIN] [BOARD] [FLASH] addr from partition is 001f8000, ret is 0
[ 0][INFO: hal_board.c:1257] [MAIN] [BOARD] [XIP] addr from partition is 231e7000, ret is 0
[ 0][INFO: hal_board.c: 208] MAC address mode length 3
[ 0][INFO: hal_board.c: 212] MAC address mode is MBF
Read slot:0
[ 0][INFO: hal_board.c: 187] Set MAC addrress AC:D8:29:61:C9:4D
[ 0][INFO: hal_board.c: 955] country_code : 86
[ 0][INFO: hal_board.c: 342] xtal_mode is MF
Read slot:0
[ 0][INFO: hal_board.c: 374] get xtal from M ready 29 29 1 60 60
[ 0][INFO: hal_board.c: 846] pwr_table_11b :20 20 20 18
[ 0][INFO: hal_board.c: 860] pwr_table_11g :18 18 18 18 18 18 14 14
[ 0][INFO: hal_board.c: 878] pwr_table_11n :18 18 18 18 18 16 14 14
No written slot found
[ 0][BUF: hal_board.c: 606] 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[ 0][INFO: hal_board.c: 902] set pwr_table_ble = 13 in dts
[ 0][INFO: hal_board.c: 687] ap_ssid string[0] = bl_test_005, ap_ssid_len = 11
[ 0][INFO: hal_board.c: 698] ap_psk string[0] = 12345678, ap_psk_len = 8
[ 0][INFO: hal_board.c: 707] ap_channel = 11
[ 0][INFO: hal_board.c: 635] [STA] ap_ssid string[0] = yourssid, ap_ssid_len = 8
[ 0][INFO: hal_board.c: 646] [STA] ap_psk string[0] = yourapssword, ap_psk_len = 12
[ 0][INFO: hal_board.c: 654] auto_connect_enable = 0
[ 0][INFO: hal_board.c: 749] Troom_os = -1, lentmp = 4
[ 0][INFO: hal_board.c: 758] linear_or_follow = 1, lentmp = 4
[ 0][INFO: hal_board.c: 767] Tchannels:2412,2427,2442,2457,2472, [ 0][INFO: hal_board.c: 795] Tchannel_os_low:199,186,170,165,160,
[ 0][INFO: hal_board.c: 808] en_tcal = 0, lentmp = 4
[OS] Starting aos_loop_proc task...
[OS] Starting OS Scheduler...
[MTD] >>>>>> Hanlde info Dump >>>>>>
name PSM
id 0
offset 0x001e9000(2002944)
size 0x00008000(32Kbytes)
xip_addr 0x231d8000
[MTD] <<<<<< Hanlde info End <<<<<<
[EF] Found Valid PSM partition, XIP Addr 231d8000, flash addr 001e9000, size 32768
ENV AREA SIZE 32768, SECTOR NUM 8
*default_env_size = 0x00000001
ENV start address is 0x00000000, size is 32768 bytes.
Warning: Sector header check failed. Format this sector (0x00000000).
Warning: Sector header check failed. Format this sector (0x00001000).
Warning: Sector header check failed. Format this sector (0x00002000).
Warning: Sector header check failed. Format this sector (0x00003000).
Warning: Sector header check failed. Format this sector (0x00004000).
Warning: Sector header check failed. Format this sector (0x00005000).
Warning: Sector header check failed. Format this sector (0x00006000).
Warning: Sector header check failed. Format this sector (0x00007000).
Warning: All sector header check failed. Set it to default.
[ 465][WARN : bl_mtd.c: 205] addr@0x230b6c90 is xip flash, size 10
[ 465][WARN : bl_mtd.c: 205] addr@0x230bfb6c is xip flash, size 1
EasyFlash V4.0.99 is initialize success.
You can get the latest version on https://github.com/armink/EasyFlash .
[MTD] >>>>>> Hanlde info Dump >>>>>>
name media
id 0
offset 0x001a2000(1712128)
size 0x00047000(284Kbytes)
xip_addr 0x23191000
[MTD] <<<<<< Hanlde info End <<<<<<
[ 475][ERROR : bl_romfs.c: 158] romfs magic is NOT correct
Init CLI with event Driven
[ 477][INFO : hosal_adc.c: 459] offset = 2210
[ 477][INFO : hosal_adc.c: 233] ADC freq: 284Hz. div:6
[OS] Starting proc_hellow_entry task...
[OS] Starting aos_loop_proc task...
[OS] Starting TCP/IP Stack...
[BL] [SEC] TRNG Handler
-------------------->>>>>>>> LWIP tcp_port 53572
proc_hellow_entry: RISC-V rv32imafc
#
#
# proc_hellow_entry: RISC-V rv32imafc
proc_hellow_entry: RISC-V rv32imafc
proc_hellow_entry: RISC-V rv32imafc
proc_hellow_entry: RISC-V rv32imafc
proc_hellow_entry: RISC-V rv32imafc
proc_hellow_entry: RISC-V rv32imafc
常用的命令:
#
#
#
# devname
device name: BL602
#
# sysver
kernel version :posix
release_bl_iot_sdk_1.6.36-374-g8fefcfc75-dirty
Memory Configuration on 3 banks:
[0] flash 4096 Kbytes @ 0x23000000
[1] tcm 208 Kbytes @ 0x4200c000
[2] wifi 40 Kbytes @ 0x42040000
Heap left: 122392 Bytes
#
#
# ls
Size Name Filetype
----------------------------------------------------------------------------------
28 /dev/event Char Device
28 /dev/ttyS0 Char Device
28 /dev/ttyS1 Char Device
# proc_hellow_entry: RISC-V rv32imafc
# pwd
command 'pwd' not found
#
# who
command 'who' not found
#
# rebootproc_hellow_entry: RISC-V rv32imafc
reboot
ÿStarting bl602 now....
Booting BL602 Chip...
██████╗ ██╗ ██████╗ ██████╗ ██████╗
██╔══██╗██║ ██╔════╝ ██╔═████╗╚════██╗
██████╔╝██║ ███████╗ ██║██╔██║ █████╔╝
██╔══██╗██║ ██╔═══██╗████╔╝██║██╔═══╝
██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝
------------------------------------------------------------
RISC-V Core Feature:RV32-ACFIMX
Build Version: release_bl_iot_sdk_1.6.36-374-g8fefcfc75-dirty
Build Date: Jul 4 2022
Build Time: 07:16:00
------------------------------------------------------------
blog init set power on level 2, 2, 2.
[IRQ] Clearing and Disable all the pending IRQ...
[ 0][INFO: hal_boot2.c: 282] [HAL] [BOOT2] Active Partition[0] consumed 596 Bytes
[ 0][INFO: hal_boot2.c: 82] ======= PtTable_Config @0x4200eac8=======
[ 0][INFO: hal_boot2.c: 83] magicCode 0x54504642; version 0x0000; entryCnt 7; age 0; crc32 0x12DF9A26
[ 0][INFO: hal_boot2.c: 89] idx type device activeIndex name Address[0] Address[1] Length[0] Length[1] age
[ 0][INFO: hal_boot2.c: 91] [00] 00 0 0 FW 0x00010000 0x000e8000 0x000d8000 0x00088000 0
[ 0][INFO: hal_boot2.c: 91] [01] 02 0 0 mfg 0x00170000 0x00000000 0x00032000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [02] 03 0 0 media 0x001a2000 0x00000000 0x00047000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [03] 04 0 0 PSM 0x001e9000 0x00000000 0x00008000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [04] 05 0 0 KEY 0x001f1000 0x00000000 0x00002000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [05] 06 0 0 DATA 0x001f3000 0x00000000 0x00005000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [06] 07 0 0 factory 0x001f8000 0x00000000 0x00007000 0x00000000 0
[ 0][INFO: bl_flash.c: 391] ======= FlashCfg magiccode @0x42049c18=======
[ 0][INFO: bl_flash.c: 392] mid 0xEF
[ 0][INFO: bl_flash.c: 393] clkDelay 0x1
[ 0][INFO: bl_flash.c: 394] clkInvert 0x1
[ 0][INFO: bl_flash.c: 395] sector size 4KBytes
[ 0][INFO: bl_flash.c: 396] page size 256Bytes
[ 0][INFO: bl_flash.c: 397] ---------------------------------------------------------------
[ 0][INFO: hal_board.c:1249] [MAIN] [BOARD] [FLASH] addr from partition is 001f8000, ret is 0
[ 0][INFO: hal_board.c:1257] [MAIN] [BOARD] [XIP] addr from partition is 231e7000, ret is 0
[ 0][INFO: hal_board.c: 208] MAC address mode length 3
[ 0][INFO: hal_board.c: 212] MAC address mode is MBF
Read slot:0
[ 0][INFO: hal_board.c: 187] Set MAC addrress AC:D8:29:61:C9:4D
[ 0][INFO: hal_board.c: 955] country_code : 86
[ 0][INFO: hal_board.c: 342] xtal_mode is MF
Read slot:0
[ 0][INFO: hal_board.c: 374] get xtal from M ready 29 29 1 60 60
[ 0][INFO: hal_board.c: 846] pwr_table_11b :20 20 20 18
[ 0][INFO: hal_board.c: 860] pwr_table_11g :18 18 18 18 18 18 14 14
[ 0][INFO: hal_board.c: 878] pwr_table_11n :18 18 18 18 18 16 14 14
No written slot found
[ 0][BUF: hal_board.c: 606] 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[ 0][INFO: hal_board.c: 902] set pwr_table_ble = 13 in dts
[ 0][INFO: hal_board.c: 687] ap_ssid string[0] = bl_test_005, ap_ssid_len = 11
[ 0][INFO: hal_board.c: 698] ap_psk string[0] = 12345678, ap_psk_len = 8
[ 0][INFO: hal_board.c: 707] ap_channel = 11
[ 0][INFO: hal_board.c: 635] [STA] ap_ssid string[0] = yourssid, ap_ssid_len = 8
[ 0][INFO: hal_board.c: 646] [STA] ap_psk string[0] = yourapssword, ap_psk_len = 12
[ 0][INFO: hal_board.c: 654] auto_connect_enable = 0
[ 0][INFO: hal_board.c: 749] Troom_os = -1, lentmp = 4
[ 0][INFO: hal_board.c: 758] linear_or_follow = 1, lentmp = 4
[ 0][INFO: hal_board.c: 767] Tchannels:2412,2427,2442,2457,2472, [ 0][INFO: hal_board.c: 795] Tchannel_os_low:199,186,170,165,160,
[ 0][INFO: hal_board.c: 808] en_tcal = 0, lentmp = 4
[OS] Starting aos_loop_proc task...
[OS] Starting OS Scheduler...
[MTD] >>>>>> Hanlde info Dump >>>>>>
name PSM
id 0
offset 0x001e9000(2002944)
size 0x00008000(32Kbytes)
xip_addr 0x231d8000
[MTD] <<<<<< Hanlde info End <<<<<<
[EF] Found Valid PSM partition, XIP Addr 231d8000, flash addr 001e9000, size 32768
ENV AREA SIZE 32768, SECTOR NUM 8
*default_env_size = 0x00000001
ENV start address is 0x00000000, size is 32768 bytes.
EasyFlash V4.0.99 is initialize success.
You can get the latest version on https://github.com/armink/EasyFlash .
[MTD] >>>>>> Hanlde info Dump >>>>>>
name media
id 0
offset 0x001a2000(1712128)
size 0x00047000(284Kbytes)
xip_addr 0x23191000
[MTD] <<<<<< Hanlde info End <<<<<<
[ 26][ERROR : bl_romfs.c: 158] romfs magic is NOT correct
Init CLI with event Driven
[ 27][INFO : hosal_adc.c: 459] offset = 2210
[ 27][INFO : hosal_adc.c: 233] ADC freq: 284Hz. div:6
[OS] Starting proc_hellow_entry task...
[OS] Starting aos_loop_proc task...
[OS] Starting TCP/IP Stack...
[BL] [SEC] TRNG Handler
-------------------->>>>>>>> LWIP tcp_port 49652
proc_hellow_entry: RISC-V rv32imafc
#
# proc_hellow_entry: RISC-V rv32imafc