BL602 Module SDV-002_V1.2 unable to flash
I have this product https://it.aliexpress.com/item/1005010017712057.html
With Bouffalo Lab I can't read flash id as described here: https://www.elektroda.com/news/news4051649.html but i have this logs on UART
AI: Can you specify which Bouffalo Lab tool (and version) you are using to flash the BL602, and whether you’re using the command line or GUI? Also, what operating system are you running it on?
1.9.0
AI: How do you have the BL602 module connected to your computer for flashing (e.g., which USB-to-UART adapter, wiring details, power supply), and are you using any additional hardware like a reset or boot mode button?
USB-to-UART adapter
I have this product https://it.aliexpress.com/item/1005010017712057.html
With Bouffalo Lab I can't read flash id as described here: https://www.elektroda.com/news/news4051649.html but i have this logs on UART
cfg->wifi
[19:45:06.807] - Starting bl602 now....
Booting BL602
[19:45:06.807] - Chip...
██████╗ ██╗ ██████╗ ██████╗ ██████╗
██╔══██╗██║ ██╔════╝ ██╔═████╗╚════██╗
██████╔╝██║ ███████╗ ██║██╔██║ █████╔╝
██╔══██╗██║ ██╔═══██╗████╔╝██║██╔═══╝
██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝
------------------------------------------------------------
RISC-V Core Feature:RV32-ACFIMX
Build Version: release_bl_iot_sdk_1.6.34-82-g2d2a86d6b
Build Date: May 23 2024
Build Time: 11:27:55
------------------------------------------------------------
blog init set power on level 2, 2, 2.
[IRQ] Clearing and Disable all the pending IRQ...
[ 0][INFO: hal_boot2.c: 303] [HAL] [BOOT2] Active Partition[0] consumed 596 Bytes
[ 0][INFO: hal_boot2.c: 82] ======= PtTable_Config @0x4200e83c=======
[ 0][INFO: hal_boot2.c: 83] magicCode 0x54504642; version 0x0000; entryCnt 6; age 0; crc32 0xD9834983
[ 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 0x0013c000 0x0012c000 0x000b4000 0
[ 0][INFO: hal_boot2.c: 91] [01] 02 0 0 mfg 0x0013c000 0x00000000 0x00032000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [02] 03 0 0 reserve 0x001f0000 0x00000000 0x00006000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [03] 04 0 0 PSM 0x001f6000 0x00000000 0x00004000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [04] 05 0 0 DATA 0x001fa000 0x00000000 0x00002000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [05] 06 0 0 factory 0x001fc000 0x00000000 0x00004000 0x00000000 0
[ 0][INFO: bl_flash.c: 391] ======= FlashCfg magiccode @0x42049c18=======
[ 0][INFO: bl_flash.c: 392] mid 0xC8
[ 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 001fc000, ret is 0
[ 0][INFO: hal_board.c:1261] [MAIN] [BOARD] [XIP] addr from partition is 231eb000, 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 7C:3E:82:82:C0:AD
[ 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 31 31 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
[19:45:06.823] - [ 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
[19:45:06.823] -
[ 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 = 1
[ 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: 781] Tchannel_os:180,170,160,140,120,
[ 0][INFO: hal_board.c: 795] Tchannel_os_low:200,190,180,160,130,
[ 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 0x001f6000(2056192)
size 0x00004000(16Kbytes)
xip_addr 0x231e5000
[MTD] <<<<<< Hanlde info End <<<<<<
[EF] Found Valid PSM partition, XIP Addr 231e5000, flash addr 001f6000, size 16384
ENV AREA SIZE 16384, SECTOR NUM 4
*default_env_size = 0x00000001
ENV start address is 0x00000000, size is 16384 bytes.
[19:45:06.888] - EasyFlash V4.0.99 is initialize success.
You can get the latest versio
[19:45:06.888] - n on https://github.com/armink/EasyFlash .
[ 64][INFO: vfs_uart.c: 584] uart[0] rx_buf_size 512, tx_buf_size 512
[ 65][INFO: vfs_uart.c: 599] uart[0] cts status = disable lentmp = 7
[ 66][INFO: vfs_uart.c: 599] uart[0] rts status = disable lentmp = 7
[ 66][INFO: vfs_uart.c: 616] id = 0, tx = 16, rx = 7, cts = 255, rts = 255 baudrate = 2000000.
[ 67][INFO: vfs_uart.c: 531] uart[1] status = disable
Booting BL602 Chip...
############################## system init ##################################
Device Info:[Firmware Name:<FWSW-CKBL602-SWITCH-BL602L_v1.2.0>,Build Time:<20240523.112754.589>,Boot Reason:<BL_RST_POWER_OFF>]
[19:45:07.083] - Reading the dts file...
And the GPIO config is :
cfg->wifi_led = 200
cfg->l
[19:45:08.309] - ======= PtTable_Config @0x4200e83c=======
[ 0][INFO: hal_boot2.c: 83] magicCode 0x54504642; version 0x0000; entryCnt 6; age 0; crc32 0xD9834983
[ 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 0x0013c000 0x0012c000 0x000b4000 0
[ 0][INFO: hal_boot2.c: 91] [01] 02 0 0 mfg 0x0013c000 0x00000000 0x00032000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [02] 03 0 0 reserve 0x001f0000 0x00000000 0x00006000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [03] 04
[19:45:08.312] - 0 0 PSM 0x001f6000 0x00000000 0x00004000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [04] 05 0 0 DATA 0x001fa000 0x00000000 0x00002000 0x00000000 0
[ 0][INFO: hal_boot2.c: 91] [05] 06 0 0 factory 0x001fc000 0x00000000 0x00004000 0x00000000 0
[ 0][INFO: bl_flash.c: 391] ======= FlashCfg magiccode @0x42049c18=======
[ 0][INFO: bl_flash.c: 392] mid 0xC8
[ 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 001fc000, ret is 0
[ 0][INFO: hal_board.c:1261] [MAIN] [BOARD] [XIP] addr from partition is 231eb000, 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 7C:3E:82:82:C0:AD
[ 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 31 31 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
[19:45:08.335] -
[ 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 = 1
[ 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: 781] Tchannel_os:180,170,160,140,120,
[ 0][INFO: hal_board.c: 795] Tchannel_os_low:200,190,180,160,130,
[ 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 0x001f6000(2056192)
size 0x00004000(16Kbytes)
xip_addr 0x231e5000
[MTD] <<<<<< Hanlde info End <<<<<<
[EF] Found Valid PSM partition, XIP Addr 231e5000, flash addr 001f6000, size 16384
ENV AREA SIZE 16384, SECTOR NUM 4
*default_env_size = 0x00000001
ENV start address is 0x00000000, size is 16384 bytes.
[19:45:08.398] - EasyFlash V4.0.99 is initialize success.
You can get the latest version on https://github.
[19:45:08.398] - com/armink/EasyFlash .
[ 65][INFO: vfs_uart.c: 584] uart[0] rx_buf_size 512, tx_buf_size 512
[ 66][INFO: vfs_uart.c: 599] uart[0] cts status = disable lentmp = 7
[ 66][INFO: vfs_uart.c: 599] uart[0] rts status = disable lentmp = 7
[ 67][INFO: vfs_uart.c: 616] id = 0, tx = 16, rx = 7, cts = 255, rts = 255 baudrate = 2000000.
[ 68][INFO: vfs_uart.c: 531] uart[1] status = disable
Booting BL602 Chip...
############################## system init ##################################
Device Info:[Firmware Name:<FWSW-CKBL602-SWITCH-BL602L_v1.2.0>,Build Time:<20240523.112754.589>,Boot Reason:<BL_RST_POWER_OFF>]
[19:45:08.573] - Reading the dts file...
And the GPIO config is :
cfg->wifi_led = 200
cfg->led_status = 0
cfg->led_ch_status = 1
cfg->backlight_en = 0
AI: Can you specify which Bouffalo Lab tool (and version) you are using to flash the BL602, and whether you’re using the command line or GUI? Also, what operating system are you running it on?
1.9.0
AI: How do you have the BL602 module connected to your computer for flashing (e.g., which USB-to-UART adapter, wiring details, power supply), and are you using any additional hardware like a reset or boot mode button?
USB-to-UART adapter