logo elektroda
logo elektroda
X
logo elektroda

BK7231N Flashing Issue: SM-028_V1.3 & CB3S Stuck on Serial Dots After Firmware Update

xopkep 426 11
ADVERTISEMENT
  • #1 21545361
    xopkep
    Level 3  
    Hello.

    I have several devices that were originally taken for tuya. However, unstable internet and dislike for homeassistant led me to mqtt.
    In general, there are two devices: a socket and a leak sensor. The first on SM-028_V1.3 and the second on CB3S. The problem is the same:

    1. Firmware via BekenWriterV1.60: deprotect failed
    2. BK7231 Easy UART Flasher: Write Success
    3. python uartprogram ../OpenBK7231N_QIO_1.18.98.bin --unprotect -d COM7 -w --startaddr 0x0 Write: Successful

    However, after the firmware, both modules do not work. Send in serial only dots ".........." are constantly displayed and nothing happens. No new wifi appears and there are no new devices in my wifi network either.
    Previous firmware updates of devices were carried out without problems, but here I do not understand what the problem is. Please tell me.
    p.s. in the best traditions of my craftsmanship, I did not make a single backup
    AI: Can you describe exactly how you connected the devices for UART flashing (which pins you used, what you used for power, and what voltage levels)?
    ch340/cp2102
  • ADVERTISEMENT
  • #2 21545722
    p.kaczmarek2
    Moderator Smart Home
    Is it really BK7231N, or maybe you have BK7231M? Can you provide photos?
    Have you checked the UART 2 TX2 output at 115200 baud to see if OBK boots?

    Added after 35 [seconds]:

    PS: Keep in mind that on Beken, UART 1 is used for flashing, and UART 2 outputs log.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21545758
    divadiow
    Level 34  
    Also, SM-028_V1.3 is BL602, not Beken BK7231N.
  • #4 21545769
    xopkep
    Level 3  
    Yes, not quite correct information given. On module SM-028_V1.3 - BL602L20. Second module under the screen. it is version N not M, as indicated on the tuya website and on this forum. Didn't know about UART2, will check now. in the CB3S module, the log cyclically drops out:
    Spoiler:

    Info:CFG:####### Boot Count 6633 #######
    Info:MAIN:###### safe mode activated - boot failures 6633
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Main_Init_Delay
    bandgap_calm_in_efuse=0x62
    [load]bandgap_calm=0x62->0x22,vddig=4->5
    [FUNC]rwnxl_init
    [bk]tx_txdesc_flush
    [FUNC]intc_init
    [FUNC]cб.
    V:BK7231N_1.0.1
    REG:cpsr spsr r13 r14
    SVC:000000D3 00401C1C 000033AC
    IRQ:000000d2 00000010 00401e0c a0147ae6
    FIR:000000d1 00000010 00401ffc 6717d990
    SYS:000000df 0040192c 00000158
    ST:00000000
    J 0x10000
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x4142f0, size:113936
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 6634 #######
    Info:MAIN:###### safe mode activated - boot failures 6634
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Main_Init_Delay
    bandgap_calm_in_efuse=0x62
    [load]bandgap_calm=0x62->0x22,vddig=4->5
    [FUNC]rwnxl_init
    [bk]tx_txdesc_flush
    [FUNC]intc_init
    [FUNC]cс.
    V:BK7231N_1.0.1
    REG:cpsr spsr r13 r14
    SVC:000000D3 00401C1C 000033AC
    IRQ:000000d2 00000010 00401e0c a00432f6
    FIR:000000d1 00000010 00401ffc 4717d990
    SYS:000000df 0040192c 00000158
    ST:00000000
    J 0x10000
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x4142f0, size:113936
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 6635 #######
    Info:MAIN:###### safe mode activated - boot failures 6635


    BL602L20 was flashed with another firmware - "OpenBL602_1.18.97.bin" via BLDevCube.exe. I haven't received the log yet....
    Spoiler:

    Flashing log:
    Warning: This v1 partition table is deprecated
    [13:23:35.704] - ========= Interface is Uart =========
    [13:23:35.704] - eflash loader bin is eflash_loader_40m.bin
    [13:23:35.720] - ========= chip flash id: ef4015 =========
    [13:23:35.735] - create partition.bin, pt_new is True
    [13:23:35.767] - fw_boot_head_gen xtal: 40M
    [13:23:35.767] - Create bootheader using C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini
    [13:23:35.767] - Updating data according to <C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
    [13:23:35.782] - Created file len:176
    [13:23:35.798] - Create efuse using C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini
    [13:23:35.798] - Updating data according to <C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\img_create_iot/efuse_bootheader_cfg.ini[EFUSE_CFG]>
    [13:23:35.798] - Created file len:128
    [13:23:35.813] - ========= sp image create =========
    [13:23:35.845] - Image hash is b'd571cefd9f47d8f3ded417a77ea15b1d652f21a0c8deb22bf57539096126fc62'
    [13:23:35.845] - Header crc: b'593c6d54'
    [13:23:35.845] - Write flash img
    [13:23:35.860] - FW Header is 176, 3920 still needed
    [13:23:35.876] - FW OTA bin header is Done. Len is 4096
    [13:23:36.110] - BL60X_OTA_Ver1.0
    [13:23:36.360] - FW OTA bin is Done. Len is 795600
    [13:23:37.861] - OTA XZ file len = 439748
    [13:23:37.861] - Partiton len = 557056
    [13:23:37.861] - BL60X_OTA_Ver1.0
    [13:23:38.017] - FW OTA xz is Done
    [13:23:38.032] - ========= eflash loader config =========
    [13:23:38.408] - Version: eflash_loader_v2.4.2
    [13:23:38.408] - Program Start
    [13:23:38.408] - ========= eflash loader cmd arguments =========
    [13:23:38.408] - C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\eflash_loader/eflash_loader_cfg.ini
    [13:23:38.408] - Config file: C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\eflash_loader/eflash_loader_cfg.ini
    [13:23:38.408] - serial port is COM4
    [13:23:38.408] - cpu_reset=False
    [13:23:38.408] - chiptype: bl602
    [13:23:38.408] - ========= Interface is uart =========
    [13:23:38.408] - com speed: 2000000
    [13:23:38.423] - Eflash load helper file: C:\Users\xopek\Desktop\BL602\tools\flash_tool\chips\bl602\eflash_loader/eflash_loader_40m.bin
    [13:23:38.423] - ========= load eflash_loader.bin =========
    [13:23:38.423] - Load eflash_loader.bin via uart
    [13:23:38.423] - ========= image load =========
    [13:23:38.720] - tx rx and power off, press the machine!
    [13:23:38.720] - cutoff time is 0.1
    [13:23:38.845] - power on tx and rx
    [13:23:39.658] - reset cnt: 0, reset hold: 0.005, shake hand delay: 0.1
    [13:23:39.658] - clean buf
    [13:23:39.658] - send sync
    [13:23:39.876] - ack is b'4f4b'
    [13:23:39.923] - shake hand success
    [13:23:39.939] - get_boot_info
    [13:23:39.939] - data read is b'010000000000000003000000e7969f9494241800'
    [13:23:39.939] - ========= ChipID: 2494949f96e7 =========
    [13:23:39.939] - last boot info: None
    [13:23:39.939] - sign is 0 encrypt is 0
    [13:23:39.955] - segcnt is 1
    [13:23:39.955] - segdata_len is 37152
    [13:23:40.048] - 4080/37152
    [13:23:40.142] - 8160/37152
    [13:23:40.236] - 12240/37152
    [13:23:40.330] - 16320/37152
    [13:23:40.423] - 20400/37152
    [13:23:40.517] - 24480/37152
    [13:23:40.611] - 28560/37152
    [13:23:40.705] - 32640/37152
    [13:23:40.814] - 36720/37152
    [13:23:40.814] - 37152/37152
    [13:23:40.830] - Run img
    [13:23:40.939] - Load helper bin time cost(ms): 2516.148681640625
    [13:23:41.049] - Flash load shake hand
    [13:23:41.064] - default set DTR high
    [13:23:41.174] - clean buf
    [13:23:41.174] - send sync
    [13:23:41.408] - ack is b'4f4b'
    [13:23:41.455] - Read mac addr
    [13:23:41.455] - flash set para
    [13:23:41.455] - ========= flash read jedec ID =========
    [13:23:41.470] - Read flash jedec ID
    [13:23:41.470] - readdata:
    [13:23:41.470] - b'ef401580'
    [13:23:41.470] - Finished
    [13:23:41.502] - Program operation
    [13:23:41.502] - Dealing Index 0
    [13:23:41.502] - ========= programming chips\bl602\partition\partition.bin to 0x0000E000
    [13:23:41.502] - ========= flash load =========
    [13:23:41.502] - ========= flash erase =========
    [13:23:41.502] - Erase flash from 0xe000 to 0xe10f
    [13:23:41.517] - erase pending
    [13:23:41.595] - Erase time cost(ms): 93.763671875
    [13:23:41.595] - Load 272/272 {"progress":100}
    [13:23:41.595] - Load 272/272 {"progress":100}
    [13:23:41.595] - Write check
    [13:23:41.611] - Flash load time cost(ms): 15.62939453125
    [13:23:41.611] - Finished
    [13:23:41.611] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [13:23:41.611] - xip mode Verify
    [13:23:41.627] - Read Sha256/272
    [13:23:41.627] - Flash xip readsha time cost(ms): 15.631103515625
    [13:23:41.627] - Finished
    [13:23:41.627] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [13:23:41.627] - Verify success
    [13:23:41.627] - Dealing Index 1
    [13:23:41.627] - ========= programming chips\bl602\partition\partition.bin to 0x0000F000
    [13:23:41.658] - ========= flash load =========
    [13:23:41.658] - ========= flash erase =========
    [13:23:41.658] - Erase flash from 0xf000 to 0xf10f
    [13:23:41.658] - erase pending
    [13:23:41.736] - Erase time cost(ms): 78.2724609375
    [13:23:41.736] - Load 272/272 {"progress":100}
    [13:23:41.736] - Load 272/272 {"progress":100}
    [13:23:41.736] - Write check
    [13:23:41.752] - Flash load time cost(ms): 15.487060546875
    [13:23:41.752] - Finished
    [13:23:41.752] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [13:23:41.752] - xip mode Verify
    [13:23:41.752] - Read Sha256/272
    [13:23:41.752] - Flash xip readsha time cost(ms): 0.0
    [13:23:41.752] - Finished
    [13:23:41.752] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [13:23:41.752] - Verify success
    [13:23:41.767] - Dealing Index 2
    [13:23:41.767] - ========= programming chips\bl602\img_create_iot\whole_img.bin to 0x00010000
    [13:23:41.799] - ========= flash load =========
    [13:23:41.799] - ========= flash erase =========
    [13:23:41.799] - Erase flash from 0x10000 to 0xd23cf
    [13:23:41.814] - erase pending
    [13:23:42.033] - erase pending
    [13:23:42.236] - erase pending
    [13:23:42.440] - erase pending
    [13:23:42.658] - erase pending
    [13:23:42.846] - erase pending
    [13:23:43.065] - erase pending
    [13:23:43.299] - erase pending
    [13:23:43.502] - erase pending
    [13:23:43.721] - erase pending
    [13:23:43.940] - erase pending
    [13:23:44.158] - erase pending
    [13:23:44.362] - erase pending
    [13:23:44.393] - erase pending
    [13:23:44.424] - erase pending
    [13:23:44.502] - Erase time cost(ms): 2703.738525390625
    [13:23:45.377] - decompress flash load 439748
    [13:23:45.393] - Load 2048/439748 {"progress":0}
    [13:23:45.424] - Load 4096/439748 {"progress":0}
    [13:23:45.440] - Load 6144/439748 {"progress":1}
    [13:23:45.471] - Load 8192/439748 {"progress":1}
    [13:23:45.487] - Load 10240/439748 {"progress":2}
    [13:23:45.518] - Load 12288/439748 {"progress":2}
    [13:23:45.534] - Load 14336/439748 {"progress":3}
    [13:23:45.565] - Load 16384/439748 {"progress":3}
    [13:23:45.596] - Load 18432/439748 {"progress":4}
    [13:23:45.612] - Load 20480/439748 {"progress":4}
    [13:23:45.643] - Load 22528/439748 {"progress":5}
    [13:23:45.674] - Load 24576/439748 {"progress":5}
    [13:23:45.690] - Load 26624/439748 {"progress":6}
    [13:23:45.721] - Load 28672/439748 {"progress":6}
    [13:23:45.753] - Load 30720/439748 {"progress":6}
    [13:23:45.768] - Load 32768/439748 {"progress":7}
    [13:23:45.799] - Load 34816/439748 {"progress":7}
    [13:23:45.831] - Load 36864/439748 {"progress":8}
    [13:23:45.846] - Load 38912/439748 {"progress":8}
    [13:23:45.877] - Load 40960/439748 {"progress":9}
    [13:23:45.909] - Load 43008/439748 {"progress":9}
    [13:23:45.924] - Load 45056/439748 {"progress":10}
    [13:23:45.956] - Load 47104/439748 {"progress":10}
    [13:23:45.987] - Load 49152/439748 {"progress":11}
    [13:23:46.002] - Load 51200/439748 {"progress":11}
    [13:23:46.034] - Load 53248/439748 {"progress":12}
    [13:23:46.049] - Load 55296/439748 {"progress":12}
    [13:23:46.081] - Load 57344/439748 {"progress":13}
    [13:23:46.112] - Load 59392/439748 {"progress":13}
    [13:23:46.127] - Load 61440/439748 {"progress":13}
    [13:23:46.159] - Load 63488/439748 {"progress":14}
    [13:23:46.190] - Load 65536/439748 {"progress":14}
    [13:23:46.206] - Load 67584/439748 {"progress":15}
    [13:23:46.237] - Load 69632/439748 {"progress":15}
    [13:23:46.252] - Load 71680/439748 {"progress":16}
    [13:23:46.284] - Load 73728/439748 {"progress":16}
    [13:23:46.315] - Load 75776/439748 {"progress":17}
    [13:23:46.331] - Load 77824/439748 {"progress":17}
    [13:23:46.362] - Load 79872/439748 {"progress":18}
    [13:23:46.393] - Load 81920/439748 {"progress":18}
    [13:23:46.409] - Load 83968/439748 {"progress":19}
    [13:23:46.440] - Load 86016/439748 {"progress":19}
    [13:23:46.456] - Load 88064/439748 {"progress":20}
    [13:23:46.487] - Load 90112/439748 {"progress":20}
    [13:23:46.518] - Load 92160/439748 {"progress":20}
    [13:23:46.534] - Load 94208/439748 {"progress":21}
    [13:23:46.565] - Load 96256/439748 {"progress":21}
    [13:23:46.596] - Load 98304/439748 {"progress":22}
    [13:23:46.612] - Load 100352/439748 {"progress":22}
    [13:23:46.643] - Load 102400/439748 {"progress":23}
    [13:23:46.675] - Load 104448/439748 {"progress":23}
    [13:23:46.690] - Load 106496/439748 {"progress":24}
    [13:23:46.721] - Load 108544/439748 {"progress":24}
    [13:23:46.753] - Load 110592/439748 {"progress":25}
    [13:23:46.768] - Load 112640/439748 {"progress":25}
    [13:23:46.800] - Load 114688/439748 {"progress":26}
    [13:23:46.831] - Load 116736/439748 {"progress":26}
    [13:23:46.846] - Load 118784/439748 {"progress":27}
    [13:23:46.878] - Load 120832/439748 {"progress":27}
    [13:23:46.909] - Load 122880/439748 {"progress":27}
    [13:23:46.925] - Load 124928/439748 {"progress":28}
    [13:23:46.956] - Load 126976/439748 {"progress":28}
    [13:23:46.987] - Load 129024/439748 {"progress":29}
    [13:23:47.003] - Load 131072/439748 {"progress":29}
    [13:23:47.034] - Load 133120/439748 {"progress":30}
    [13:23:47.049] - Load 135168/439748 {"progress":30}
    [13:23:47.081] - Load 137216/439748 {"progress":31}
    [13:23:47.112] - Load 139264/439748 {"progress":31}
    [13:23:47.128] - Load 141312/439748 {"progress":32}
    [13:23:47.159] - Load 143360/439748 {"progress":32}
    [13:23:47.175] - Load 145408/439748 {"progress":33}
    [13:23:47.206] - Load 147456/439748 {"progress":33}
    [13:23:47.237] - Load 149504/439748 {"progress":33}
    [13:23:47.253] - Load 151552/439748 {"progress":34}
    [13:23:47.284] - Load 153600/439748 {"progress":34}
    [13:23:47.315] - Load 155648/439748 {"progress":35}
    [13:23:47.331] - Load 157696/439748 {"progress":35}
    [13:23:47.362] - Load 159744/439748 {"progress":36}
    [13:23:47.393] - Load 161792/439748 {"progress":36}
    [13:23:47.409] - Load 163840/439748 {"progress":37}
    [13:23:47.440] - Load 165888/439748 {"progress":37}
    [13:23:47.471] - Load 167936/439748 {"progress":38}
    [13:23:47.487] - Load 169984/439748 {"progress":38}
    [13:23:47.518] - Load 172032/439748 {"progress":39}
    [13:23:47.550] - Load 174080/439748 {"progress":39}
    [13:23:47.565] - Load 176128/439748 {"progress":40}
    [13:23:47.597] - Load 178176/439748 {"progress":40}
    [13:23:47.628] - Load 180224/439748 {"progress":40}
    [13:23:47.643] - Load 182272/439748 {"progress":41}
    [13:23:47.675] - Load 184320/439748 {"progress":41}
    [13:23:47.706] - Load 186368/439748 {"progress":42}
    [13:23:47.721] - Load 188416/439748 {"progress":42}
    [13:23:47.753] - Load 190464/439748 {"progress":43}
    [13:23:47.784] - Load 192512/439748 {"progress":43}
    [13:23:47.800] - Load 194560/439748 {"progress":44}
    [13:23:47.831] - Load 196608/439748 {"progress":44}
    [13:23:47.847] - Load 198656/439748 {"progress":45}
    [13:23:47.878] - Load 200704/439748 {"progress":45}
    [13:23:47.909] - Load 202752/439748 {"progress":46}
    [13:23:47.925] - Load 204800/439748 {"progress":46}
    [13:23:47.956] - Load 206848/439748 {"progress":47}
    [13:23:47.972] - Load 208896/439748 {"progress":47}
    [13:23:48.003] - Load 210944/439748 {"progress":47}
    [13:23:48.018] - Load 212992/439748 {"progress":48}
    [13:23:48.050] - Load 215040/439748 {"progress":48}
    [13:23:48.065] - Load 217088/439748 {"progress":49}
    [13:23:48.097] - Load 219136/439748 {"progress":49}
    [13:23:48.112] - Load 221184/439748 {"progress":50}
    [13:23:48.143] - Load 223232/439748 {"progress":50}
    [13:23:48.175] - Load 225280/439748 {"progress":51}
    [13:23:48.190] - Load 227328/439748 {"progress":51}
    [13:23:48.222] - Load 229376/439748 {"progress":52}
    [13:23:48.253] - Load 231424/439748 {"progress":52}
    [13:23:48.268] - Load 233472/439748 {"progress":53}
    [13:23:48.300] - Load 235520/439748 {"progress":53}
    [13:23:48.315] - Load 237568/439748 {"progress":54}
    [13:23:48.347] - Load 239616/439748 {"progress":54}
    [13:23:48.378] - Load 241664/439748 {"progress":54}
    [13:23:48.393] - Load 243712/439748 {"progress":55}
    [13:23:48.425] - Load 245760/439748 {"progress":55}
    [13:23:48.440] - Load 247808/439748 {"progress":56}
    [13:23:48.472] - Load 249856/439748 {"progress":56}
    [13:23:48.503] - Load 251904/439748 {"progress":57}
    [13:23:48.518] - Load 253952/439748 {"progress":57}
    [13:23:48.550] - Load 256000/439748 {"progress":58}
    [13:23:48.581] - Load 258048/439748 {"progress":58}
    [13:23:48.597] - Load 260096/439748 {"progress":59}
    [13:23:48.628] - Load 262144/439748 {"progress":59}
    [13:23:48.659] - Load 264192/439748 {"progress":60}
    [13:23:48.675] - Load 266240/439748 {"progress":60}
    [13:23:48.706] - Load 268288/439748 {"progress":61}
    [13:23:48.722] - Load 270336/439748 {"progress":61}
    [13:23:48.753] - Load 272384/439748 {"progress":61}
    [13:23:48.784] - Load 274432/439748 {"progress":62}
    [13:23:48.800] - Load 276480/439748 {"progress":62}
    [13:23:48.831] - Load 278528/439748 {"progress":63}
    [13:23:48.862] - Load 280576/439748 {"progress":63}
    [13:23:48.878] - Load 282624/439748 {"progress":64}
    [13:23:48.909] - Load 284672/439748 {"progress":64}
    [13:23:48.941] - Load 286720/439748 {"progress":65}
    [13:23:48.956] - Load 288768/439748 {"progress":65}
    [13:23:48.987] - Load 290816/439748 {"progress":66}
    [13:23:49.019] - Load 292864/439748 {"progress":66}
    [13:23:49.034] - Load 294912/439748 {"progress":67}
    [13:23:49.065] - Load 296960/439748 {"progress":67}
    [13:23:49.081] - Load 299008/439748 {"progress":67}
    [13:23:49.112] - Load 301056/439748 {"progress":68}
    [13:23:49.143] - Load 303104/439748 {"progress":68}
    [13:23:49.159] - Load 305152/439748 {"progress":69}
    [13:23:49.190] - Load 307200/439748 {"progress":69}
    [13:23:49.222] - Load 309248/439748 {"progress":70}
    [13:23:49.237] - Load 311296/439748 {"progress":70}
    [13:23:49.268] - Load 313344/439748 {"progress":71}
    [13:23:49.300] - Load 315392/439748 {"progress":71}
    [13:23:49.316] - Load 317440/439748 {"progress":72}
    [13:23:49.347] - Load 319488/439748 {"progress":72}
    [13:23:49.378] - Load 321536/439748 {"progress":73}
    [13:23:49.394] - Load 323584/439748 {"progress":73}
    [13:23:49.425] - Load 325632/439748 {"progress":74}
    [13:23:49.440] - Load 327680/439748 {"progress":74}
    [13:23:49.472] - Load 329728/439748 {"progress":74}
    [13:23:49.503] - Load 331776/439748 {"progress":75}
    [13:23:49.519] - Load 333824/439748 {"progress":75}
    [13:23:49.550] - Load 335872/439748 {"progress":76}
    [13:23:49.581] - Load 337920/439748 {"progress":76}
    [13:23:49.597] - Load 339968/439748 {"progress":77}
    [13:23:49.628] - Load 342016/439748 {"progress":77}
    [13:23:49.659] - Load 344064/439748 {"progress":78}
    [13:23:49.675] - Load 346112/439748 {"progress":78}
    [13:23:49.706] - Load 348160/439748 {"progress":79}
    [13:23:49.722] - Load 350208/439748 {"progress":79}
    [13:23:49.753] - Load 352256/439748 {"progress":80}
    [13:23:49.784] - Load 354304/439748 {"progress":80}
    [13:23:49.800] - Load 356352/439748 {"progress":81}
    [13:23:49.831] - Load 358400/439748 {"progress":81}
    [13:23:49.862] - Load 360448/439748 {"progress":81}
    [13:23:49.878] - Load 362496/439748 {"progress":82}
    [13:23:49.909] - Load 364544/439748 {"progress":82}
    [13:23:49.941] - Load 366592/439748 {"progress":83}
    [13:23:49.956] - Load 368640/439748 {"progress":83}
    [13:23:49.988] - Load 370688/439748 {"progress":84}
    [13:23:50.019] - Load 372736/439748 {"progress":84}
    [13:23:50.034] - Load 374784/439748 {"progress":85}
    [13:23:50.066] - Load 376832/439748 {"progress":85}
    [13:23:50.097] - Load 378880/439748 {"progress":86}
    [13:23:50.112] - Load 380928/439748 {"progress":86}
    [13:23:50.144] - Load 382976/439748 {"progress":87}
    [13:23:50.175] - Load 385024/439748 {"progress":87}
    [13:23:50.191] - Load 387072/439748 {"progress":88}
    [13:23:50.222] - Load 389120/439748 {"progress":88}
    [13:23:50.253] - Load 391168/439748 {"progress":88}
    [13:23:50.269] - Load 393216/439748 {"progress":89}
    [13:23:50.300] - Load 395264/439748 {"progress":89}
    [13:23:50.316] - Load 397312/439748 {"progress":90}
    [13:23:50.347] - Load 399360/439748 {"progress":90}
    [13:23:50.378] - Load 401408/439748 {"progress":91}
    [13:23:50.394] - Load 403456/439748 {"progress":91}
    [13:23:50.425] - Load 405504/439748 {"progress":92}
    [13:23:50.456] - Load 407552/439748 {"progress":92}
    [13:23:50.472] - Load 409600/439748 {"progress":93}
    [13:23:50.503] - Load 411648/439748 {"progress":93}
    [13:23:50.519] - Load 413696/439748 {"progress":94}
    [13:23:50.550] - Load 415744/439748 {"progress":94}
    [13:23:50.581] - Load 417792/439748 {"progress":95}
    [13:23:50.597] - Load 419840/439748 {"progress":95}
    [13:23:50.628] - Load 421888/439748 {"progress":95}
    [13:23:50.659] - Load 423936/439748 {"progress":96}
    [13:23:50.675] - Load 425984/439748 {"progress":96}
    [13:23:50.706] - Load 428032/439748 {"progress":97}
    [13:23:50.722] - Load 430080/439748 {"progress":97}
    [13:23:50.753] - Load 432128/439748 {"progress":98}
    [13:23:50.784] - Load 434176/439748 {"progress":98}
    [13:23:50.800] - Load 436224/439748 {"progress":99}
    [13:23:50.831] - Load 438272/439748 {"progress":99}
    [13:23:50.847] - Load 439748/439748 {"progress":100}
    [13:23:50.862] - Load 439748/439748 {"progress":100}
    [13:23:50.862] - Write check
    [13:23:50.878] - Flash load time cost(ms): 6375.718994140625
    [13:23:50.878] - Finished
    [13:23:50.894] - Sha caled by host: 8d09305d980dc2efa0b279839e111588fec9cef8ce1d02b798f3e42014d47bb7
    [13:23:50.894] - xip mode Verify
    [13:23:51.113] - Read Sha256/795600
    [13:23:51.113] - Flash xip readsha time cost(ms): 218.81982421875
    [13:23:51.113] - Finished
    [13:23:51.113] - Sha caled by dev: 8d09305d980dc2efa0b279839e111588fec9cef8ce1d02b798f3e42014d47bb7
    [13:23:51.113] - Verify success
    [13:23:51.128] - Program Finished
    [13:23:51.128] - All time cost(ms): 12720.6240234375
    [13:23:51.238] - close interface
    [13:23:51.238] - [All Success]

    I didn't find UART2 on other pins
  • ADVERTISEMENT
  • #5 21546026
    divadiow
    Level 34  
    how are you powering these modules? If from USB-TTL 3V header then that may be the issue, especially on BL602. Are you powering them with external 3.3v PSU?

    BL602 UART output is at 2000000 baud and from the same port as flashing.
  • ADVERTISEMENT
  • #6 21546659
    xopkep
    Level 3  
    After the last firmware update, the logs of which are given above, BL602 stopped writing anything to the serial at all. At 200000 there is also silence. I tried to power it with UART-TTL and from the built-in relay power supply. Just like Beken, I tried to power it with batteries and a UART-TTL adapter.
  • #7 21547563
    p.kaczmarek2
    Moderator Smart Home
    It will not work if you power it directly from USB to UART converter. It can't provide enough current, unless you have one with AMS1117-3.3V on the board. Can you show a photo of your setup?
    Helpful post? Buy me a coffee.
  • #8 21548510
    xopkep
    Level 3  
    I power it from a UART adapter. It can definitely handle 280 mA without voltage drop.
  • #9 21573035
    xopkep
    Level 3  
    Can i try to start over? i'm learning and observing, but i don't understand. At the moment i have the following situation:
    Several modules on the BK7231N chip (these are CBU, CBU-NL, CB3S and SM-028) are flashed on OpenBeken and all do not work. These are the door sensor, temperature sensor, relay, switch.
    The result is the same:
    1. On the firmware port there are only dots "......"
    2. On the second port i see that the modules are in bootloop. The bootloop log is approximately the same:
    Spoiler:

    V:BK7231N_1.0.1
    REG:cpsr spsr r13 r14
    SVC:000000D3 00401C1C 000033AC
    IRQ:000000d2 00000010 00401e0c 5c266647
    FIR:000000d1 00000010 00401ffc da26c71e
    SYS:000000df 0040192c 00000158
    ST:00000000
    J 0x10000
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x414300, size:113920
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 3686 #######
    Info:MAIN:###### safe mode activated - boot failures 3686
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Main_Init_Delay
    bandgap_calm_in_efuse=0x6a
    [load]bandgap_calm=0x6a->0x2a,vddig=4->5
    [FUNC]rwnxl_init
    [bk]tx_txdesc_ж.


    V:BK7231N_1.0.1
    REG:cpsr spsr r13 r14
    SVC:000000D3 00401C1C 000033AC
    IRQ:000000d2 00000010 00401e0c 54266607
    FIR:000000d1 00000010 00401ffc da26c616
    SYS:000000df 0040192c 00000158
    ST:00000000
    J 0x10000
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x414300, size:113920
    [Flash]id:0xeb6015
    sctrl_sta_ps_init
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 3687 #######
    Info:MAIN:###### safe mode activated - boot failures 3687
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 changes count.
    Info:MAIN:Main_Init_Before_Delay done
    Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Main_Init_Delay
    bandgap_calm_in_efuse=0x6a
    [load]bandgap_calm=0x6a->0x2a,vddig=4->5
    [FUNC]rwnxl_init
    [bk]tx_txdesc_ж.

    3. After listening about the correct power supply of the modules, I tried to power them from batteries, from UART-module, from separate 3.3V power supply, from a USB-3.3V converter = with any power supply all the modules are in bootloop.
    4. Finally, i had enough brains to read the dump before flashing (it was a temperature sensor). However, after uploading the backup back to the module, it does not come back to life and does not write anything to the terminal. The firmware is again on OpenBeken = bootloop.
    Log reading backup:
    Spoiler:

    Now is: 8 июня 2025 г. 12:51:04.
    Flasher mode: BK7231N
    Going to open port: COM3.
    Serial port open!
    Getting bus... (now, please do reboot by CEN or by power off/on)
    Getting bus failed, will try again - 0/100!
    Getting bus success!
    Going to set baud rate setting (921600)!
    Will try to read device flash MID (for unprotect N):
    Flash MID loaded: 1560EB
    Will now search for Flash def in out database...
    Flash def found! For: 1560EB
    Flash information: mid: 1560EB, icName: TH25Q16HB, manufacturer: TH, szMem: 1000000, szSR: 2, cwUnp: 0, cwEnp: 7, cwMsk: 407C, sb: 2, lb: 5, cwdRd: 05-35-FF-FF, cwdWr: 01-FF-FF-FF
    Entering SetProtectState(True)...
    sr: 0
    sr: 0
    final sr: 0
    msk: 407c
    cw: 0, sb: 2, lb: 5
    bfd: 0
    SetProtectState(True) success!
    Going to read encryption key...
    Encryption key read done!
    Encryption key: 510fb093 a3cbeadc 5993a17e c7adeb03
    Going to start reading at offset 0x00...
    Reading 0x00... Ok! Reading 0x1000... Ok! Reading 0x2000... Ok! Reading 0x3000... Ok! Reading 0x4000... Ok! Reading 0x5000... Ok! Reading 0x6000... Ok! Reading 0x7000... Ok! Reading 0x8000... Ok! Reading 0x9000... Ok! Reading 0xA000... Ok! Reading 0xB000... Ok! Reading 0xC000... Ok! Reading 0xD000... Ok! Reading 0xE000... Ok! Reading 0xF000... Ok! Reading 0x10000... Ok! Reading 0x11000... Ok! Reading 0x12000... Ok! Reading 0x13000... Ok! Reading 0x14000... Ok! Reading 0x15000... Ok! Reading 0x16000... Ok! Reading 0x17000... Ok! Reading 0x18000... Ok! Reading 0x19000... Ok! Reading 0x1A000... Ok! Reading 0x1B000... Ok! Reading 0x1C000... Ok! Reading 0x1D000... Ok! Reading 0x1E000... Ok! Reading 0x1F000... Ok! Reading 0x20000... Ok! Reading 0x21000... Ok! Reading 0x22000... Ok! Reading 0x23000... Ok! Reading 0x24000... Ok! Reading 0x25000... Ok! Reading 0x26000... Ok! Reading 0x27000... Ok! Reading 0x28000... Ok! Reading 0x29000... Ok! Reading 0x2A000... Ok! Reading 0x2B000... Ok! Reading 0x2C000... Ok! Reading 0x2D000... Ok! Reading 0x2E000... Ok! Reading 0x2F000... Ok! Reading 0x30000... Ok! Reading 0x31000... Ok! Reading 0x32000... Ok! Reading 0x33000... Ok! Reading 0x34000... Ok! Reading 0x35000... Ok! Reading 0x36000... Ok! Reading 0x37000... Ok! Reading 0x38000... Ok! Reading 0x39000... Ok! Reading 0x3A000... Ok! Reading 0x3B000... Ok! Reading 0x3C000... Ok! Reading 0x3D000... Ok! Reading 0x3E000... Ok! Reading 0x3F000... Ok! Reading 0x40000... Ok! Reading 0x41000... Ok! Reading 0x42000... Ok! Reading 0x43000... Ok! Reading 0x44000... Ok! Reading 0x45000... Ok! Reading 0x46000... Ok! Reading 0x47000... Ok! Reading 0x48000... Ok! Reading 0x49000... Ok! Reading 0x4A000... Ok! Reading 0x4B000... Ok! Reading 0x4C000... Ok! Reading 0x4D000... Ok! Reading 0x4E000... Ok! Reading 0x4F000... Ok! Reading 0x50000... Ok! Reading 0x51000... Ok! Reading 0x52000... Ok! Reading 0x53000... Ok! Reading 0x54000... Ok! Reading 0x55000... Ok! Reading 0x56000... Ok! Reading 0x57000... Ok! Reading 0x58000... Ok! Reading 0x59000... Ok! Reading 0x5A000... Ok! Reading 0x5B000... Ok! Reading 0x5C000... Ok! Reading 0x5D000... Ok! Reading 0x5E000... Ok! Reading 0x5F000... Ok! Reading 0x60000... Ok! Reading 0x61000... Ok! Reading 0x62000... Ok! Reading 0x63000... Ok! Reading 0x64000... Ok! Reading 0x65000... Ok! Reading 0x66000... Ok! Reading 0x67000... Ok! Reading 0x68000... Ok! Reading 0x69000... Ok! Reading 0x6A000... Ok! Reading 0x6B000... Ok! Reading 0x6C000... Ok! Reading 0x6D000... Ok! Reading 0x6E000... Ok! Reading 0x6F000... Ok! Reading 0x70000... Ok! Reading 0x71000... Ok! Reading 0x72000... Ok! Reading 0x73000... Ok! Reading 0x74000... Ok! Reading 0x75000... Ok! Reading 0x76000... Ok! Reading 0x77000... Ok! Reading 0x78000... Ok! Reading 0x79000... Ok! Reading 0x7A000... Ok! Reading 0x7B000... Ok! Reading 0x7C000... Ok! Reading 0x7D000... Ok! Reading 0x7E000... Ok! Reading 0x7F000... Ok! Reading 0x80000... Ok! Reading 0x81000... Ok! Reading 0x82000... Ok! Reading 0x83000... Ok! Reading 0x84000... Ok! Reading 0x85000... Ok! Reading 0x86000... Ok! Reading 0x87000... Ok! Reading 0x88000... Ok! Reading 0x89000... Ok! Reading 0x8A000... Ok! Reading 0x8B000... Ok! Reading 0x8C000... Ok! Reading 0x8D000... Ok! Reading 0x8E000... Ok! Reading 0x8F000... Ok! Reading 0x90000... Ok! Reading 0x91000... Ok! Reading 0x92000... Ok! Reading 0x93000... Ok! Reading 0x94000... Ok! Reading 0x95000... Ok! Reading 0x96000... Ok! Reading 0x97000... Ok! Reading 0x98000... Ok! Reading 0x99000... Ok! Reading 0x9A000... Ok! Reading 0x9B000... Ok! Reading 0x9C000... Ok! Reading 0x9D000... Ok! Reading 0x9E000... Ok! Reading 0x9F000... Ok! Reading 0xA0000... Ok! Reading 0xA1000... Ok! Reading 0xA2000... Ok! Reading 0xA3000... Ok! Reading 0xA4000... Ok! Reading 0xA5000... Ok! Reading 0xA6000... Ok! Reading 0xA7000... Ok! Reading 0xA8000... Ok! Reading 0xA9000... Ok! Reading 0xAA000... Ok! Reading 0xAB000... Ok! Reading 0xAC000... Ok! Reading 0xAD000... Ok! Reading 0xAE000... Ok! Reading 0xAF000... Ok! Reading 0xB0000... Ok! Reading 0xB1000... Ok! Reading 0xB2000... Ok! Reading 0xB3000... Ok! Reading 0xB4000... Ok! Reading 0xB5000... Ok! Reading 0xB6000... Ok! Reading 0xB7000... Ok! Reading 0xB8000... Ok! Reading 0xB9000... Ok! Reading 0xBA000... Ok! Reading 0xBB000... Ok! Reading 0xBC000... Ok! Reading 0xBD000... Ok! Reading 0xBE000... Ok! Reading 0xBF000... Ok! Reading 0xC0000... Ok! Reading 0xC1000... Ok! Reading 0xC2000... Ok! Reading 0xC3000... Ok! Reading 0xC4000... Ok! Reading 0xC5000... Ok! Reading 0xC6000... Ok! Reading 0xC7000... Ok! Reading 0xC8000... Ok! Reading 0xC9000... Ok! Reading 0xCA000... Ok! Reading 0xCB000... Ok! Reading 0xCC000... Ok! Reading 0xCD000... Ok! Reading 0xCE000... Ok! Reading 0xCF000... Ok! Reading 0xD0000... Ok! Reading 0xD1000... Ok! Reading 0xD2000... Ok! Reading 0xD3000... Ok! Reading 0xD4000... Ok! Reading 0xD5000... Ok! Reading 0xD6000... Ok! Reading 0xD7000... Ok! Reading 0xD8000... Ok! Reading 0xD9000... Ok! Reading 0xDA000... Ok! Reading 0xDB000... Ok! Reading 0xDC000... Ok! Reading 0xDD000... Ok! Reading 0xDE000... Ok! Reading 0xDF000... Ok! Reading 0xE0000... Ok! Reading 0xE1000... Ok! Reading 0xE2000... Ok! Reading 0xE3000... Ok! Reading 0xE4000... Ok! Reading 0xE5000... Ok! Reading 0xE6000... Ok! Reading 0xE7000... Ok! Reading 0xE8000... Ok! Reading 0xE9000... Ok! Reading 0xEA000... Ok! Reading 0xEB000... Ok! Reading 0xEC000... Ok! Reading 0xED000... Ok! Reading 0xEE000... Ok! Reading 0xEF000... Ok! Reading 0xF0000... Ok! Reading 0xF1000... Ok! Reading 0xF2000... Ok! Reading 0xF3000... Ok! Reading 0xF4000... Ok! Reading 0xF5000... Ok! Reading 0xF6000... Ok! Reading 0xF7000... Ok! Reading 0xF8000... Ok! Reading 0xF9000... Ok! Reading 0xFA000... Ok! Reading 0xFB000... Ok! Reading 0xFC000... Ok! Reading 0xFD000... Ok! Reading 0xFE000... Ok! Reading 0xFF000... Ok! Reading 0x100000... Ok! Reading 0x101000... Ok! Reading 0x102000... Ok! Reading 0x103000... Ok! Reading 0x104000... Ok! Reading 0x105000... Ok! Reading 0x106000... Ok! Reading 0x107000... Ok! Reading 0x108000... Ok! Reading 0x109000... Ok! Reading 0x10A000... Ok! Reading 0x10B000... Ok! Reading 0x10C000... Ok! Reading 0x10D000... Ok! Reading 0x10E000... Ok! Reading 0x10F000... Ok! Reading 0x110000... Ok! Reading 0x111000... Ok! Reading 0x112000... Ok! Reading 0x113000... Ok! Reading 0x114000... Ok! Reading 0x115000... Ok! Reading 0x116000... Ok! Reading 0x117000... Ok! Reading 0x118000... Ok! Reading 0x119000... Ok! Reading 0x11A000... Ok! Reading 0x11B000... Ok! Reading 0x11C000... Ok! Reading 0x11D000... Ok! Reading 0x11E000... Ok! Reading 0x11F000... Ok! Reading 0x120000... Ok! Reading 0x121000... Ok! Reading 0x122000... Ok! Reading 0x123000... Ok! Reading 0x124000... Ok! Reading 0x125000... Ok! Reading 0x126000... Ok! Reading 0x127000... Ok! Reading 0x128000... Ok! Reading 0x129000... Ok! Reading 0x12A000... Ok! Reading 0x12B000... Ok! Reading 0x12C000... Ok! Reading 0x12D000... Ok! Reading 0x12E000... Ok! Reading 0x12F000... Ok! Reading 0x130000... Ok! Reading 0x131000... Ok! Reading 0x132000... Ok! Reading 0x133000... Ok! Reading 0x134000... Ok! Reading 0x135000... Ok! Reading 0x136000... Ok! Reading 0x137000... Ok! Reading 0x138000... Ok! Reading 0x139000... Ok! Reading 0x13A000... Ok! Reading 0x13B000... Ok! Reading 0x13C000... Ok! Reading 0x13D000... Ok! Reading 0x13E000... Ok! Reading 0x13F000... Ok! Reading 0x140000... Ok! Reading 0x141000... Ok! Reading 0x142000... Ok! Reading 0x143000... Ok! Reading 0x144000... Ok! Reading 0x145000... Ok! Reading 0x146000... Ok! Reading 0x147000... Ok! Reading 0x148000... Ok! Reading 0x149000... Ok! Reading 0x14A000... Ok! Reading 0x14B000... Ok! Reading 0x14C000... Ok! Reading 0x14D000... Ok! Reading 0x14E000... Ok! Reading 0x14F000... Ok! Reading 0x150000... Ok! Reading 0x151000... Ok! Reading 0x152000... Ok! Reading 0x153000... Ok! Reading 0x154000... Ok! Reading 0x155000... Ok! Reading 0x156000... Ok! Reading 0x157000... Ok! Reading 0x158000... Ok! Reading 0x159000... Ok! Reading 0x15A000... Ok! Reading 0x15B000... Ok! Reading 0x15C000... Ok! Reading 0x15D000... Ok! Reading 0x15E000... Ok! Reading 0x15F000... Ok! Reading 0x160000... Ok! Reading 0x161000... Ok! Reading 0x162000... Ok! Reading 0x163000... Ok! Reading 0x164000... Ok! Reading 0x165000... Ok! Reading 0x166000... Ok! Reading 0x167000... Ok! Reading 0x168000... Ok! Reading 0x169000... Ok! Reading 0x16A000... Ok! Reading 0x16B000... Ok! Reading 0x16C000... Ok! Reading 0x16D000... Ok! Reading 0x16E000... Ok! Reading 0x16F000... Ok! Reading 0x170000... Ok! Reading 0x171000... Ok! Reading 0x172000... Ok! Reading 0x173000... Ok! Reading 0x174000... Ok! Reading 0x175000... Ok! Reading 0x176000... Ok! Reading 0x177000... Ok! Reading 0x178000... Ok! Reading 0x179000... Ok! Reading 0x17A000... Ok! Reading 0x17B000... Ok! Reading 0x17C000... Ok! Reading 0x17D000... Ok! Reading 0x17E000... Ok! Reading 0x17F000... Ok! Reading 0x180000... Ok! Reading 0x181000... Ok! Reading 0x182000... Ok! Reading 0x183000... Ok! Reading 0x184000... Ok! Reading 0x185000... Ok! Reading 0x186000... Ok! Reading 0x187000... Ok! Reading 0x188000... Ok! Reading 0x189000... Ok! Reading 0x18A000... Ok! Reading 0x18B000... Ok! Reading 0x18C000... Ok! Reading 0x18D000... Ok! Reading 0x18E000... Ok! Reading 0x18F000... Ok! Reading 0x190000... Ok! Reading 0x191000... Ok! Reading 0x192000... Ok! Reading 0x193000... Ok! Reading 0x194000... Ok! Reading 0x195000... Ok! Reading 0x196000... Ok! Reading 0x197000... Ok! Reading 0x198000... Ok! Reading 0x199000... Ok! Reading 0x19A000... Ok! Reading 0x19B000... Ok! Reading 0x19C000... Ok! Reading 0x19D000... Ok! Reading 0x19E000... Ok! Reading 0x19F000... Ok! Reading 0x1A0000... Ok! Reading 0x1A1000... Ok! Reading 0x1A2000... Ok! Reading 0x1A3000... Ok! Reading 0x1A4000... Ok! Reading 0x1A5000... Ok! Reading 0x1A6000... Ok! Reading 0x1A7000... Ok! Reading 0x1A8000... Ok! Reading 0x1A9000... Ok! Reading 0x1AA000... Ok! Reading 0x1AB000... Ok! Reading 0x1AC000... Ok! Reading 0x1AD000... Ok! Reading 0x1AE000... Ok! Reading 0x1AF000... Ok! Reading 0x1B0000... Ok! Reading 0x1B1000... Ok! Reading 0x1B2000... Ok! Reading 0x1B3000... Ok! Reading 0x1B4000... Ok! Reading 0x1B5000... Ok! Reading 0x1B6000... Ok! Reading 0x1B7000... Ok! Reading 0x1B8000... Ok! Reading 0x1B9000... Ok! Reading 0x1BA000... Ok! Reading 0x1BB000... Ok! Reading 0x1BC000... Ok! Reading 0x1BD000... Ok! Reading 0x1BE000... Ok! Reading 0x1BF000... Ok! Reading 0x1C0000... Ok! Reading 0x1C1000... Ok! Reading 0x1C2000... Ok! Reading 0x1C3000... Ok! Reading 0x1C4000... Ok! Reading 0x1C5000... Ok! Reading 0x1C6000... Ok! Reading 0x1C7000... Ok! Reading 0x1C8000... Ok! Reading 0x1C9000... Ok! Reading 0x1CA000... Ok! Reading 0x1CB000... Ok! Reading 0x1CC000... Ok! Reading 0x1CD000... Ok! Reading 0x1CE000... Ok! Reading 0x1CF000... Ok! Reading 0x1D0000... Ok! Reading 0x1D1000... Ok! Reading 0x1D2000... Ok! Reading 0x1D3000... Ok! Reading 0x1D4000... Ok! Reading 0x1D5000... Ok! Reading 0x1D6000... Ok! Reading 0x1D7000... Ok! Reading 0x1D8000... Ok! Reading 0x1D9000... Ok! Reading 0x1DA000... Ok! Reading 0x1DB000... Ok! Reading 0x1DC000... Ok! Reading 0x1DD000... Ok! Reading 0x1DE000... Ok! Reading 0x1DF000... Ok! Reading 0x1E0000... Ok! Reading 0x1E1000... Ok! Reading 0x1E2000... Ok! Reading 0x1E3000... Ok! Reading 0x1E4000... Ok! Reading 0x1E5000... Ok! Reading 0x1E6000... Ok! Reading 0x1E7000... Ok! Reading 0x1E8000... Ok! Reading 0x1E9000... Ok! Reading 0x1EA000... Ok! Reading 0x1EB000... Ok! Reading 0x1EC000... Ok! Reading 0x1ED000... Ok! Reading 0x1EE000... Ok! Reading 0x1EF000... Ok! Reading 0x1F0000... Ok! Reading 0x1F1000... Ok! Reading 0x1F2000... Ok! Reading 0x1F3000... Ok! Reading 0x1F4000... Ok! Reading 0x1F5000... Ok! Reading 0x1F6000... Ok! Reading 0x1F7000... Ok! Reading 0x1F8000... Ok! Reading 0x1F9000... Ok! Reading 0x1FA000... Ok! Reading 0x1FB000... Ok! Reading 0x1FC000... Ok! Reading 0x1FD000... Ok! Reading 0x1FE000... Ok! Reading 0x1FF000... Ok!
    Basic read operation finished, but now it's time to verify...
    Starting CRC check for 512 sectors, starting at offset 0x00
    CRC matches 0x3B817D6C!
    All read!
    Loaded total 0x200000 bytes
    Wrote 2097152 to readResult_BK7231N_QIO_thermo33_2025-08-6-12-51-49.bin
    Backup 2MB created, now will attempt to extract OBK config.
    It's not an OBK config, header is bad
    OBK config not found.
    Backup 2MB created, now will attempt to extract Tuya config.
    Tuya config extractor - magic is at 2023424
    Saving debug Tuya decryption data to lastRawDecryptedStrings.bin
    Tuya keys extraction has found 23 keys
    Tuya config extracted and shown.
    MAC seems to be B8:06:0D:2F:54:F8


    5. Related question: "BK7231 Easy UART Flasher" downloads the QIO version firmware, don't i need the UA version to flash via UART? If anything, i tried both QIO and UA firmware - no difference = bootloop.
    In the end, i want to understand what i'm doing wrong and why i can't perform what seems to be a standard operation. This is despite the fact that i have several modules that have been successfully flashed to OpenBeken and have been working in their place for a long time.
    I really need some tips!
  • #10 21573352
    divadiow
    Level 34  
    still kinda feels like a power issue.

    Happy to try your original backup if you need to confirm it works. Just post here or send to me.

    xopkep wrote:
    Related question: "BK7231 Easy UART Flasher" downloads the QIO version firmware, don't i need the UA version to flash via UART? If anything, i tried both QIO and UA firmware - no difference = bootloop.


    QIO includes the bootloader and can be flashed from 0x0, UA is just the user area/app data to be flashed from 0x11000 (in the case of Beken N/T)
  • #11 21573362
    p.kaczmarek2
    Moderator Smart Home
    BK7231 Easy UART Flasher already has GUI option called "Overwrite bootloader". If enabled, it will overwrite bootloader with the one from Qio. If disabled, it will write only UserArea from QIO, so flashing QIO with this option from our flasher is the same as flashing UA. Exactly the same, I think.
    Helpful post? Buy me a coffee.
  • #12 21574824
    xopkep
    Level 3  
    thanks for the explanation about UA/QIO
    i'll upload the original dump later, in about 10 hours.
    readResult...-51-49.bin Download (2 MB) this is backup temp/hum sensor with wifi and cht8310
    readResult...-51-49.txt Download (13.28 kB) and it log reading
    i also thought that the power supply was to blame. however, initially (before the first flashing, on the original fw) the power supply was sufficient. after returning to the original firmware, is it no longer sufficient? hmm....
    in addition, i tried to power it from a stabilized adjustable laboratory power supply, with sufficient power reserve, and the situation did not change with any "broken" module - still the same bootloop.

Topic summary

Devices based on BK7231N and BL602 chips, including SM-028_V1.3 (BL602L20) and CB3S modules, exhibit firmware flashing issues resulting in bootloops and continuous serial output of dots without Wi-Fi activation. Firmware flashing attempts using BekenWriterV1.60, BK7231 Easy UART Flasher, and python uartprogram report success, but devices fail to boot properly. The SM-028_V1.3 module is confirmed to use BL602L20, not BK7231N, and BL602 UART logs operate at 2,000,000 baud on the same port used for flashing. Power supply concerns were raised, as USB-to-UART converters often cannot provide sufficient current for stable operation; however, powering from batteries, UART adapters, and dedicated 3.3V supplies still results in bootloops. Backup firmware dumps restored to devices do not resolve the issue. Clarifications on flashing procedures note that BK7231 Easy UART Flasher’s "Overwrite bootloader" option controls whether the bootloader is replaced or only the user area is flashed. The problem persists despite correct flashing methods and power supply variations, suggesting possible firmware compatibility or hardware identification mismatches.
Summary generated by the language model.
ADVERTISEMENT