logo elektroda
logo elektroda
X
logo elektroda

BL602 SM-028_V1.3 Boot Loop After OpenBK Flashing - [APP] [EVT] Unknown code 11, 5795

ProfAnderson 18 0
ADVERTISEMENT
  • #1 21599354
    ProfAnderson
    Level 4  
    I'm having troubles with instability with the BL602 chip. It's in a SM-028_V1.3 module that I'm using to experiment and gain more knowledge about OpenBK.

    I've successfully flashed several different OpenBK versions, but it seems that they all eventually end up with the BL602 in a boot loop.
    To learn more, I've practiced flashing using two different methods: direct UART using Boufallo DevCube (sometimes erasing the chip), and OTA through the OpenBK WebApp.

    At first I thought the problem might be mistake(s) with my config, so I ended up not configuring anything except the Wifi. Most recently, I flashed a stock copy of 1.18.124, connected to the AP at 192.168.169.1, configured the Wifi for my home network, and rebooted. All this was done successfully and I could reach the BL602 easily (IP address is 192.168.56.79):

    BL602 SM-028_V1.3 Boot Loop After OpenBK Flashing - [APP] [EVT] Unknown code 11, 5795

    After doing a full power cycle, the SM-028_V1.3 "disappeared". Checking log output via a UART showed that the BL602 was in an endless boot loop. This had also happened immediately prior to the last flash, when I had accessed the unit and then just left the unit running undisturbed for several hours. So it seems I run into this problem whether I'm accessing the unit via the web interface, or just leaving it alone.

    I've pasted the log below. You can see that the error immediately prior to the reboot is:
    [APP] [EVT] Unknown code 11, 5795

    I'm still new to OpenBK so I haven't yet learned the process (i.e. where to search) for determining and solving a problem such as this.

    Any help is much appreciated.
    Thanks.

    
    Entering initLog()...
    Commands registered!
    initLog() done!
    [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
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    [       730][WARN  : bl_mtd.c: 205] addr@0x230a4d1c is xip flash, size 8
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    
    Main_Init_Delay done
    Info:MAIN:Main_Init_Before_Delay
    Info:MAIN:###### safe mode activated - boot failures 24
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:###### safe mode activated - boot failures 24
    Info:MAIN:Using SSID [AuxNetIn]
    Info:MAIN:Using Pass [IOTNet001()]
    Error:HTTP:Created HTTP SV thread with (stack=2048)
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:[SAFE] Time 1, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 2, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 3, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 4, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [lwip] netif status callback
      IP: 192.168.11.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [WF] MM_ADD_IF_REQ Sending: AP
    td_start idx=0
    [WF] MM_ADD_IF_REQ Done
    [WF] vif_index from LAMC is 0
    [lwip] netif status callback
      IP: 192.168.169.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [DHCP] ip_start: [192.168.169.2]
    [DHCP] ip_start: [192.168.169.254]
    [WF][SM] start AP with ssid OpenBL602_FB47A489;
    [WF][SM]               pwd  ;
    [WF][SM]               channel  1;
    [WF] APM_START_REQ Sending with vif_index 0
    [WF] received APM Start apm_start_req_handler:74
    [WF] return with other handler
    [WF] APM_START_REQ Done
    [WF] status is 00
    [WF] vif_idx is 00
    [WF] ch_idx is 00
    [WF] bcmc_idx is 05
    [WF][SM] stateGlobalGuard_AP: AP iface has started!
    Info:MAIN:[SAFE] Time 5, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [APP] [EVT] Unknown code 11, 5793
    Starting bl602 now....
    Booting BL602 Chip...
    ██████╗ ██╗      ██████╗  ██████╗ ██████╗
    
    ██╔══██╗██║     ██╔════╝ ██╔═████╗╚════██╗
    
    ██████╔╝██║     ███████╗ ██║██╔██║ █████╔╝
    
    ██╔══██╗██║     ██╔═══██╗████╔╝██║██╔═══╝
    
    ██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
    
    ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝ ╚══════╝
    
    
    
    
    ------------------------------------------------------------
    RISC-V Core Feature:RV32-ACFIMX
    Build Version: release_bl_iot_sdk_1.6.39-238-gf5ba0a7ee
    Build Date: Jun 23 2025
    Build Time: 14:15:15
    ------------------------------------------------------------
    
    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 @0x4200f250=======
    [         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  0x000d8000  0x000c8000  0x00088000  0
    [         0][INFO: hal_boot2.c:  91] [01]  02     0         0           mfg  0x00160000  0x00000000  0x00032000  0x00000000  0
    [         0][INFO: hal_boot2.c:  91] [02]  03     0         0         media  0x00192000  0x00000000  0x00057000  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 B8:3D:FB:47:A4:89
    [         0][INFO: hal_board.c: 955] country_code : 86
    [         0][INFO: hal_board.c: 323] xtal_mode length 2
    [         0][INFO: hal_board.c: 327] xtal_mode is MF
    Read slot:0
    [         0][INFO: hal_board.c: 986] channel_div_table :
    [         0][BUF: hal_board.c: 987] c4 4e ec 1e cb b7 fc 1e d2 20 0d 1f d8 89 1d 1f df f2 2d 1f e5 5b 3e 1f ec c4 4e 1f f2 2d 5f 1f f9 96 6f 1f 00 00 80 1f 06 69 90 1f 0d d2 a0 1f 13 3b 
    [         0][BUF: hal_board.c: 987] b1 1f 89 9d d8 1f f8 81 1f 20 
    [         0][INFO: hal_board.c: 997] channel_cnt_table :
    [         0][BUF: hal_board.c: 998] 8a a7 e3 a7 3c a8 95 a8 ed a8 46 a9 9f a9 f8 a9 51 aa aa aa 03 ab 5c ab b5 ab 8a ac 8c a1 09 23 58 bf 09 23 10 cd 01 42 00 c0 09 23 00 c0 09 23 00 c0 
    [         0][BUF: hal_board.c: 998] 09 23 00 c0 09 23 
    [         0][INFO: hal_board.c:1006] lo_fcal_div : 1387
    [         0][INFO: hal_board.c:1020] pwr_table_11b :20 20 20 18
    [         0][INFO: hal_board.c:1036] pwr_table_11g :18 18 18 18 18 18 14 14
    [         0][INFO: hal_board.c:1056] pwr_table_11n :18 18 18 18 18 16 14 14
    [         0][INFO: hal_board.c: 523] pwr_mode length 2
    [         0][INFO: hal_board.c: 527] pwr_mode is bf
    No written slot found
    [         0][INFO: hal_board.c: 415] pwr_offset from dtb:
    [         0][BUF: hal_board.c: 416] 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 
    [         0][INFO: hal_board.c: 421] pwr_offset from dtb (rebase on 10):
    [         0][BUF: hal_board.c: 504]   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
    [         0][INFO: hal_board.c:1086] 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: 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 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 0x00192000(1646592)
          size 0x00057000(348Kbytes)
          xip_addr 0x23181000
    [MTD] <<<<<< Hanlde info End <<<<<<
    [        69][ERROR : bl_romfs.c: 158] romfs magic is NOT correct
    [        70][INFO  : hosal_adc.c: 459] offset = 2180
    [        70][INFO  : hosal_adc.c: 233] ADC freq: 284Hz. div:6
    [OS] Starting proc_mian_entry task...
    [OS] Starting TCP/IP Stack...
    -----------------[MTD] >>>>>> Hanlde info Dump >>>>>>
          name PSM
          id 0
          offset 0x001e9000(2002944)
          size 0x00008000(32Kbytes)
          xip_addr 0x231d8000
    [MTD] <<<<<< Hanlde info End <<<<<<
    PSM partition, XIP Addr t 58062
    [EF] Found Valid PSM partition, XIP Addr 231d8000, flash addr 001e9000, size 32768
    ENV AREA SIZE 32768, SECTOR NUM 8
    *default_env_size = 0x00000001
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    Start Wi-Fi fw @192ms
    1th channel,lo_vco_freq_cw=146
    2th channel,lo_vco_freq_cw=145
    3th channel,lo_vco_freq_cw=143
    4th channel,lo_vco_freq_cw=142
    5th channel,lo_vco_freq_cw=141
    6th channel,lo_vco_freq_cw=139
    7th channel,lo_vco_freq_cw=138
    8th channel,lo_vco_freq_cw=137
    9th channel,lo_vco_freq_cw=136
    10th channel,lo_vco_freq_cw=134
    11th channel,lo_vco_freq_cw=133
    12th channel,lo_vco_freq_cw=132
    13th channel,lo_vco_freq_cw=131
    14th channel,lo_vco_freq_cw=130
    15th channel,lo_vco_freq_cw=128
    16th channel,lo_vco_freq_cw=127
    17th channel,lo_vco_freq_cw=126
    18th channel,lo_vco_freq_cw=125
    19th channel,lo_vco_freq_cw=124
    20th channel,lo_vco_freq_cw=123
    21th channel,lo_vco_freq_cw=122
    0th channel,vco_idac_cw=9
    1th channel,vco_idac_cw=8
    2th channel,vco_idac_cw=8
    3th channel,vco_idac_cw=7
    4th channel,vco_idac_cw=7
    5th channel,vco_idac_cw=7
    6th channel,vco_idac_cw=7
    7th channel,vco_idac_cw=7
    8th channel,vco_idac_cw=7
    9th channel,vco_idac_cw=7
    10th channel,vco_idac_cw=7
    11th channel,vco_idac_cw=7
    12th channel,vco_idac_cw=7
    13th channel,vco_idac_cw=7
    14th channel,vco_idac_cw=7
    15th channel,vco_idac_cw=7
    16th channel,vco_idac_cw=6
    17th channel,vco_idac_cw=6
    18th channel,vco_idac_cw=6
    19th channel,vco_idac_cw=6
    20th channel,vco_idac_cw=6
    LO locked 9 135
    rosdac_i_gc3=33
    rosdac_i_gc2=33
    rosdac_i_gc1=33
    rosdac_i_gc0=33
    rosdac_q_gc3=26
    rosdac_q_gc2=26
    rosdac_q_gc1=26
    rosdac_q_gc0=26
    rbb_cap1_fcri=25,rbb_cap2_fc_i=25,rbb_cap1_fc_q=26,rbb_cap2_fc_q=26
    new rbb_cap1_fc_i=49,rbb_cap2_fc_i=49,rbb_cap1_fc_q=49,rbb_cap2_fc_q=49
    LO locked 9 135
    amp=128,step=32,adc_mean_i=58
    amp=160,step=16,adc_mean_i=91
    amp=176,step=8,adc_mean_i=107
    tmx_cs=0, tmxcs_pwr_avg=23279, tmxcs_pwr_avg>>10=22
    tmx_cs=1, tmxcs_pwr_avg=33572, tmxcs_pwr_avg>>10=32
    tmx_cs=2, tmxcs_pwr_avg=50024, tmxcs_pwr_avg>>10=48
    tmx_cs=3, tmxcs_pwr_avg=72211, tmxcs_pwr_avg>>10=70
    tmx_cs=4, tmxcs_pwr_avg=96462, tmxcs_pwr_avg>>10=94
    tmx_cs=5, tmxcs_pwr_avg=108333, tmxcs_pwr_avg>>10=105
    tmx_cs=6, tmxcs_pwr_avg=95713, tmxcs_pwr_avg>>10=93
    tmx_cs=7, tmxcs_pwr_avg=70627, tmxcs_pwr_avg>>10=68
    tmx_cs_max=5, tmxcs_pwr_max=108333, tmxcs_pwr_max>>10=105
    amp=256,step=64,adc_mean_i=81
    amp=320,step=32,adc_mean_i=212
    tosdac_i=22,tosdac_q=29,tx_iq_gain_comp=1001,tx_iq_phase_comp=5
    tosdac_i=22,tosdac_q=32,tx_iq_gain_comp=1007,tx_iq_phase_comp=3
    tosdac_i=25,tosdac_q=32,tx_iq_gain_comp=996,tx_iq_phase_comp=12
    tosdac_i=24,tosdac_q=28,tx_iq_gain_comp=1005,tx_iq_phase_comp=5
    tosdac_i=26,tosdac_q=30,tx_iq_gain_comp=1000,tx_iq_phase_comp=6
    tosdac_i=24,tosdac_q=30,tx_iq_gain_comp=1000,tx_iq_phase_comp=11
    tosdac_i=23,tosdac_q=30,tx_iq_gain_comp=991,tx_iq_phase_comp=13
    tosdac_i=23,tosdac_q=32,tx_iq_gain_comp=988,tx_iq_phase_comp=12
    [WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
    td_init
    td_reset idx=0
    td_reset idx=1
    Start Wi-Fi fw is Done @265ms
    [APP] [EVT] INIT DONE 148
    
    
    [BL] Initi Wi-Fi with MAC #### B8:3D:FB:47:A4:89 ####
         hostname: OpenBL602_fb47a489
    [WF] country code CN used, num of channel 13
    -----------------------------------------------------
    [IPC] [TX] Low level size 204, driver size 100, total size 304
    Enable BMX IRQ
    [WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
    td_init
    td_reset idx=0
    td_reset idx=1
    [version] lmac 5.4.0.0
    [version] version_machw_1 000055FB
    [version] version_machw_2 000001B3
    [version] version_phy_1 00822111
    [version] version_phy_2 00000000
    [version] features 001089DF
    [ME] HT supp 1, VHT supp 0
    [WF][SM] reload tsen 
    [WF][SM] Exiting ifaceDown state
    [WF][SM] State Action ###ifaceDown### --->>> ###idle###
    [WF][SM] Entering idle state
    [APP] [EVT] MGMR DONE 161, now 279ms
    Entering initLog()...
    Commands registered!
    initLog() done!
    [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
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    [       730][WARN  : bl_mtd.c: 205] addr@0x230a4d1c is xip flash, size 8
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    
    Main_Init_Delay done
    Info:MAIN:Main_Init_Before_Delay
    Info:MAIN:###### safe mode activated - boot failures 25
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:###### safe mode activated - boot failures 25
    Info:MAIN:Using SSID [AuxNetIn]
    Info:MAIN:Using Pass [IOTNet001()]
    Error:HTTP:Created HTTP SV thread with (stack=2048)
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:[SAFE] Time 1, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 2, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 3, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 4, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [lwip] netif status callback
      IP: 192.168.11.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [WF] MM_ADD_IF_REQ Sending: AP
    td_start idx=0
    [WF] MM_ADD_IF_REQ Done
    [WF] vif_index from LAMC is 0
    [lwip] netif status callback
      IP: 192.168.169.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [DHCP] ip_start: [192.168.169.2]
    [DHCP] ip_start: [192.168.169.254]
    [WF][SM] start AP with ssid OpenBL602_FB47A489;
    [WF][SM]               pwd  ;
    [WF][SM]               channel  1;
    [WF] APM_START_REQ Sending with vif_index 0
    [WF] received APM Start apm_start_req_handler:74
    [WF] return with other handler
    [WF] APM_START_REQ Done
    [WF] status is 00
    [WF] vif_idx is 00
    [WF] ch_idx is 00
    [WF] bcmc_idx is 05
    [WF][SM] stateGlobalGuard_AP: AP iface has started!
    Info:MAIN:[SAFE] Time 5, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [APP] [EVT] Unknown code 11, 5794
    Starting bl602 now....
    Booting BL602 Chip...
    ██████╗ ██╗      ██████╗  ██████╗ ██████╗
    
    ██╔══██╗██║     ██╔════╝ ██╔═████╗╚════██╗
    
    ██████╔╝██║     ███████╗ ██║██╔██║ █████╔╝
    
    ██╔══██╗██║     ██╔═══██╗████╔╝██║██╔═══╝
    
    ██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
    
    ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝ ╚══════╝
    
    
    
    
    ------------------------------------------------------------
    RISC-V Core Feature:RV32-ACFIMX
    Build Version: release_bl_iot_sdk_1.6.39-238-gf5ba0a7ee
    Build Date: Jun 23 2025
    Build Time: 14:15:15
    ------------------------------------------------------------
    
    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 @0x4200f250=======
    [         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  0x000d8000  0x000c8000  0x00088000  0
    [         0][INFO: hal_boot2.c:  91] [01]  02     0         0           mfg  0x00160000  0x00000000  0x00032000  0x00000000  0
    [         0][INFO: hal_boot2.c:  91] [02]  03     0         0         media  0x00192000  0x00000000  0x00057000  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 B8:3D:FB:47:A4:89
    [         0][INFO: hal_board.c: 955] country_code : 86
    [         0][INFO: hal_board.c: 323] xtal_mode length 2
    [         0][INFO: hal_board.c: 327] xtal_mode is MF
    Read slot:0
    [         0][INFO: hal_board.c: 986] channel_div_table :
    [         0][BUF: hal_board.c: 987] c4 4e ec 1e cb b7 fc 1e d2 20 0d 1f d8 89 1d 1f df f2 2d 1f e5 5b 3e 1f ec c4 4e 1f f2 2d 5f 1f f9 96 6f 1f 00 00 80 1f 06 69 90 1f 0d d2 a0 1f 13 3b 
    [         0][BUF: hal_board.c: 987] b1 1f 89 9d d8 1f f8 81 1f 20 
    [         0][INFO: hal_board.c: 997] channel_cnt_table :
    [         0][BUF: hal_board.c: 998] 8a a7 e3 a7 3c a8 95 a8 ed a8 46 a9 9f a9 f8 a9 51 aa aa aa 03 ab 5c ab b5 ab 8a ac 8c a1 09 23 58 bf 09 23 10 cd 01 42 00 c0 09 23 00 c0 09 23 00 c0 
    [         0][BUF: hal_board.c: 998] 09 23 00 c0 09 23 
    [         0][INFO: hal_board.c:1006] lo_fcal_div : 1387
    [         0][INFO: hal_board.c:1020] pwr_table_11b :20 20 20 18
    [         0][INFO: hal_board.c:1036] pwr_table_11g :18 18 18 18 18 18 14 14
    [         0][INFO: hal_board.c:1056] pwr_table_11n :18 18 18 18 18 16 14 14
    [         0][INFO: hal_board.c: 523] pwr_mode length 2
    [         0][INFO: hal_board.c: 527] pwr_mode is bf
    No written slot found
    [         0][INFO: hal_board.c: 415] pwr_offset from dtb:
    [         0][BUF: hal_board.c: 416] 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 
    [         0][INFO: hal_board.c: 421] pwr_offset from dtb (rebase on 10):
    [         0][BUF: hal_board.c: 504]   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
    [         0][INFO: hal_board.c:1086] 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: 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 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 0x00192000(1646592)
          size 0x00057000(348Kbytes)
          xip_addr 0x23181000
    [MTD] <<<<<< Hanlde info End <<<<<<
    [        69][ERROR : bl_romfs.c: 158] romfs magic is NOT correct
    [        70][INFO  : hosal_adc.c: 459] offset = 2180
    [        71][INFO  : hosal_adc.c: 233] ADC freq: 284Hz. div:6
    [OS] Starting proc_mian_entry task...
    [OS] Starting TCP/IP Stack...
    [MTD] >>>>>> Hanlde info Dump >>>>>>
          name PSM
          id 0
          offset 0x001e9000(2002944)
          size 0x00008000(32Kbytes)
          xip_addr 0x231d8000
    [MTD] <<<<<< Hanlde info End <<<<<<
    -------------------->>>>>>>> LWIP tcp_port 54377
    -------------------->>>>>>>> LWIP tcp_por231d8000, flash addr 001e9000, size 32768
    ENV AREA SIZE 32768, SECTOR NUM 8
    *default_env_size = 0x00000001
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    Start Wi-Fi fw @193ms
    1th channel,lo_vco_freq_cw=146
    2th channel,lo_vco_freq_cw=144
    3th channel,lo_vco_freq_cw=143
    4th channel,lo_vco_freq_cw=142
    5th channel,lo_vco_freq_cw=141
    6th channel,lo_vco_freq_cw=139
    7th channel,lo_vco_freq_cw=138
    8th channel,lo_vco_freq_cw=137
    9th channel,lo_vco_freq_cw=136
    10th channel,lo_vco_freq_cw=134
    11th channel,lo_vco_freq_cw=133
    12th channel,lo_vco_freq_cw=132
    13th channel,lo_vco_freq_cw=131
    14th channel,lo_vco_freq_cw=130
    15th channel,lo_vco_freq_cw=128
    16th channel,lo_vco_freq_cw=127
    17th channel,lo_vco_freq_cw=126
    18th channel,lo_vco_freq_cw=125
    19th channel,lo_vco_freq_cw=124
    20th channel,lo_vco_freq_cw=123
    21th channel,lo_vco_freq_cw=121
    0th channel,vco_idac_cw=9
    1th channel,vco_idac_cw=8
    2th channel,vco_idac_cw=8
    3th channel,vco_idac_cw=7
    4th channel,vco_idac_cw=7
    5th channel,vco_idac_cw=7
    6th channel,vco_idac_cw=7
    7th channel,vco_idac_cw=7
    8th channel,vco_idac_cw=7
    9th channel,vco_idac_cw=7
    10th channel,vco_idac_cw=7
    11th channel,vco_idac_cw=7
    12th channel,vco_idac_cw=7
    13th channel,vco_idac_cw=7
    14th channel,vco_idac_cw=7
    15th channel,vco_idac_cw=7
    16th channel,vco_idac_cw=6
    17th channel,vco_idac_cw=6
    18th channel,vco_idac_cw=6
    19th channel,vco_idac_cw=6
    20th channel,vco_idac_cw=6
    LO locked 9 135
    rosdac_i_gc3=33
    rosdac_i_gc2=33
    rosdac_i_gc1=33
    rosdac_i_gc0=33
    rosdac_q_gc3=26
    rosdac_q_gc2=26
    rosdac_q_gc1=26
    rosdac_q_gc0=26
    rbb_cap1_fc_i=25,rbb_cap2_fc_i=25,rbb_cap1_fc_q=25,rbb_cap2_fc_q=25
    new rbb_cap1_fc_i=49,rbb_cap2_fc_i=49,rbb_cap1_fc_q=49,rbb_cap2_fc_q=49
    LO locked 9 135
    amp=128,step=32,adc_mean_i=57
    amp=160,step=16,adc_mean_i=88
    amp=176,step=8,adc_mean_i=105
    tmx_cs=0, tmxcs_pwr_avg=22874, tmxcs_pwr_avg>>10=22
    tmx_cs=1, tmxcs_pwr_avg=33130, tmxcs_pwr_avg>>10=32
    tmx_cs=2, tmxcs_pwr_avg=49124, tmxcs_pwr_avg>>10=47
    tmx_cs=3, tmxcs_pwr_avg=71955, tmxcs_pwr_avg>>10=70
    tmx_cs=4, tmxcs_pwr_avg=95040, tmxcs_pwr_avg>>10=92
    tmx_cs=5, tmxcs_pwr_avg=107083, tmxcs_pwr_avg>>10=104
    tmx_cs=6, tmxcs_pwr_avg=94907, tmxcs_pwr_avg>>10=92
    tmx_cs=7, tmxcs_pwr_avg=70090, tmxcs_pwr_avg>>10=68
    tmx_cs_max=5, tmxcs_pwr_max=107083, tmxcs_pwr_max>>10=104
    amp=256,step=64,adc_mean_i=80
    amp=320,step=32,adc_mean_i=203
    tosdac_i=22,tosdac_q=29,tx_iq_gain_comp=1001,tx_iq_phase_comp=4
    tosdac_i=22,tosdac_q=32,tx_iq_gain_comp=1002,tx_iq_phase_comp=2
    tosdac_i=24,tosdac_q=32,tx_iq_gain_comp=1013,tx_iq_phase_comp=5
    tosdac_i=23,tosdac_q=28,tx_iq_gain_comp=1002,tx_iq_phase_comp=5
    tosdac_i=25,tosdac_q=30,tx_iq_gain_comp=1002,tx_iq_phase_comp=9
    tosdac_i=25,tosdac_q=30,tx_iq_gain_comp=996,tx_iq_phase_comp=13
    tosdac_i=21,tosdac_q=32,tx_iq_gain_comp=992,tx_iq_phase_comp=4
    tosdac_i=23,tosdac_q=31,tx_iq_gain_comp=987,tx_iq_phase_comp=12
    [WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
    td_init
    td_reset idx=0
    td_reset idx=1
    Start Wi-Fi fw is Done @265ms
    [APP] [EVT] INIT DONE 148
    
    
    [BL] Initi Wi-Fi with MAC #### B8:3D:FB:47:A4:89 ####
         hostname: OpenBL602_fb47a489
    [WF] country code CN used, num of channel 13
    -----------------------------------------------------
    [IPC] [TX] Low level size 204, driver size 100, total size 304
    Enable BMX IRQ
    [WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
    td_init
    td_reset idx=0
    td_reset idx=1
    [version] lmac 5.4.0.0
    [version] version_machw_1 000055FB
    [version] version_machw_2 000001B3
    [version] version_phy_1 00822111
    [version] version_phy_2 00000000
    [version] features 001089DF
    [ME] HT supp 1, VHT supp 0
    [WF][SM] reload tsen 
    [WF][SM] Exiting ifaceDown state
    [WF][SM] State Action ###ifaceDown### --->>> ###idle###
    [WF][SM] Entering idle state
    [APP] [EVT] MGMR DONE 161, now 279ms
    Entering initLog()...
    Commands registered!
    initLog() done!
    [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
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    [       731][WARN  : bl_mtd.c: 205] addr@0x230a4d1c is xip flash, size 8
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    
    Main_Init_Delay done
    Info:MAIN:Main_Init_Before_Delay
    Info:MAIN:###### safe mode activated - boot failures 26
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:###### safe mode activated - boot failures 26
    Info:MAIN:Using SSID [AuxNetIn]
    Info:MAIN:Using Pass [IOTNet001()]
    Error:HTTP:Created HTTP SV thread with (stack=2048)
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:[SAFE] Time 1, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 2, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 3, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 4, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [lwip] netif status callback
      IP: 192.168.11.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [WF] MM_ADD_IF_REQ Sending: AP
    td_start idx=0
    [WF] MM_ADD_IF_REQ Done
    [WF] vif_index from LAMC is 0
    [lwip] netif status callback
      IP: 192.168.169.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [DHCP] ip_start: [192.168.169.2]
    [DHCP] ip_start: [192.168.169.254]
    [WF][SM] start AP with ssid OpenBL602_FB47A489;
    [WF][SM]               pwd  ;
    [WF][SM]               channel  1;
    [WF] APM_START_REQ Sending with vif_index 0
    [WF] received APM Start apm_start_req_handler:74
    [WF] return with other handler
    [WF] APM_START_REQ Done
    [WF] status is 00
    [WF] vif_idx is 00
    [WF] ch_idx is 00
    [WF] bcmc_idx is 05
    [WF][SM] stateGlobalGuard_AP: AP iface has started!
    Info:MAIN:[SAFE] Time 5, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [APP] [EVT] Unknown code 11, 5795
    Starting bl602 now....
    Booting BL602 Chip...
    ██████╗ ██╗      ██████╗  ██████╗ ██████╗
    
    ██╔══██╗██║     ██╔════╝ ██╔═████╗╚════██╗
    
    ██████╔╝██║     ███████╗ ██║██╔██║ █████╔╝
    
    ██╔══██╗██║     ██╔═══██╗████╔╝██║██╔═══╝
    
    ██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
    
    ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝ ╚══════╝
    
    
    
    
    ------------------------------------------------------------
    RISC-V Core Feature:RV32-ACFIMX
    Build Version: release_bl_iot_sdk_1.6.39-238-gf5ba0a7ee
    Build Date: Jun 23 2025
    Build Time: 14:15:15
    ------------------------------------------------------------
    
    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 @0x4200f250=======
    [         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  0x000d8000  0x000c8000  0x00088000  0
    [         0][INFO: hal_boot2.c:  91] [01]  02     0         0           mfg  0x00160000  0x00000000  0x00032000  0x00000000  0
    [         0][INFO: hal_boot2.c:  91] [02]  03     0         0         media  0x00192000  0x00000000  0x00057000  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 B8:3D:FB:47:A4:89
    [         0][INFO: hal_board.c: 955] country_code : 86
    [         0][INFO: hal_board.c: 323] xtal_mode length 2
    [         0][INFO: hal_board.c: 327] xtal_mode is MF
    Read slot:0
    [         0][INFO: hal_board.c: 986] channel_div_table :
    [         0][BUF: hal_board.c: 987] c4 4e ec 1e cb b7 fc 1e d2 20 0d 1f d8 89 1d 1f df f2 2d 1f e5 5b 3e 1f ec c4 4e 1f f2 2d 5f 1f f9 96 6f 1f 00 00 80 1f 06 69 90 1f 0d d2 a0 1f 13 3b 
    [         0][BUF: hal_board.c: 987] b1 1f 89 9d d8 1f f8 81 1f 20 
    [         0][INFO: hal_board.c: 997] channel_cnt_table :
    [         0][BUF: hal_board.c: 998] 8a a7 e3 a7 3c a8 95 a8 ed a8 46 a9 9f a9 f8 a9 51 aa aa aa 03 ab 5c ab b5 ab 8a ac 8c a1 09 23 58 bf 09 23 10 cd 01 42 00 c0 09 23 00 c0 09 23 00 c0 
    [         0][BUF: hal_board.c: 998] 09 23 00 c0 09 23 
    [         0][INFO: hal_board.c:1006] lo_fcal_div : 1387
    [         0][INFO: hal_board.c:1020] pwr_table_11b :20 20 20 18
    [         0][INFO: hal_board.c:1036] pwr_table_11g :18 18 18 18 18 18 14 14
    [          ][INFO: hal_board.c:1056] pwr_table_11n :18 18 18 18 18 16 14 14
    [         0][INFO: hal_board.c: 523] pwr_mode length 2
    [         0][INFO: hal_board.c: 527] pwr_mode is bf
    No written slot found
    [         0][INFO: hal_board.c: 415] pwr_offset from dtb:
    [         0][BUF: hal_board.c: 416] 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 
    [         0][INFO: hal_board.c: 421] pwr_offset from dtb (rebase on 10):
    [         0][BUF: hal_board.c: 504]   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
    [         0][INFO: hal_board.c:1086] 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: 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 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 0x00192000(1646592)
          size 0x00057000(348Kbytes)
          xip_addr 0x23181000
    [MTD] <<<<<< Hanlde info End <<<<<<
    [        70][ERROR : bl_romfs.c: 158] romfs magic is NOT correct
    [        71][INFO  : hosal_adc.c: 459] offset = 2180
    [        71][INFO  : hosal_adc.c: 233] ADC freq: 284Hz. div:6
    [OS] Starting proc_mian_entry task...
    [OS] Starting TCP/IP Stack...
    -------------------->>>>>>>> LWIP tcp_port 56219
    [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
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    Start Wi-Fi fw @193ms
    1th channel,lo_vco_freq_cw=146
    2th channel,lo_vco_freq_cw=144
    3th channel,lo_vco_freq_cw=143
    4th channel,lo_vco_freq_cw=142
    5th channel,lo_vco_freq_cw=140
    6th channel,lo_vco_freq_cw=139
    7th channel,lo_vco_freq_cw=138
    8th channel,lo_vco_freq_cw=137
    9th channel,lo_vco_freq_cw=136
    10th channel,lo_vco_freq_cw=134
    11th channel,lo_vco_freq_cw=133
    12th channel,lo_vco_freq_cw=132
    13th channel,lo_vco_freq_cw=131
    14th channel,lo_vco_freq_cw=130
    15th channel,lo_vco_freq_cw=128
    16th channel,lo_vco_freq_cw=127
    17th channel,lo_vco_freq_cw=126
    18th channel,lo_vco_freq_cw=125
    19th channel,lo_vco_freq_cw=124
    20th channel,lo_vco_freq_cw=123
    21th channel,lo_vco_freq_cw=121
    0th channel,vco_idac_cw=9
    1th channel,vco_idac_cw=8
    2th channel,vco_idac_cw=8
    3th channel,vco_idac_cw=7
    4th channel,vco_idac_cw=7
    5th channel,vco_idac_cw=7
    6th channel,vco_idac_cw=7
    7th channel,vco_idac_cw=7
    8th channel,vco_idac_cw=7
    9th channel,vco_idac_cw=7
    10th channel,vco_idac_cw=7
    11th channel,vco_idac_cw=7
    12th channel,vco_idac_cw=7
    13th channel,vco_idac_cw=7
    14th channel,vco_idac_cw=7
    15th channel,vco_idac_cw=7
    16th channel,vco_idac_cw=6
    17th channel,vco_idac_cw=6
    18th channel,vco_idac_cw=6
    19th channel,vco_idac_cw=7
    20th channel,vco_idac_cw=7
    LO locked 9 135
    rosdac_i_gc3=33
    rosdac_i_gc2=33
    rosdac_i_gc1=33
    rosdac_i_gc0=33
    rosdac_q_gc3=26
    rosdac_q_gc2=26
    rosdac_q_gc1=26
    rosdac_q_gc0=26
    rbb_cap1_fc_i=25,rbb_cap2_fc_i=25,rbb_cap1_fc_q=24,rbb_cap2_fc_q=24
    new rbb_cap1_fc_i=49,rbb_cap2_fc_i=49,rbb_cap1_fc_q=49,rbb_cap2_fc_q=49
    LO locked 9 135
    amp=128,step=32,adc_mean_i=56
    amp=160,step=16,adc_mean_i=88
    amp=176,step=8,adc_mean_i=104
    tmx_cs=0, tmxcs_pwr_avg=22278, tmxcs_pwr_avg>>10=21
    tmx_cs=1, tmxcs_pwr_avg=32750, tmxcs_pwr_avg>>10=31
    tmx_cs=2, tmxcs_pwr_avg=48747, tmxcs_pwr_avg>>10=47
    tmx_cs=3, tmxcs_pwr_avg=70943, tmxcs_pwr_avg>>10=69
    tmx_cs=4, tmxcs_pwr_avg=94325, tmxcs_pwr_avg>>10=92
    tmx_cs=5, tmxcs_pwr_avg=105636, tmxcs_pwr_avg>>10=103
    tmx_cs=6, tmxcs_pwr_avg=93044, tmxcs_pwr_avg>>10=90
    tmx_cs=7, tmxcs_pwr_avg=68520, tmxcs_pwr_avg>>10=66
    tmx_cs_max=5, tmxcs_pwr_max=105636, tmxcs_pwr_max>>10=103
    amp=256,step=64,adc_mean_i=74
    amp=320,step=32,adc_mean_i=202
    tosdac_i=22,tosdac_q=29,tx_iq_gain_comp=1001,tx_iq_phase_comp=6
    tosdac_i=22,tosdac_q=32,tx_iq_gain_comp=1003,tx_iq_phase_comp=8
    tosdac_i=24,tosdac_q=30,tx_iq_gain_comp=1004,tx_iq_phase_comp=0
    tosdac_i=23,tosdac_q=28,tx_iq_gain_comp=996,tx_iq_phase_comp=5
    tosdac_i=26,tosdac_q=30,tx_iq_gain_comp=999,tx_iq_phase_comp=5
    tosdac_i=24,tosdac_q=31,tx_iq_gain_comp=1003,tx_iq_phase_comp=11
    tosdac_i=23,tosdac_q=32,tx_iq_gain_comp=995,tx_iq_phase_comp=7
    tosdac_i=22,tosdac_q=33,tx_iq_gain_comp=998,tx_iq_phase_comp=8
    [WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
    td_init
    td_reset idx=0
    td_reset idx=1
    Start Wi-Fi fw is Done @266ms
    [APP] [EVT] INIT DONE 148
    
    
    [BL] Initi Wi-Fi with MAC #### B8:3D:FB:47:A4:89 ####
         hostname: OpenBL602_fb47a489
    [WF] country code CN used, num of channel 13
    -----------------------------------------------------
    [IPC] [TX] Low level size 204, driver size 100, total size 304
    Enable BMX IRQ
    [WF] [KEY] [CFG] nVAP is 2, endidx 12, startidx 8
    td_init
    td_reset idx=0
    td_reset idx=1
    [version] lmac 5.4.0.0
    [version] version_machw_1 000055FB
    [version] version_machw_2 000001B3
    [version] version_phy_1 00822111
    [version] version_phy_2 00000000
    [version] features 001089DF
    [ME] HT supp 1, VHT supp 0
    [WF][SM] reload tsen 
    [WF][SM] Exiting ifaceDown state
    [WF][SM] State Action ###ifaceDown### --->>> ###idle###
    [WF][SM] Entering idle state
    [APP] [EVT] MGMR DONE 161, now 279ms
    Entering initLog()...
    Commands registered!
    initLog() done!
    [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
    EasyFlash V4.0.99 is initialize success.
    You can get the latest version on https://github.com/armink/EasyFlash .
    [       731][WARN  : bl_mtd.c: 205] addr@0x230a4d1c is xip flash, size 8
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    
    Main_Init_Delay done
    Info:MAIN:Main_Init_Before_Delay
    Info:MAIN:###### safe mode activated - boot failures 27
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 3 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:###### safe mode activated - boot failures 27
    Info:MAIN:Using SSID [AuxNetIn]
    Info:MAIN:Using Pass [IOTNet001()]
    Error:HTTP:Created HTTP SV thread with (stack=2048)
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:[SAFE] Time 1, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 2, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 3, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:[SAFE] Time 4, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [lwip] netif status callback
      IP: 192.168.11.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [WF] MM_ADD_IF_REQ Sending: AP
    td_start idx=0
    [WF] MM_ADD_IF_REQ Done
    [WF] vif_index from LAMC is 0
    [lwip] netif status callback
      IP: 192.168.169.1
      MK: 255.255.255.0
      GW: 0.0.0.0
    [DHCP] ip_start: [192.168.169.2]
    [DHCP] ip_start: [192.168.169.254]
    [WF][SM] start AP with ssid OpenBL602_FB47A489;
    [WF][SM]               pwd  ;
    [WF][SM]               channel  1;
    [WF] APM_START_REQ Sending with vif_index 0
    [WF] received APM Start apm_start_req_handler:74
    [WF] return with other handler
    [WF] APM_START_REQ Done
    [WF] status is 00
    [WF] vif_idx is 00
    [WF] ch_idx is 00
    [WF] bcmc_idx is 05
    [WF][SM] stateGlobalGuard_AP: AP iface has started!
    Info:MAIN:[SAFE] Time 5, idle 0/s, free 122152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    [APP] [EVT] Unknown code 11, 5795
    Starting bl602 now....
    Booting BL602 Chip...
    ██████╗ ██╗      ██████╗  ██████╗ ██████╗
    
    ██╔══██╗██║     ██╔════╝ ██╔═████╗╚════██╗
    
    ██████╔╝██║     ███████╗ ██║██╔██║ █████╔╝
    
    ██╔══██╗██║     ██╔═══██╗████╔╝██║██╔═══╝
    
    ██████╔╝███████╗╚██████╔╝╚██████╔╝███████╗
    
    ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝ ╚══════╝
    
    
    
    
    ------------------------------------------------------------
    RISC-V Core Feature:RV32-ACFIMX
    Build Version: release_bl_iot_sdk_1.6.39-238-gf5ba0a7ee
    Build Date: Jun 23 2025
    Build Time: 14:15:15
    
    

    AI: Can you provide details about how you are powering the SM-028_V1.3 module (e.g., power source, voltage, current rating, and whether you’ve checked for voltage drops or instability during operation)?
    I've used two different power sources: both are regulated 3.3V power supplies rated for 150-200mA.
    AI: Are there any external components or peripherals connected to the BL602 module (such as sensors, relays, or antennas), and is the module mounted on a breadboard, PCB, or used standalone?
    I'm using the SM-028 module specifically so that there is *no other hardware* that can be interfering.

    Added after 1 [hours] 48 [minutes]:

    I've found the specs for the BL602 which state that it may require up to 310mA while transmitting ("WLAN TX MAX: 310 mA"):
    https://en.bouffalolab.com/product/?type=detail&id=1
    Insufficient current supply may well be the problem. The weird thing is that it seems to work just fine for an extended period of time, and then it won't even boot properly (boot loop).
    I'll try a higher capacity power supply and report the results here.

    Added after 1 [minutes]:

    I'm still interested in how I could try troubleshooting based on the error code ... Any tips are much appreciated.
  • ADVERTISEMENT
ADVERTISEMENT