logo elektroda
logo elektroda
X
logo elektroda

BL602L20 from Aliexpress - where to connect BOOT for flashing?

Mad_Maxs 2802 23
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20981453
    Mad_Maxs
    Level 11  

    Hello again,
    once again friends from China, sent me another variant of the temp sensor with BL602 on board. This time, you have to solder out the battery connector to get to the pads, however, I am not missing a pad here boot. There is a DL and an EN instead.
    Where in this case to pass VCC through a 10kohm resistor to get into flashing mode?
    BL602L20 from Aliexpress - where to connect BOOT for flashing? BL602L20 from Aliexpress - where to connect BOOT for flashing? BL602L20 from Aliexpress - where to connect BOOT for flashing?

    Possible which pin of the chip itself is BT. Eventually, I'll try soldering at the chip (although the test raster is relatively small)
  • ADVERTISEMENT
  • #2 20981909
    p.kaczmarek2
    Moderator Smart Home
    DL is a rather different nomenclature for BOOT, probably derived here from "DownLoad", "firmware download", which means "downloading the batch to the microcontroller".

    In this topic you have pinout BL602:
    https://www.elektroda.com/rtvforum/topic3889041.html
    BOOT is otherwise D8/GPIO8:
    https://www.elektroda.pl/rtvforum/topic3945435.html#20380423
    Instructions for handling the D8/GPIO8 pin on the DT-BL10 board. .
    Helpful post? Buy me a coffee.
  • #3 20982249
    Mad_Maxs
    Level 11  
    Indeed DL raised, lets flash the chip. One went from flash, but the second one is putting up something. Below is the configuration that went into the first sensor, and on the second it shows as if the flash is too big?:
    Firmware loading software with flash overflow error.
    Log from the application:
    
    [09:34:10.242] - ========= Interface is Uart =========
    [09:34:10.246] - eflash loader bin is eflash_loader_40m.bin
    [09:34:10.248] - ========= chip flash id: ef4015 =========
    [09:34:10.252] - create partition.bin, pt_new is True
    [09:34:10.262] - fw_boot_head_gen xtal: 40M
    [09:34:10.265] - Create bootheader using D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
    [09:34:10.265] - Updating data according to <D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
    [09:34:10.267] - Created file len:176
    [09:34:10.270] - Create efuse using D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
    [09:34:10.271] - Updating data according to <D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[EFUSE_CFG]>
    [09:34:10.272] - Created file len:128
    [09:34:10.278] - ========= sp image create =========
    [09:34:10.280] - Image hash is b'd52b4fd65ac9d1cca47b2e4f53bd3042c7a1ea239080c966dca3c24f535cef07'
    [09:34:10.280] - Hash ignored
    [09:34:10.282] - Header crc ignored
    [09:34:10.282] - Write flash img
    [09:34:10.284] - Encrypt efuse data
    [09:34:10.290] - fw_boot_head_gen xtal: 40M
    [09:34:10.293] - Create bootheader using D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
    [09:34:10.294] - Updating data according to <D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[BOOTHEADER_CFG]>
    [09:34:10.295] - Created file len:176
    [09:34:10.298] - Create efuse using D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini
    [09:34:10.299] - Updating data according to <D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\efuse_bootheader_cfg.ini[EFUSE_CFG]>
    [09:34:10.300] - Created file len:128
    [09:34:10.309] - ========= sp image create =========
    [09:34:10.315] - Image hash is b'0f5f88f57af472f998b767c262071cba633173ac0cc332d918bd2775010a7d9b'
    [09:34:10.316] - Header crc: b'9eee38ff'
    [09:34:10.316] - Write flash img
    [09:34:10.322] - Encrypt efuse data
    [09:34:10.324] - FW Header is 176, 3920 still needed
    [09:34:10.324] - FW OTA bin header is Done. Len is 4096
    [09:34:10.381] - BL60X_OTA_Ver1.0
    [09:34:10.443] - FW OTA bin is Done. Len is 761104
    [09:34:10.796] - OTA XZ file len = 405284
    [09:34:10.796] - Partiton len = 557056
    [09:34:10.797] - BL60X_OTA_Ver1.0
    [09:34:10.836] - FW OTA xz is Done
    [09:34:10.837] - ========= eflash loader config =========
    [09:34:10.839] - Image offset = 8192
    [09:34:10.876] - =========D:/Instalki/OpenBL602-master/BouffaloLabDevCube-v1.8.8/chips/bl602/device_tree/bl_factory_params_IoTKitA_40M.dts ——> D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602/device_tree/ro_params.dtb=========
    [09:34:10.993] - Version: eflash_loader_v2.4.8
    [09:34:10.993] - Program Start
    [09:34:10.993] - ========= eflash loader cmd arguments =========
    [09:34:10.993] - Config file: D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\eflash_loader/eflash_loader_cfg.ini
    [09:34:10.996] - serial port is COM6
    [09:34:10.996] - cpu_reset=False
    [09:34:10.996] - chiptype: bl602
    [09:34:10.996] - ========= Interface is uart =========
    [09:34:10.996] - com speed: 2000000
    [09:34:10.996] - Eflash load helper file: D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\eflash_loader/eflash_loader_40m.bin
    [09:34:10.997] - ========= load eflash_loader.bin =========
    [09:34:10.997] - Load eflash_loader.bin via uart
    [09:34:10.997] - ========= image load =========
    [09:34:11.222] - Not ack OK
    [09:34:11.223] - FL
    [09:34:11.223] - result: FL
    [09:34:11.505] - tx rx and power off, press the machine!
    [09:34:11.506] - cutoff time is 0.1
    [09:34:11.615] - power on tx and rx
    [09:34:12.426] - reset cnt: 0, reset hold: 0.005, shake hand delay: 0.1
    [09:34:12.427] - clean buf
    [09:34:12.430] - send sync
    [09:34:12.645] - ack is 4f4b
    [09:34:12.691] - shake hand success
    [09:34:12.706] - get_boot_info
    [09:34:12.707] - data read is b'01000000000000000300040047befc4cb97c1300'
    [09:34:12.707] - ========= chipid: 7cb94cfcbe47 =========
    [09:34:12.708] - last boot info: None
    [09:34:12.708] - sign is 0 encrypt is 0
    [09:34:12.708] - segcnt is 1
    [09:34:12.714] - segdata_len is 38512
    [09:34:12.805] - 4080/38512
    [09:34:12.897] - 8160/38512
    [09:34:12.987] - 12240/38512
    [09:34:13.079] - 16320/38512
    [09:34:13.169] - 20400/38512
    [09:34:13.261] - 24480/38512
    [09:34:13.353] - 28560/38512
    [09:34:13.445] - 32640/38512
    [09:34:13.536] - 36720/38512
    [09:34:13.577] - 38512/38512
    [09:34:13.578] - Run img
    [09:34:13.685] - Load helper bin time cost(ms): 2687.8857421875
    [09:34:13.793] - Flash load shake hand
    [09:34:13.804] - default set DTR high
    [09:34:13.917] - clean buf
    [09:34:13.920] - send sync
    [09:34:14.152] - ack is 4f4b
    [09:34:14.198] - Read mac addr
    [09:34:14.200] - macaddr: 47befc4cb97c
    [09:34:14.201] - flash set para
    [09:34:14.201] - ========= flash read jedec ID =========
    [09:34:14.202] - Read flash jedec ID
    [09:34:14.202] - flash jedec id: c2201480
    [09:34:14.202] - Finished
    [09:34:14.207] - get flash size: 0x00100000
    [09:34:14.207] - Program operation
    [09:34:14.207] - ========= flash chip erase all =========
    [09:34:15.219] - erase pending
    [09:34:16.228] - erase pending
    [09:34:17.236] - erase pending
    [09:34:18.245] - erase pending
    [09:34:19.077] - Chip erase time cost(ms): 4869.836669921875
    [09:34:19.081] - Dealing Index 0
    [09:34:19.082] - ========= programming D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\whole_img_boot2.bin to 0x00000000
    [09:34:19.085] - ========= flash load =========
    [09:34:19.085] - decompress write rx timeout: 12.288
    [09:34:19.103] - decompress flash load 23964
    [09:34:19.119] - Load 2048/23964 {"progress":8}
    [09:34:19.148] - Load 4096/23964 {"progress":17}
    [09:34:19.165] - Load 6144/23964 {"progress":25}
    [09:34:19.185] - Load 8192/23964 {"progress":34}
    [09:34:19.205] - Load 10240/23964 {"progress":42}
    [09:34:19.225] - Load 12288/23964 {"progress":51}
    [09:34:19.246] - Load 14336/23964 {"progress":59}
    [09:34:19.262] - Load 16384/23964 {"progress":68}
    [09:34:19.283] - Load 18432/23964 {"progress":76}
    [09:34:19.302] - Load 20480/23964 {"progress":85}
    [09:34:19.323] - Load 22528/23964 {"progress":94}
    [09:34:19.334] - Load 23964/23964 {"progress":100}
    [09:34:19.334] - Load 23964/23964 {"progress":100}
    [09:34:19.334] - Write check
    [09:34:19.361] - Flash load time cost(ms): 275.296875
    [09:34:19.361] - Finished
    [09:34:19.362] - Sha caled by host: 7eff43d713878c8bcff8004d7d218a9586069cfe4ff66dc0bfd182b9bea09520
    [09:34:19.362] - xip mode Verify
    [09:34:19.377] - Read Sha256/47552
    [09:34:19.378] - Flash xip readsha time cost(ms): 15.01416015625
    [09:34:19.378] - Finished
    [09:34:19.378] - Sha caled by dev: 7eff43d713878c8bcff8004d7d218a9586069cfe4ff66dc0bfd182b9bea09520
    [09:34:19.379] - Verify success
    [09:34:19.380] - Dealing Index 1
    [09:34:19.380] - ========= programming chips\bl602\partition\partition.bin to 0x0000E000
    [09:34:19.384] - ========= flash load =========
    [09:34:19.387] - Load 272/272 {"progress":100}
    [09:34:19.388] - Load 272/272 {"progress":100}
    [09:34:19.388] - Write check
    [09:34:19.389] - Flash load time cost(ms): 5.06298828125
    [09:34:19.390] - Finished
    [09:34:19.390] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [09:34:19.390] - xip mode Verify
    [09:34:19.393] - Read Sha256/272
    [09:34:19.393] - Flash xip readsha time cost(ms): 2.00146484375
    [09:34:19.393] - Finished
    [09:34:19.394] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [09:34:19.394] - Verify success
    [09:34:19.395] - Dealing Index 2
    [09:34:19.396] - ========= programming chips\bl602\partition\partition.bin to 0x0000F000
    [09:34:19.398] - ========= flash load =========
    [09:34:19.403] - Load 272/272 {"progress":100}
    [09:34:19.403] - Load 272/272 {"progress":100}
    [09:34:19.403] - Write check
    [09:34:19.405] - Flash load time cost(ms): 4.9814453125
    [09:34:19.405] - Finished
    [09:34:19.406] - Sha caled by host: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [09:34:19.406] - xip mode Verify
    [09:34:19.407] - Read Sha256/272
    [09:34:19.407] - Flash xip readsha time cost(ms): 0.90576171875
    [09:34:19.407] - Finished
    [09:34:19.410] - Sha caled by dev: fd6af18fc4aaf2807277cac767ca19d12af7b55f5ecbb8902ef28bc2430524aa
    [09:34:19.410] - Verify success
    [09:34:19.411] - Dealing Index 3
    [09:34:19.411] - ========= programming D:\Instalki\OpenBL602-master\BouffaloLabDevCube-v1.8.8\chips\bl602\img_create_iot\whole_img.bin to 0x00010000
    [09:34:19.419] - ========= flash load =========
    [09:34:19.420] - decompress write rx timeout: 12.288
    [09:34:19.694] - decompress flash load 405284
    [09:34:19.710] - Load 2048/405284 {"progress":0}
    [09:34:19.736] - Load 4096/405284 {"progress":1}
    [09:34:19.756] - Load 6144/405284 {"progress":1}
    [09:34:19.772] - Load 8192/405284 {"progress":2}
    [09:34:19.792] - Load 10240/405284 {"progress":2}
    [09:34:19.812] - Load 12288/405284 {"progress":3}
    [09:34:19.832] - Load 14336/405284 {"progress":3}
    [09:34:19.852] - Load 16384/405284 {"progress":4}
    [09:34:19.868] - Load 18432/405284 {"progress":4}
    [09:34:19.887] - Load 20480/405284 {"progress":5}
    [09:34:19.907] - Load 22528/405284 {"progress":5}
    [09:34:19.927] - Load 24576/405284 {"progress":6}
    [09:34:19.943] - Load 26624/405284 {"progress":6}
    [09:34:19.963] - Load 28672/405284 {"progress":7}
    [09:34:19.983] - Load 30720/405284 {"progress":7}
    [09:34:20.004] - Load 32768/405284 {"progress":8}
    [09:34:20.023] - Load 34816/405284 {"progress":8}
    [09:34:20.044] - Load 36864/405284 {"progress":9}
    [09:34:20.060] - Load 38912/405284 {"progress":9}
    [09:34:20.080] - Load 40960/405284 {"progress":10}
    [09:34:20.101] - Load 43008/405284 {"progress":10}
    [09:34:20.121] - Load 45056/405284 {"progress":11}
    [09:34:20.141] - Load 47104/405284 {"progress":11}
    [09:34:20.161] - Load 49152/405284 {"progress":12}
    [09:34:20.181] - Load 51200/405284 {"progress":12}
    [09:34:20.201] - Load 53248/405284 {"progress":13}
    [09:34:20.221] - Load 55296/405284 {"progress":13}
    [09:34:20.241] - Load 57344/405284 {"progress":14}
    [09:34:20.257] - Load 59392/405284 {"progress":14}
    [09:34:20.277] - Load 61440/405284 {"progress":15}
    [09:34:20.297] - Load 63488/405284 {"progress":15}
    [09:34:20.317] - Load 65536/405284 {"progress":16}
    [09:34:20.333] - Load 67584/405284 {"progress":16}
    [09:34:20.354] - Load 69632/405284 {"progress":17}
    [09:34:20.374] - Load 71680/405284 {"progress":17}
    [09:34:20.394] - Load 73728/405284 {"progress":18}
    [09:34:20.413] - Load 75776/405284 {"progress":18}
    [09:34:20.430] - Load 77824/405284 {"progress":19}
    [09:34:20.450] - Load 79872/405284 {"progress":19}
    [09:34:20.470] - Load 81920/405284 {"progress":20}
    [09:34:20.490] - Load 83968/405284 {"progress":20}
    [09:34:20.510] - Load 86016/405284 {"progress":21}
    [09:34:20.529] - Load 88064/405284 {"progress":21}
    [09:34:20.550] - Load 90112/405284 {"progress":22}
    [09:34:20.567] - Load 92160/405284 {"progress":22}
    [09:34:20.586] - Load 94208/405284 {"progress":23}
    [09:34:20.606] - Load 96256/405284 {"progress":23}
    [09:34:20.627] - Load 98304/405284 {"progress":24}
    [09:34:20.647] - Load 100352/405284 {"progress":24}
    [09:34:20.667] - Load 102400/405284 {"progress":25}
    [09:34:20.687] - Load 104448/405284 {"progress":25}
    [09:34:20.708] - Load 106496/405284 {"progress":26}
    [09:34:20.724] - Load 108544/405284 {"progress":26}
    [09:34:20.744] - Load 110592/405284 {"progress":27}
    [09:34:20.764] - Load 112640/405284 {"progress":27}
    [09:34:20.785] - Load 114688/405284 {"progress":28}
    [09:34:20.805] - Load 116736/405284 {"progress":28}
    [09:34:20.825] - Load 118784/405284 {"progress":29}
    [09:34:20.846] - Load 120832/405284 {"progress":29}
    [09:34:20.866] - Load 122880/405284 {"progress":30}
    [09:34:20.886] - Load 124928/405284 {"progress":30}
    [09:34:20.906] - Load 126976/405284 {"progress":31}
    [09:34:20.926] - Load 129024/405284 {"progress":31}
    [09:34:20.942] - Load 131072/405284 {"progress":32}
    [09:34:20.961] - Load 133120/405284 {"progress":32}
    [09:34:20.982] - Load 135168/405284 {"progress":33}
    [09:34:21.002] - Load 137216/405284 {"progress":33}
    [09:34:21.022] - Load 139264/405284 {"progress":34}
    [09:34:21.042] - Load 141312/405284 {"progress":34}
    [09:34:21.057] - Load 143360/405284 {"progress":35}
    [09:34:21.077] - Load 145408/405284 {"progress":35}
    [09:34:21.099] - Load 147456/405284 {"progress":36}
    [09:34:21.119] - Load 149504/405284 {"progress":36}
    [09:34:21.139] - Load 151552/405284 {"progress":37}
    [09:34:21.158] - Load 153600/405284 {"progress":37}
    [09:34:21.174] - Load 155648/405284 {"progress":38}
    [09:34:21.194] - Load 157696/405284 {"progress":38}
    [09:34:21.214] - Load 159744/405284 {"progress":39}
    [09:34:21.235] - Load 161792/405284 {"progress":39}
    [09:34:21.251] - Load 163840/405284 {"progress":40}
    [09:34:21.271] - Load 165888/405284 {"progress":40}
    [09:34:21.291] - Load 167936/405284 {"progress":41}
    [09:34:21.311] - Load 169984/405284 {"progress":41}
    [09:34:21.331] - Load 172032/405284 {"progress":42}
    [09:34:21.349] - Load 174080/405284 {"progress":42}
    [09:34:21.369] - Load 176128/405284 {"progress":43}
    [09:34:21.389] - Load 178176/405284 {"progress":43}
    [09:34:21.409] - Load 180224/405284 {"progress":44}
    [09:34:21.425] - Load 182272/405284 {"progress":44}
    [09:34:21.445] - Load 184320/405284 {"progress":45}
    [09:34:21.465] - Load 186368/405284 {"progress":45}
    [09:34:21.485] - Load 188416/405284 {"progress":46}
    [09:34:21.506] - Load 190464/405284 {"progress":46}
    [09:34:21.526] - Load 192512/405284 {"progress":47}
    [09:34:21.547] - Load 194560/405284 {"progress":48}
    [09:34:21.566] - Load 196608/405284 {"progress":48}
    [09:34:21.586] - Load 198656/405284 {"progress":49}
    [09:34:21.603] - Load 200704/405284 {"progress":49}
    [09:34:21.623] - Load 202752/405284 {"progress":50}
    [09:34:21.644] - Load 204800/405284 {"progress":50}
    [09:34:21.665] - Load 206848/405284 {"progress":51}
    [09:34:21.685] - Load 208896/405284 {"progress":51}
    [09:34:21.705] - Load 210944/405284 {"progress":52}
    [09:34:21.721] - Load 212992/405284 {"progress":52}
    [09:34:21.741] - Load 215040/405284 {"progress":53}
    [09:34:21.761] - Load 217088/405284 {"progress":53}
    [09:34:21.781] - Load 219136/405284 {"progress":54}
    [09:34:21.800] - Load 221184/405284 {"progress":54}
    [09:34:21.817] - Load 223232/405284 {"progress":55}
    [09:34:21.836] - Load 225280/405284 {"progress":55}
    [09:34:21.857] - Load 227328/405284 {"progress":56}
    [09:34:21.877] - Load 229376/405284 {"progress":56}
    [09:34:21.897] - Load 231424/405284 {"progress":57}
    [09:34:21.912] - Load 233472/405284 {"progress":57}
    [09:34:21.933] - Load 235520/405284 {"progress":58}
    [09:34:21.953] - Load 237568/405284 {"progress":58}
    [09:34:21.972] - Load 239616/405284 {"progress":59}
    [09:34:21.992] - Load 241664/405284 {"progress":59}
    [09:34:22.009] - Load 243712/405284 {"progress":60}
    [09:34:22.029] - Load 245760/405284 {"progress":60}
    [09:34:22.049] - Load 247808/405284 {"progress":61}
    [09:34:22.069] - Load 249856/405284 {"progress":61}
    [09:34:22.084] - Load 251904/405284 {"progress":62}
    [09:34:22.105] - Load 253952/405284 {"progress":62}
    [09:34:22.125] - Load 256000/405284 {"progress":63}
    [09:34:22.145] - Load 258048/405284 {"progress":63}
    [09:34:22.165] - Load 260096/405284 {"progress":64}
    [09:34:22.180] - Load 262144/405284 {"progress":64}
    [09:34:22.201] - Load 264192/405284 {"progress":65}
    [09:34:22.221] - Load 266240/405284 {"progress":65}
    [09:34:22.241] - Load 268288/405284 {"progress":66}
    [09:34:22.261] - Load 270336/405284 {"progress":66}
    [09:34:22.276] - Load 272384/405284 {"progress":67}
    [09:34:22.296] - Load 274432/405284 {"progress":67}
    [09:34:22.316] - Load 276480/405284 {"progress":68}
    [09:34:22.336] - Load 278528/405284 {"progress":68}
    [09:34:22.357] - Load 280576/405284 {"progress":69}
    [09:34:22.373] - Load 282624/405284 {"progress":69}
    [09:34:22.393] - Load 284672/405284 {"progress":70}
    [09:34:22.413] - Load 286720/405284 {"progress":70}
    [09:34:22.433] - Load 288768/405284 {"progress":71}
    [09:34:22.449] - Load 290816/405284 {"progress":71}
    [09:34:22.469] - Load 292864/405284 {"progress":72}
    [09:34:22.489] - Load 294912/405284 {"progress":72}
    [09:34:22.509] - Load 296960/405284 {"progress":73}
    [09:34:22.529] - Load 299008/405284 {"progress":73}
    [09:34:22.550] - Load 301056/405284 {"progress":74}
    [09:34:22.570] - Load 303104/405284 {"progress":74}
    [09:34:22.590] - Load 305152/405284 {"progress":75}
    [09:34:22.605] - Load 307200/405284 {"progress":75}
    [09:34:22.625] - Load 309248/405284 {"progress":76}
    [09:34:22.646] - Load 311296/405284 {"progress":76}
    [09:34:22.666] - Load 313344/405284 {"progress":77}
    [09:34:22.686] - Load 315392/405284 {"progress":77}
    [09:34:22.702] - Load 317440/405284 {"progress":78}
    [09:34:22.736] - Load 319488/405284 {"progress":78}
    [09:34:22.752] - Load 321536/405284 {"progress":79}
    [09:34:22.786] - Load 323584/405284 {"progress":79}
    [09:34:22.807] - Load 325632/405284 {"progress":80}
    [09:34:22.827] - Load 327680/405284 {"progress":80}
    [09:34:22.848] - Load 329728/405284 {"progress":81}
    [09:34:22.869] - Load 331776/405284 {"progress":81}
    [09:34:22.890] - Load 333824/405284 {"progress":82}
    [09:34:22.910] - Load 335872/405284 {"progress":82}
    [09:34:22.931] - Load 337920/405284 {"progress":83}
    [09:34:22.952] - Load 339968/405284 {"progress":83}
    [09:34:22.972] - Load 342016/405284 {"progress":84}
    [09:34:22.993] - Load 344064/405284 {"progress":84}
    [09:34:23.014] - Load 346112/405284 {"progress":85}
    [09:34:23.035] - Load 348160/405284 {"progress":85}
    [09:34:23.056] - Load 350208/405284 {"progress":86}
    [09:34:23.077] - Load 352256/405284 {"progress":86}
    [09:34:23.098] - Load 354304/405284 {"progress":87}
    [09:34:23.146] - Load 356352/405284 {"progress":87}
    [09:34:23.167] - Load 358400/405284 {"progress":88}
    [09:34:23.187] - Load 360448/405284 {"progress":88}
    [09:34:23.222] - Load 362496/405284 {"progress":89}
    [09:34:23.255] - Load 364544/405284 {"progress":89}
    [09:34:23.277] - Load 366592/405284 {"progress":90}
    [09:34:23.311] - Load 368640/405284 {"progress":90}
    [09:34:23.332] - Load 370688/405284 {"progress":91}
    [09:34:23.365] - Load 372736/405284 {"progress":91}
    [09:34:23.386] - Load 374784/405284 {"progress":92}
    [09:34:23.420] - Load 376832/405284 {"progress":92}
    [09:34:23.440] - Load 378880/405284 {"progress":93}
    [09:34:23.461] - Load 380928/405284 {"progress":93}
    [09:34:23.495] - Load 382976/405284 {"progress":94}
    [09:34:23.516] - Load 385024/405284 {"progress":95}
    [09:34:23.537] - Load 387072/405284 {"progress":95}
    [09:34:23.572] - Load 389120/405284 {"progress":96}
    [09:34:23.592] - Load 391168/405284 {"progress":96}
    [09:34:23.613] - Load 393216/405284 {"progress":97}
    [09:34:23.636] - Load 395264/405284 {"progress":97}
    [09:34:23.656] - Load 397312/405284 {"progress":98}
    [09:34:23.690] - Load 399360/405284 {"progress":98}
    [09:34:23.711] - Load 401408/405284 {"progress":99}
    [09:34:23.747] - Load 403456/405284 {"progress":99}
    [09:34:23.779] - Load 405284/405284 {"progress":100}
    [09:34:23.780] - Load 405284/405284 {"progress":100}
    [09:34:23.781] - Write check
    [09:34:23.813] - Flash load time cost(ms): 4391.84619140625
    [09:34:23.814] - Finished
    [09:34:23.819] - Sha caled by host: 097185e476781ded555e35dbd57b317107169190bf0a5c743ab460661a923a3a
    [09:34:23.819] - xip mode Verify
    [09:34:24.027] - Read Sha256/761104
    [09:34:24.028] - Flash xip readsha time cost(ms): 208.1171875
    [09:34:24.029] - Finished
    [09:34:24.029] - Sha caled by dev: 097185e476781ded555e35dbd57b317107169190bf0a5c743ab460661a923a3a
    [09:34:24.029] - Verify success
    [09:34:24.031] - Dealing Index 4
    [09:34:24.031] - ========= programming chips\bl602\device_tree\ro_params.dtb to 0x001F8000
    [09:34:24.035] - ========= flash load =========
    [09:34:24.035] - program chips\bl602\device_tree\ro_params.dtb file to 0x001F8000, but it overflow with flash size 0x00100000
    [09:34:24.035] - ErrorCode: 0045, ErrorMsg: BFLB FLASH SIZE OVER FLOW
    [09:34:24.035] - Flash load fail
    [09:34:24.036] - Burn Retry
    [09:34:24.036] - 0
    [09:34:24.036] - Burn return with retry fail
    


    When I discard dts and boot2, the flashing runs fine, but the device does not boot (first blinked LED and raised default AP)
    OpenBL602 application interface with BL602 flashing settings.

    Added after 27 [minutes]:

    Apparently the board is the same, but the chip is already different, as it is a BL602L10:
    Close-up of a circuit board with a BL602L10 S9FSR5 chip marked AIYATO_TH_V1 2023.12.13. .
  • #4 20983686
    p.kaczmarek2
    Moderator Smart Home
    You probably need to poke around. Colleague @divadiow in this thread had a similar problem and somehow solved it:
    https://www.elektroda.com/rtvforum/topic4039283.html
    Quote:

    Bouffalo Labs BL602L20 (L=Light, 2=16mbit/2mb flash)


    From this it would appear that BL602L10 is L=Light, 1 = 1MB Flash....

    Maybe, for example, selecting Partition for 1M and not 2M would help. Just curious what about the application ... As the whole thing is made under the assumption that it is under 2MB. Possibly a separate build would have to be compiled.
    Helpful post? Buy me a coffee.
  • #5 20984134
    Mad_Maxs
    Level 11  

    Unfortunately despite switching the partition to 1MB and successfully flashing, the device does not boot. I assume that what you wrote works and you would have to make a version for 1MB

    Software interface for flashing and configuring the BL602 device in the OpenBL602 system with various setting options. .
  • #6 20984178
    p.kaczmarek2
    Moderator Smart Home
    And what does the log on the UART show?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 20984232
    Mad_Maxs
    Level 11  
    
    [14:05:14.545] - serial type is general
    [14:05:14.577] - Open COM6 Success
    [14:05:14.627] - Starting bl602 now....
    [14:05:14.629] - Booting BL602 Chip...
    [14:05:14.632] -
    [14:05:14.635] -
    [14:05:14.639] -
    [14:05:14.642] -
    [14:05:14.648] -
    [14:05:14.651] - ------------------------------------------------------------
    [14:05:14.653] - RISC-V Core Feature:RV32-ACFIMX
    [14:05:14.655] - Build Version:      release_bl_iot_sdk_1.6.22-22-g1d4ff804-dirty
    [14:05:14.657] - Std Driver Version: 541807d
    [14:05:14.659] - PHY   Version:      a0_final-73-g62481a0
    [14:05:14.660] - RF    Version:      79cc6b9
    [14:05:14.663] - Build Date:         Feb  7 2024
    [14:05:14.664] - Build Time:         08:12:26
    [14:05:14.665] - Boot Reason:        BL_RST_POWER_OFF
    [14:05:14.667] - ------------------------------------------------------------
    [14:05:14.668] - Heap 127536@0x42022dd0, 5888@0x4204a900
    [14:05:14.668] - Boot2 consumed 15ms
    [14:05:14.671] - blog init set power on level 2, 2, 2.
    [14:05:14.673] - [IRQ] Clearing and Disable all the pending IRQ...
    [14:05:14.674] - ------------------TRNG TEST---------------------------------
    [14:05:14.676] - **********TRNG TEST rand[308277d2]**************
    [14:05:14.677] - **********TRNG TEST rand[304ebd9f]**************
    [14:05:14.678] - ------------------------------------------------------------
    [14:05:14.680] - [         0][INFO  : hal_boot2.c: 285] [HAL] [BOOT2] Active Partition[0] consumed 596 Bytes
    [14:05:14.683] - [         0][INFO  : hal_boot2.c:  82] ======= PtTable_Config @0x4200ed84=======
    [14:05:14.686] - [         0][INFO  : hal_boot2.c:  83] magicCode 0x54504642; version 0x0000; entryCnt 4; age 0; crc32 0x944BE888
    [14:05:14.689] - [         0][INFO  : hal_boot2.c:  89] idx  type device activeIndex     name   Address[0]  Address[1]  Length[0]   Length[1]   age
    [14:05:14.691] - [         0][INFO  : hal_boot2.c:  91] [00]  00     0         0            FW  0x00010000  0x00000000  0x000e7000  0x00000000  0
    [14:05:14.695] - [         0][INFO  : hal_boot2.c:  91] [01]  03     0         0         media  0x000f7000  0x00000000  0x00002000  0x00000000  0
    [14:05:14.697] - [         0][INFO  : hal_boot2.c:  91] [02]  04     0         0           PSM  0x000f9000  0x00000000  0x00002000  0x00000000  0
    [14:05:14.700] - [         0][INFO  : hal_boot2.c:  91] [03]  07     0         0       factory  0x000fb000  0x00000000  0x00004000  0x00000000  0
    [14:05:14.703] - [         0][INFO  : bl_flash.c:  96] ======= FlashCfg magiccode @0x42049c18, code 0x47464346 =======
    [14:05:14.704] - [         0][INFO  : bl_flash.c:  97] mid 		0xC2
    [14:05:14.707] - [         0][INFO  : bl_flash.c:  98] clkDelay 	0x1
    [14:05:14.708] - [         0][INFO  : bl_flash.c:  99] clkInvert 	0x1
    [14:05:14.709] - [         0][INFO  : bl_flash.c: 100] sector size	4KBytes
    [14:05:14.710] - [         0][INFO  : bl_flash.c: 101] page size	256Bytes
    [14:05:14.714] - [         0][INFO  : bl_flash.c: 102] ---------------------------------------------------------------
    [14:05:14.716] - [         0][INFO  : hal_board.c:1249] [MAIN] [BOARD] [FLASH] addr from partition is 000fb000, ret is 0
    [14:05:14.719] - [         0][INFO  : hal_board.c:1257] [MAIN] [BOARD] [XIP] addr from partition is 230ea000, ret is 0
    [14:05:14.721] - [         0][INFO  : hal_board.c: 208] MAC address mode length 3
    [14:05:14.722] - [         0][INFO  : hal_board.c: 212] MAC address mode is MBF
    [14:05:14.725] - [         0][INFO  : hal_board.c: 194] Set MAC addrress 7C:B9:4C:FC:BE:47
    [14:05:14.726] - [         0][INFO  : hal_board.c: 955] country_code : 86
    [14:05:14.727] - [         0][INFO  : hal_board.c: 342] xtal_mode is MF
    [14:05:14.730] - [         0][INFO  : hal_board.c: 363] get xtal from F ready 36 36 0 60 60
    [14:05:14.731] - [         0][INFO  : hal_board.c: 851] pwr_table_11b :20 20 20 18
    [14:05:14.733] - [         0][INFO  : hal_board.c: 869] pwr_table_11g :18 18 18 18 18 18 14 14
    [14:05:14.736] - [         0][INFO  : hal_board.c: 887] pwr_table_11n :18 18 18 18 18 16 14 14
    [14:05:14.738] - [         0][BUF: hal_board.c: 606]  10  10  10  10  10  10  10  10  10  10  10  10  10  10
    [14:05:14.741] - [         0][INFO  : hal_board.c: 902] set pwr_table_ble = 13 in dts
    [14:05:14.742] - [         0][INFO  : hal_board.c: 687] ap_ssid string[0] = bl_test_005, ap_ssid_len = 11
    [14:05:14.745] - [         0][INFO  : hal_board.c: 698] ap_psk string[0] = 12345678, ap_psk_len = 8
    [14:05:14.746] - [         0][INFO  : hal_board.c: 707] ap_channel = 11
    [14:05:14.748] - [         0][INFO  : hal_board.c: 635] [STA] ap_ssid string[0] = yourssid, ap_ssid_len = 8
    [14:05:14.751] - [         0][INFO  : hal_board.c: 646] [STA] ap_psk string[0] = yourapssword, ap_psk_len = 12
    [14:05:14.752] - [         0][INFO  : hal_board.c: 654] auto_connect_enable = 0
    [14:05:14.754] - [         0][INFO  : hal_board.c: 749] Troom_os = -1, lentmp = 4
    [14:05:14.757] - [         0][INFO  : hal_board.c: 758] linear_or_follow = 1, lentmp = 4
    [14:05:14.758] - [         0][INFO  : hal_board.c: 767] Tchannels:2412,2427,2442,2457,2472,
    [14:05:14.759] - [         0][INFO  : hal_board.c: 781] Tchannel_os:180,168,163,160,157,
    [14:05:14.762] - [         0][INFO  : hal_board.c: 795] Tchannel_os_low:199,186,170,165,160,
    [14:05:14.763] - [         0][INFO  : hal_board.c: 808] en_tcal = 0, lentmp = 4
    [14:05:14.764] - sizeof(StackType_t)=4
    [14:05:14.765] - [OS] Starting aos_loop_proc task...
    [14:05:14.766] - [OS] Starting TCP/IP Stack...
    [14:05:14.767] - -------------------->>>>>>>> LWIP tcp_port 53889
    [14:05:14.768] - [OS] Starting OS Scheduler...
    [14:05:14.768] - [BL] [SEC] TRNG Handler
    [14:05:14.769] - === 32 task inited
    [14:05:14.769] - ====== bloop dump ======
    [14:05:14.770] -   bitmap_evt 0
    [14:05:14.770] -   bitmap_msg 0
    [14:05:14.773] - --->>> timer list:
    [14:05:14.773] -   32 task:
    [14:05:14.774] -     task[31] : SYS [built-in]
    [14:05:14.777] -       evt handler 0x23063428, msg handler 0x230633f8, trigged cnt 0, bitmap async 0 sync 0, time consumed 0us acc 0ms, max 0us
    [14:05:14.777] -     task[30] : empty
    [14:05:14.778] -     task[29] : empty
    [14:05:14.778] -     task[28] : empty
    [14:05:14.779] -     task[27] : empty
    [14:05:14.780] -     task[26] : empty
    [14:05:14.781] -     task[25] : empty
    [14:05:14.781] -     task[24] : empty
    [14:05:14.782] -     task[23] : empty
    [14:05:14.782] -     task[22] : empty
    [14:05:14.784] -     task[21] : empty
    [14:05:14.784] -     task[20] : empty
    [14:05:14.785] -     task[19] : empty
    [14:05:14.785] -     task[18] : empty
    [14:05:14.786] -     task[17] : empty
    [14:05:14.787] -     task[16] : empty
    [14:05:14.788] -     task[15] : empty
    [14:05:14.789] -     task[14] : empty
    [14:05:14.789] -     task[13] : empty
    [14:05:14.790] -     task[12] : empty
    [14:05:14.791] -     task[11] : empty
    [14:05:14.792] -     task[10] : empty
    [14:05:14.792] -     task[09] : empty
    [14:05:14.793] -     task[08] : empty
    [14:05:14.793] -     task[07] : empty
    [14:05:14.796] -     task[06] : empty
    [14:05:14.796] -     task[05] : empty
    [14:05:14.797] -     task[04] : empty
    [14:05:14.797] -     task[03] : empty
    [14:05:14.798] -     task[02] : empty
    [14:05:14.799] -     task[01] : empty
    [14:05:14.799] -     task[00] : empty
    [14:05:14.800] - [MTD] >>>>>> Hanlde info Dump >>>>>>
    [14:05:14.801] -       name PSM
    [14:05:14.801] -       id 0
    [14:05:14.802] -       offset 0x000f9000(1019904)
    [14:05:14.802] -       size 0x00002000(8Kbytes)
    [14:05:14.803] -       xip_addr 0x230e8000
    [14:05:14.804] - [MTD] <<<<<< Hanlde info End <<<<<<
    [14:05:14.807] - [EF] Found Valid PSM partition, XIP Addr 230e8000, flash addr 000f9000
    [14:05:14.807] - *default_env_size = 0x00000001
    [14:05:14.809] - ENV start address is 0x00000000, size is 32768 bytes.
    [14:05:14.909] - Starting bl602 now....
    [14:05:14.911] - Booting BL602 Chip...
    [14:05:14.913] -
    

    And it flies in a loop like the matrix code
  • #8 20984307
    p.kaczmarek2
    Moderator Smart Home
    I'm looking into the makefile to see if it would be easy to change something:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/Makefile
    Code: Bash
    Log in, to see the code

    Makefile bl602:
    https://github.com/openshwprojects/OpenBL602/.../master/customer_app/bl602_sharedApp/Makefile
    I can't see at the moment where in this SDK it switches, but probably if you search longer you would find it.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 21014962
    gloorung
    Level 6  

    Hello,

    Earlier this month I received the same Tuya device (AIYATO-TH-V1). I managed to upload the firmware and have identified how the BL602L20 chip is connected to the sensor etc, but when enabling the CHT8305 and battery drivers, I get the message that these are not known in this build.

    Some more info that I've identified so far:
    - GPIO_0 = SCL
    - GPIO_1 = SDA
    - GPIO_3 = Wifi_led_n
    - GPIO_12 = Btn
    - GPIO_11 & GPIO_5 probably Bat_Relay & BAT_ADC, but to be confirmed
    - The temperature and humidity sensor is a CHT8315.

    Is this something that can easily be added/enabled in the build ?
  • #10 21105298
    divadiow
    Level 34  
    >>21014962 @gloorung the CHT8305/8310 driver is not enabled in the BL602 build currently afaik.

    also, CHT8315 is newish and the existing driver was not programmed with it in mind so won't work yet anyway. 8315 is also being discussed here most recently https://www.elektroda.com/rtvforum/topic3945688-270.html#21101835

    Added after 1 [hours] 48 [minutes]:

    p.kaczmarek2 wrote:
    You probably need to poke around. Colleague @divadiow in this thread had a similar problem and somehow solved it:



    @Mad_Maxs I'm sorry I totally missed this thread until today. I'm afraid I've never had a BL602L10 with 1mb flash. sounds a little tight for OBK. Did you get any further since February?
  • #11 21266607
    divadiow
    Level 34  
    divadiow wrote:
    I'm afraid I've never had a BL602L10 with 1mb flash


    Randomly I've just received a 1mb DT-BL02 BL602L10 module smart plug with BL0937. Will be interesting to see how OpenBL fits, if at all, when it comes to flashing it.

    DT-BL02 module with BL602L10 chip mounted on a circuit board.

    Added after 10 [minutes]:

    success/OTA capability looks to depend on which 1mb toml file you use in BLDC

    partition_cfg_1M.toml
    Code: Text
    Log in, to see the code


    partition_cfg_1M_ota.toml
    Code: Text
    Log in, to see the code


    latest BL602 firmware is:
    UART OpenBL602_1.17.176.bin 752,152 bytes
    OTA OpenBL602_1.17.176_OTA.bin.xz.ota 402,972 bytes

    so it seems you should be able to successfully convert to OBK using partition_cfg_1M.toml but will not have OTA capability on 1mb BL602s, though I note from previous posts that this has been tried.
  • #12 21342143
    zakdma
    Level 3  
    Hi!

    Does anyone make BL602L20 working?
    Close-up of a PCB with a BL602L20 chip and electronic components.
    I flashed it according to the instructions with the latest firmware OpenBL602_1.17.795.bin
    GPIO8 to 3.3V through 10k resistor
    RX and TX to the corresponding TX and RX of UART module.
    Power 3.3V from a reliable separate PSU.
    But it does not work. Looks like it does not boot at all after flashing. There is no noticeable current from PSU.
    Here are the logs of the programming
    Bouffalo Lab Dev Cube interface with completed programming process.

    [18:44:44.670] - ========= Interface is Uart =========
    [18:44:44.674] - eflash loader bin is eflash_loader_40m.bin
    [18:44:44.680] - Version: eflash_loader_v2.5.1
    [18:44:44.680] - Program Start
    [18:44:44.680] - ========= eflash loader cmd arguments =========
    [18:44:44.680] - Config file: C:\Users\user\Downloads\BouffaloLabDevCube-v1.9.0\chips\bl602\eflash_loader/eflash_loader_cfg.ini
    [18:44:44.680] - serial port is COM4
    [18:44:44.680] - cpu_reset=False
    [18:44:44.680] - chiptype: bl602
    [18:44:44.680] - ========= Interface is uart =========
    [18:44:44.680] - com speed: 115200
    [18:44:44.680] - Eflash load helper file: C:\Users\user\Downloads\BouffaloLabDevCube-v1.9.0\chips\bl602\eflash_loader/eflash_loader_40m.bin
    [18:44:44.680] - ========= load eflash_loader.bin =========
    [18:44:44.680] - Load eflash_loader.bin via uart
    [18:44:44.680] - ========= image load =========
    [18:44:44.930] - Not ack OK
    [18:44:44.930] - FL
    [18:44:44.930] - result: FL
    [18:44:45.219] - tx rx and power off, press the machine!
    [18:44:45.219] - cutoff time is 0.1
    [18:44:45.330] - power on tx and rx
    [18:44:46.159] - reset cnt: 0, reset hold: 0.005, shake hand delay: 0.1
    [18:44:46.159] - clean buf
    [18:44:46.166] - send sync
    [18:44:46.398] - ack is 4f4b
    [18:44:46.446] - shake hand success
    [18:44:46.462] - get_boot_info
    [18:44:46.462] - data read is b'0100000000000000030000009f328c29d8ac1900'
    [18:44:46.462] - ========= chipid: acd8298c329f =========
    [18:44:46.462] - last boot info: None
    [18:44:46.462] - sign is 0 encrypt is 0
    [18:44:46.466] - segcnt is 1
    [18:44:46.470] - segdata_len is 38592
    [18:44:46.560] - 4080/38592
    [18:44:46.641] - 8160/38592
    [18:44:46.730] - 12240/38592
    [18:44:46.814] - 16320/38592
    [18:44:46.900] - 20400/38592
    [18:44:46.980] - 24480/38592
    [18:44:47.070] - 28560/38592
    [18:44:47.150] - 32640/38592
    [18:44:47.235] - 36720/38592
    [18:44:47.276] - 38592/38592
    [18:44:47.280] - Run img
    [18:44:47.388] - Load helper bin time cost(ms): 2707.56005859375
    [18:44:47.499] - Flash load shake hand
    [18:44:47.511] - default set DTR high
    [18:44:47.627] - clean buf
    [18:44:47.630] - send sync
    [18:44:47.868] - ack is 4f4b
    [18:44:47.915] - Read mac addr
    [18:44:47.915] - macaddr: 9f328c29d8ac
    [18:44:47.915] - flash set para
    [18:44:47.915] - ========= flash read jedec ID =========
    [18:44:47.920] - Read flash jedec ID
    [18:44:47.920] - flash jedec id: ef401580
    [18:44:47.920] - Finished
    [18:44:47.920] - get flash size: 0x00200000
    [18:44:47.920] - Program operation
    [18:44:47.920] - Dealing Index 0
    [18:44:47.920] - ========= programming C:\Users\user\Downloads\BouffaloLabDevCube-v1.9.0\chips\bl602\img_create_iot\img_single.bin to 0x00000000
    [18:44:47.931] - ========= flash load =========
    [18:44:47.931] - ========= flash erase =========
    [18:44:47.931] - Erase flash from 0x0 to 0xc0d2b
    [18:44:47.941] - erase pending
    [18:44:48.153] - erase pending
    [18:44:48.360] - erase pending
    [18:44:48.560] - erase pending
    [18:44:48.757] - erase pending
    [18:44:48.960] - erase pending
    [18:44:49.172] - erase pending
    [18:44:49.378] - erase pending
    [18:44:49.590] - erase pending
    [18:44:49.800] - erase pending
    [18:44:50.016] - erase pending
    [18:44:50.241] - erase pending
    [18:44:50.471] - erase pending
    [18:44:50.526] - Erase time cost(ms): 2595.8935546875
    [18:44:50.530] - decompress write rx timeout: 24.576
    [18:44:50.799] - decompress flash load 423804
    [18:44:50.980] - Load 2048/423804 {"progress":0}
    [18:44:51.160] - Load 4096/423804 {"progress":0}
    [18:44:51.340] - Load 6144/423804 {"progress":1}
    [18:44:51.520] - Load 8192/423804 {"progress":1}
    [18:44:51.705] - Load 10240/423804 {"progress":2}
    [18:44:51.881] - Load 12288/423804 {"progress":2}
    [18:44:52.070] - Load 14336/423804 {"progress":3}
    [18:44:52.250] - Load 16384/423804 {"progress":3}
    [18:44:52.430] - Load 18432/423804 {"progress":4}
    [18:44:52.614] - Load 20480/423804 {"progress":4}
    [18:44:52.790] - Load 22528/423804 {"progress":5}
    [18:44:52.970] - Load 24576/423804 {"progress":5}
    [18:44:53.156] - Load 26624/423804 {"progress":6}
    [18:44:53.340] - Load 28672/423804 {"progress":6}
    [18:44:53.520] - Load 30720/423804 {"progress":7}
    [18:44:53.700] - Load 32768/423804 {"progress":7}
    [18:44:53.880] - Load 34816/423804 {"progress":8}
    [18:44:54.064] - Load 36864/423804 {"progress":8}
    [18:44:54.250] - Load 38912/423804 {"progress":9}
    [18:44:54.431] - Load 40960/423804 {"progress":9}
    [18:44:54.610] - Load 43008/423804 {"progress":10}
    [18:44:54.790] - Load 45056/423804 {"progress":10}
    [18:44:54.974] - Load 47104/423804 {"progress":11}
    [18:44:55.150] - Load 49152/423804 {"progress":11}
    [18:44:55.339] - Load 51200/423804 {"progress":12}
    [18:44:55.520] - Load 53248/423804 {"progress":12}
    [18:44:55.700] - Load 55296/423804 {"progress":13}
    [18:44:55.880] - Load 57344/423804 {"progress":13}
    [18:44:56.065] - Load 59392/423804 {"progress":14}
    [18:44:56.248] - Load 61440/423804 {"progress":14}
    [18:44:56.421] - Load 63488/423804 {"progress":14}
    [18:44:56.610] - Load 65536/423804 {"progress":15}
    [18:44:56.790] - Load 67584/423804 {"progress":15}
    [18:44:56.971] - Load 69632/423804 {"progress":16}
    [18:44:57.155] - Load 71680/423804 {"progress":16}
    [18:44:57.330] - Load 73728/423804 {"progress":17}
    [18:44:57.512] - Load 75776/423804 {"progress":17}
    [18:44:57.696] - Load 77824/423804 {"progress":18}
    [18:44:57.880] - Load 79872/423804 {"progress":18}
    [18:44:58.061] - Load 81920/423804 {"progress":19}
    [18:44:58.240] - Load 83968/423804 {"progress":19}
    [18:44:58.420] - Load 86016/423804 {"progress":20}
    [18:44:58.606] - Load 88064/423804 {"progress":20}
    [18:44:58.783] - Load 90112/423804 {"progress":21}
    [18:44:58.960] - Load 92160/423804 {"progress":21}
    [18:44:59.150] - Load 94208/423804 {"progress":22}
    [18:44:59.330] - Load 96256/423804 {"progress":22}
    [18:44:59.510] - Load 98304/423804 {"progress":23}
    [18:44:59.694] - Load 100352/423804 {"progress":23}
    [18:44:59.870] - Load 102400/423804 {"progress":24}
    [18:45:00.051] - Load 104448/423804 {"progress":24}
    [18:45:00.240] - Load 106496/423804 {"progress":25}
    [18:45:00.420] - Load 108544/423804 {"progress":25}
    [18:45:00.602] - Load 110592/423804 {"progress":26}
    [18:45:00.780] - Load 112640/423804 {"progress":26}
    [18:45:00.962] - Load 114688/423804 {"progress":27}
    [18:45:01.140] - Load 116736/423804 {"progress":27}
    [18:45:01.330] - Load 118784/423804 {"progress":28}
    [18:45:01.510] - Load 120832/423804 {"progress":28}
    [18:45:01.690] - Load 122880/423804 {"progress":28}
    [18:45:01.873] - Load 124928/423804 {"progress":29}
    [18:45:02.050] - Load 126976/423804 {"progress":29}
    [18:45:02.235] - Load 129024/423804 {"progress":30}
    [18:45:02.414] - Load 131072/423804 {"progress":30}
    [18:45:02.600] - Load 133120/423804 {"progress":31}
    [18:45:02.780] - Load 135168/423804 {"progress":31}
    [18:45:02.961] - Load 137216/423804 {"progress":32}
    [18:45:03.140] - Load 139264/423804 {"progress":32}
    [18:45:03.323] - Load 141312/423804 {"progress":33}
    [18:45:03.500] - Load 143360/423804 {"progress":33}
    [18:45:03.690] - Load 145408/423804 {"progress":34}
    [18:45:03.872] - Load 147456/423804 {"progress":34}
    [18:45:04.054] - Load 149504/423804 {"progress":35}
    [18:45:04.230] - Load 151552/423804 {"progress":35}
    [18:45:04.414] - Load 153600/423804 {"progress":36}
    [18:45:04.597] - Load 155648/423804 {"progress":36}
    [18:45:04.772] - Load 157696/423804 {"progress":37}
    [18:45:04.961] - Load 159744/423804 {"progress":37}
    [18:45:05.140] - Load 161792/423804 {"progress":38}
    [18:45:05.321] - Load 163840/423804 {"progress":38}
    [18:45:05.505] - Load 165888/423804 {"progress":39}
    [18:45:05.682] - Load 167936/423804 {"progress":39}
    [18:45:05.861] - Load 169984/423804 {"progress":40}
    [18:45:06.050] - Load 172032/423804 {"progress":40}
    [18:45:06.230] - Load 174080/423804 {"progress":41}
    [18:45:06.411] - Load 176128/423804 {"progress":41}
    [18:45:06.592] - Load 178176/423804 {"progress":42}
    [18:45:06.772] - Load 180224/423804 {"progress":42}
    [18:45:06.955] - Load 182272/423804 {"progress":43}
    [18:45:07.134] - Load 184320/423804 {"progress":43}
    [18:45:07.320] - Load 186368/423804 {"progress":43}
    [18:45:07.501] - Load 188416/423804 {"progress":44}
    [18:45:07.681] - Load 190464/423804 {"progress":44}
    [18:45:07.861] - Load 192512/423804 {"progress":45}
    [18:45:08.044] - Load 194560/423804 {"progress":45}
    [18:45:08.221] - Load 196608/423804 {"progress":46}
    [18:45:08.410] - Load 198656/423804 {"progress":46}
    [18:45:08.591] - Load 200704/423804 {"progress":47}
    [18:45:08.773] - Load 202752/423804 {"progress":47}
    [18:45:08.953] - Load 204800/423804 {"progress":48}
    [18:45:09.130] - Load 206848/423804 {"progress":48}
    [18:45:09.311] - Load 208896/423804 {"progress":49}
    [18:45:09.500] - Load 210944/423804 {"progress":49}
    [18:45:09.680] - Load 212992/423804 {"progress":50}
    [18:45:09.864] - Load 215040/423804 {"progress":50}
    [18:45:10.040] - Load 217088/423804 {"progress":51}
    [18:45:10.226] - Load 219136/423804 {"progress":51}
    [18:45:10.407] - Load 221184/423804 {"progress":52}
    [18:45:10.582] - Load 223232/423804 {"progress":52}
    [18:45:10.770] - Load 225280/423804 {"progress":53}
    [18:45:10.951] - Load 227328/423804 {"progress":53}
    [18:45:11.130] - Load 229376/423804 {"progress":54}
    [18:45:11.313] - Load 231424/423804 {"progress":54}
    [18:45:11.490] - Load 233472/423804 {"progress":55}
    [18:45:11.674] - Load 235520/423804 {"progress":55}
    [18:45:11.855] - Load 237568/423804 {"progress":56}
    [18:45:12.040] - Load 239616/423804 {"progress":56}
    [18:45:12.222] - Load 241664/423804 {"progress":57}
    [18:45:12.400] - Load 243712/423804 {"progress":57}
    [18:45:12.585] - Load 245760/423804 {"progress":57}
    [18:45:12.764] - Load 247808/423804 {"progress":58}
    [18:45:12.940] - Load 249856/423804 {"progress":58}
    [18:45:13.131] - Load 251904/423804 {"progress":59}
    [18:45:13.310] - Load 253952/423804 {"progress":59}
    [18:45:13.490] - Load 256000/423804 {"progress":60}
    [18:45:13.675] - Load 258048/423804 {"progress":60}
    [18:45:13.850] - Load 260096/423804 {"progress":61}
    [18:45:14.030] - Load 262144/423804 {"progress":61}
    [18:45:14.221] - Load 264192/423804 {"progress":62}
    [18:45:14.400] - Load 266240/423804 {"progress":62}
    [18:45:14.581] - Load 268288/423804 {"progress":63}
    [18:45:14.762] - Load 270336/423804 {"progress":63}
    [18:45:14.941] - Load 272384/423804 {"progress":64}
    [18:45:15.120] - Load 274432/423804 {"progress":64}
    [18:45:15.311] - Load 276480/423804 {"progress":65}
    [18:45:15.491] - Load 278528/423804 {"progress":65}
    [18:45:15.672] - Load 280576/423804 {"progress":66}
    [18:45:15.855] - Load 282624/423804 {"progress":66}
    [18:45:16.030] - Load 284672/423804 {"progress":67}
    [18:45:16.214] - Load 286720/423804 {"progress":67}
    [18:45:16.390] - Load 288768/423804 {"progress":68}
    [18:45:16.581] - Load 290816/423804 {"progress":68}
    [18:45:16.761] - Load 292864/423804 {"progress":69}
    [18:45:16.940] - Load 294912/423804 {"progress":69}
    [18:45:17.122] - Load 296960/423804 {"progress":70}
    [18:45:17.300] - Load 299008/423804 {"progress":70}
    [18:45:17.481] - Load 301056/423804 {"progress":71}
    [18:45:17.670] - Load 303104/423804 {"progress":71}
    [18:45:17.851] - Load 305152/423804 {"progress":72}
    [18:45:18.032] - Load 307200/423804 {"progress":72}
    [18:45:18.215] - Load 309248/423804 {"progress":72}
    [18:45:18.391] - Load 311296/423804 {"progress":73}
    [18:45:18.575] - Load 313344/423804 {"progress":73}
    [18:45:18.750] - Load 315392/423804 {"progress":74}
    [18:45:18.941] - Load 317440/423804 {"progress":74}
    [18:45:19.120] - Load 319488/423804 {"progress":75}
    [18:45:19.300] - Load 321536/423804 {"progress":75}
    [18:45:19.482] - Load 323584/423804 {"progress":76}
    [18:45:19.661] - Load 325632/423804 {"progress":76}
    [18:45:19.841] - Load 327680/423804 {"progress":77}
    [18:45:20.030] - Load 329728/423804 {"progress":77}
    [18:45:20.211] - Load 331776/423804 {"progress":78}
    [18:45:20.392] - Load 333824/423804 {"progress":78}
    [18:45:20.576] - Load 335872/423804 {"progress":79}
    [18:45:20.751] - Load 337920/423804 {"progress":79}
    [18:45:20.934] - Load 339968/423804 {"progress":80}
    [18:45:21.110] - Load 342016/423804 {"progress":80}
    [18:45:21.300] - Load 344064/423804 {"progress":81}
    [18:45:21.481] - Load 346112/423804 {"progress":81}
    [18:45:21.660] - Load 348160/423804 {"progress":82}
    [18:45:21.845] - Load 350208/423804 {"progress":82}
    [18:45:22.021] - Load 352256/423804 {"progress":83}
    [18:45:22.206] - Load 354304/423804 {"progress":83}
    [18:45:22.391] - Load 356352/423804 {"progress":84}
    [18:45:22.571] - Load 358400/423804 {"progress":84}
    [18:45:22.752] - Load 360448/423804 {"progress":85}
    [18:45:22.935] - Load 362496/423804 {"progress":85}
    [18:45:23.116] - Load 364544/423804 {"progress":86}
    [18:45:23.291] - Load 366592/423804 {"progress":86}
    [18:45:23.480] - Load 368640/423804 {"progress":86}
    [18:45:23.660] - Load 370688/423804 {"progress":87}
    [18:45:23.840] - Load 372736/423804 {"progress":87}
    [18:45:24.023] - Load 374784/423804 {"progress":88}
    [18:45:24.200] - Load 376832/423804 {"progress":88}
    [18:45:24.381] - Load 378880/423804 {"progress":89}
    [18:45:24.566] - Load 380928/423804 {"progress":89}
    [18:45:24.750] - Load 382976/423804 {"progress":90}
    [18:45:24.933] - Load 385024/423804 {"progress":90}
    [18:45:25.110] - Load 387072/423804 {"progress":91}
    [18:45:25.296] - Load 389120/423804 {"progress":91}
    [18:45:25.477] - Load 391168/423804 {"progress":92}
    [18:45:25.650] - Load 393216/423804 {"progress":92}
    [18:45:25.830] - Load 395264/423804 {"progress":93}
    [18:45:26.020] - Load 397312/423804 {"progress":93}
    [18:45:26.201] - Load 399360/423804 {"progress":94}
    [18:45:26.384] - Load 401408/423804 {"progress":94}
    [18:45:26.560] - Load 403456/423804 {"progress":95}
    [18:45:26.740] - Load 405504/423804 {"progress":95}
    [18:45:26.925] - Load 407552/423804 {"progress":96}
    [18:45:27.111] - Load 409600/423804 {"progress":96}
    [18:45:27.290] - Load 411648/423804 {"progress":97}
    [18:45:27.470] - Load 413696/423804 {"progress":97}
    [18:45:27.650] - Load 415744/423804 {"progress":98}
    [18:45:27.831] - Load 417792/423804 {"progress":98}
    [18:45:28.010] - Load 419840/423804 {"progress":99}
    [18:45:28.200] - Load 421888/423804 {"progress":99}
    [18:45:28.370] - Load 423804/423804 {"progress":100}
    [18:45:28.370] - Load 423804/423804 {"progress":100}
    [18:45:28.370] - Write check
    [18:45:28.405] - Flash load time cost(ms): 37874.493896484375
    [18:45:28.405] - Finished
    [18:45:28.405] - Sha caled by host: ce4b880338eec77c015607d289033dc81fcde2299007cb33edda2166829eae3a
    [18:45:28.405] - xip mode Verify
    [18:45:28.630] - Read Sha256/789804
    [18:45:28.630] - Flash xip readsha time cost(ms): 219.994873046875
    [18:45:28.630] - Finished
    [18:45:28.630] - Sha caled by dev: ce4b880338eec77c015607d289033dc81fcde2299007cb33edda2166829eae3a
    [18:45:28.630] - Verify success
    [18:45:28.640] - Program Finished
    [18:45:28.640] - All time cost(ms): 43960.0849609375
    [18:45:28.760] - close interface
    [18:45:28.760] - [All Success]
  • ADVERTISEMENT
  • #13 21342148
    p.kaczmarek2
    Moderator Smart Home
    It's been some time, but don't you need to disconnect BOOT pin first and then do power off and on?
    Helpful post? Buy me a coffee.
  • #14 21342240
    zakdma
    Level 3  
    >>21342148
    Yes, I did it of course.
    I even desoldered the CPU module from the main PCB, and soldered programming pins directly to pads on the back. Without any different results. Module keeps silence and there is no even a letter in the UART.
  • Helpful post
    #15 21342276
    divadiow
    Level 34  
    you don't use the single download method to initially flash OBK. This is for restoring whole flash backups

    Screenshot of a download tool with the Single Download Options checkbox marked, crossed out in red.

    Your BLDC should look like this with firmware, dts, boot2 and partition table set
    Firmware settings interface for OpenBL602 with highlighted fields for partition table, firmware, dts, and boot2.
  • #16 21342430
    zakdma
    Level 3  
    >>21342276
    There are no such fields in the form on the IOT tab.
    There is a screenshot
    Screenshot of Bouffalo Lab Dev Cube 1.9.0 application with tabs and configuration options.

    There is only the field Partition Table and dts and boo2 fields missing.
    I'm using the latest version of BLDC 1.9.0
  • #17 21342439
    divadiow
    Level 34  
    Click view and check show advanced page
  • #18 21342440
    zakdma
    Level 3  
    Ah, I found it. Just need to select the partition table and these fields appeared.

    Added after 1 [hours] 6 [minutes]:

    >>21342276
    Unfortunately it doesn't work either.

    I tried these two files
    - https://github.com/openshwprojects/OpenBL602/...device_tree/bl_factory_params_IoTKitA_40M.dts
    - https://github.com/openshwprojects/OpenBL602/.../flash_tool/bl602/builtin_imgs/blsp_boot2.bin

    And also I tried files from BLDC distributive

    - C:\Users\user\Downloads\BouffaloLabDevCube-v1.9.0\chips\bl602\device_tree\bl_factory_params_IoTKitA_40M.dts
    - C:\Users\user\Downloads\BouffaloLabDevCube-v1.9.0\chips\bl602\builtin_imgs\boot2_isp_bl602_v6.6.2\boot2_isp_release.bin

    The same result. Programming finished but module keep silence.
  • #19 21342619
    divadiow
    Level 34  
    probably the single download at the beginning overwrote the bootloader.

    restore your factory backup using single download mode then do OBK again using the other method.
  • #20 21344168
    zakdma
    Level 3  
    >>21342619

    Thank you for the answer. But I have no factory firmware anymore.
    When I first tried to flash your firmware I tried to read factory firmware first but it failed to read. I tried many times with no luck.
    So I decided to flash it anyway with your firmware using single download mode, and obviously, I totally lost the factory firmware.
    Is there any workaround for this?
  • #22 21498850
    maxim2002
    Level 13  
    Managed to get this device working on @miegapele PR with CHT83XX driver enabled.
    Config is as follows:

    {
      "vendor": "Aiyato",
      "bDetailed": "0",
      "name": "Cozylife Hygrometer White (Temperature Humidity)",
      "model": "BC148-WT",
      "chip": "BL602",
      "board": "Aiyato-TH-V1",
      "flags": "1024",
      "keywords": [
        "temperature",
        "humidity",
        "BL602"
      ],
      "pins": {
        "0": "CHT83XX_SCK;1",
        "1": "CHT83XX_SDA;2",
        "3": "WifiLED;0",
        "12": "Btn;0"
      },
      "command": "CHT_Calibrate -6.4 10",
      "image": "https://obrazki.elektroda.pl/2421821500_1709057362_thumb.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic4039068.html"
    }


    User interface displaying temperature and humidity information with configuration options for the CHT8315 device.

    Device seems stable so far, except that GPIO finder kills web server.
    Attached binary and partition table.
  • #23 21499561
    insmod
    Level 24  
    But what would be the purpose for using it?
    There is no deep sleep implemented for BL602.
    There is no PinDeepSleep for BL602, which is what should be used when sensor is 8310/8315.
    Without those, batteries will be drained very quickly.
  • #24 21499624
    maxim2002
    Level 13  
    Got 3V3 lines across the whole home. Not really bothered about batteries.

Topic summary

The discussion revolves around the BL602L20 chip from a temperature sensor received from Aliexpress, focusing on the absence of a BOOT pad for flashing. Users clarify that "DL" likely refers to "Download," serving the same function as BOOT. The conversation includes troubleshooting steps for flashing the chip, including adjusting partition sizes and examining UART logs. Users share experiences with different firmware configurations and the challenges of enabling drivers for specific sensors like the CHT8305 and CHT8315. The need for a tailored firmware version for 1MB flash devices is highlighted, as well as the limitations of existing drivers for newer components.
Summary generated by the language model.
ADVERTISEMENT