logo elektroda
logo elektroda
X
logo elektroda

NiceMCU XH-WB3S BK7238 Flashing, Testing, Pinout, Development, Porting

divadiow 8292 237
ADVERTISEMENT
  • #211 21550671
    divadiow
    Level 35  
    try revealing advanced options and choosing to overwrite bootloader. I have just done this on mine and it boots into OpenBeken and broadcasts AP

    Screenshot of the BK7231 Easy UART Flasher program with a Write success! message indicating successful firmware writing.
  • ADVERTISEMENT
  • #212 21550703
    Ogurezzz
    Level 5  
    >>21550671
    So... AP still doesn't appear:
    BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x444892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x093894FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m


    Flasher output: https://pastebin.com/bV7N0Ydd
  • #213 21550706
    divadiow
    Level 35  
    actually. oddly mine wasn't going straight into AP mode after initial burn, even though I made a point of erasing entire flash first in BKFIL. Do 5x resets to get into safe mode - does it broadcast then?

    Added after 7 [minutes]:

    erased and reflashed again. AP mode straight away now for me.
  • #214 21550788
    Ogurezzz
    Level 5  
    Made "Erase all'
    Then Do firmware write with overwrite bootloade
    No AP (even after 5 time power toggle)
    Did Firmware write again.
    Still no AP.
    :(

    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x04089AC4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x083996BE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
  • #215 21553944
    divadiow
    Level 35  
    please post your full boot log
  • #216 21562738
    Ogurezzz
    Level 5  
    >>21553944
    That's all.
    It continuously repeat one message.
    
    BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044812C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x893996FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeaBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044812C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938947E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040812C0  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x0938967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x093994FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x65F99FFF  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044893C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939B67E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C0  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939947E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044893C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938A67E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeaBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8839967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8839B6FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeaBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044812C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x0839B6FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x65F99FFE  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x893984FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8839B67E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x000892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x0938B4FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938B6FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040812C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x813994FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8039B47E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8139947E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C0  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8838967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x04489AC4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x893996FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939B47E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x89B996FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8838B67E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938B6FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x44489AC4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x083994FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x444892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938947E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8139B47E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHea0BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939967E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
  • #217 21562748
    insmod
    Level 26  
    This looks like there is not enough power.
    I see that the system begins initialization, but reboot soon happens (probably when wifi peripheral powers on).
    You would need a stronger power supply and/or a capacitor, or to solder it to some board (any ESP-12 compatible).
  • ADVERTISEMENT
  • #218 21563510
    Ogurezzz
    Level 5  
    >>21562748

    Looks like you right. Connected 3.5V external power source.
    Initialization goes further, but stioll reboots.
    
    BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x044892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939B67E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x4150c8, size:175928
    [Flash]id:0x852015
    [Flash]init over
    sctrl_sta_ps_init
    SDK Rev: 3.0.70 d3930af
    OSK Rev: F-3.0.44 d3930af
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    No TLV header found in flash
    [FUNC]rwnxl_init
    c(BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x444892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8938B6FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x4150c8, size:175928
    [Flash]id:0x852015
    [Flash]init over
    sctrl_sta_ps_init
    SDK Rev: 3.0.70 d3930af
    OSK Rev: F-3.0.44 d3930af
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    No TLV header found in flash
    [FUNC]rwnxl_init
    c(BK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x040892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x89B9947E  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
    
    
    go os_addr(0x10000)..........
    bk_misc_init_start_type 0 0
    prvHeapInit-start addr:0x4150c8, size:175928
    [Flash]id:0x852015
    [Flash]init over
    sctrl_sta_ps_init
    SDK Rev: 3.0.70 d3930af
    OSK Rev: F-3.0.44 d3930af
    cset:0 0 0 0
    Entering initLog()...
    Commands registered!
    initLog() done!
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    --write status reg:0,2--
    --write status reg:7c,2--
    
    Main_Init_Before_Delay done
    
    Main_Init_Delay
    No TLV header found in flash
    [FUNC]rwnxl_init
    chBK7238_1.0.14
    REG:cpsr        spsr        r13         r14
    SVC:0x000000D3              0x00401C1C  0x000033A0
    IRQ:0x000000D2  0x00000010  0x00401E0C  0x444892C4  
    FIR:0x000000D1  0x00000010  0x00401FFC  0x8939B6FE  
    SYS:0x000000DF              0x0040192C  0x00000158  
    ST:0x00000000
    [32;22m[I/FAL] Fal(V0.4.0)success[0m
    [36;22m[I/OTA] RT-Thread OTA package(V0.2.8-beken-1133282d-20220604) initialize success.[0m
  • ADVERTISEMENT
  • #219 21563614
    p.kaczmarek2
    Moderator Smart Home
    I wonder where No TLV header found in flash comes from? BK SDK? The MAC address storage?
    Helpful post? Buy me a coffee.
  • #220 21564274
    divadiow
    Level 35  
    this may not answer your question, but initial run after erase/qio flash gives me the same

    Code: Text
    Log in, to see the code


    joining test AP writes config to 1E1000
    A file fragment displayed in a hex editor, showing data in hexadecimal and ASCII format.
    and custom mac set works for initial reconnect after mac change (it does not reboot) but then reverts to previous mac on subsequent boots.
    A section of a connected devices list showing device names, IP addresses, and MAC addresses; one MAC address segment is highlighted.
    (on another note, that wlan0 name is a BK7231T running _7231u_t_c1b0ac146bf0)

    a dump while in this custom-mac mode shows new mac has not been written anywhere

    Screenshot of a hex editor and a pop-up message stating Can't find 'c8478c426'.

    maybe custom mac was not done for BK7238?
  • ADVERTISEMENT
  • #221 21564299
    p.kaczmarek2
    Moderator Smart Home
    Do you search for MAC as ASCII string or as hex bytes?
    Helpful post? Buy me a coffee.
  • #222 21564301
    divadiow
    Level 35  
    both. with and without spaces. only hex shows any result and original mac
    Screenshot of a hex editor searching for the byte sequence c8 47 8c.
  • #223 21564311
    p.kaczmarek2
    Moderator Smart Home
    There are multiple ways to save MAC:
    Code: C / C++
    Log in, to see the code

    This is BK7231T SDK, not BK7238, but similar.
    https://github.com/openshwprojects/OpenBK7231...1t_os/beken378/app/config/param_config.c#L109
    Interestingly enough, I can't find there "no TLV header" warning?

    No, this is here:
    https://github.com/openshwprojects/OpenBK7231...78/func/bk7011_cal/manual_cal_bk7231U.c#L2002

    Screenshot of C source code from the OpenBK7231T project on GitHub.
    In:
    Code: C / C++
    Log in, to see the code

    It seems that on BK7238, it goes into manual_cal_write_macaddr_to_flash option:
    Code: C / C++
    Log in, to see the code

    Well even on BK7231 it is set to:
    Code: C / C++
    Log in, to see the code
    Helpful post? Buy me a coffee.
  • #224 21564334
    divadiow
    Level 35  
    what does this mean for a way forward for sorting custom mac on BK7238?
    Not that this relates to Ogurezzz's issue, but still..
  • #225 21640198
    p.kaczmarek2
    Moderator Smart Home
    Unrelated question - was RF button of this board discussed anywhere? It seems to connect ground to the topmost right pin of NiceMCU via a resistor.
    Helpful post? Buy me a coffee.
  • #226 21640310
    divadiow
    Level 35  
    insmod wrote:
    Look what i've found: https://github.com/YanMinge/beken_freertos_sdk_release
    A newer sdk, our is 3.0.70.1, this one is 3.0.76


    https://github.com/Sparkleiot/7238SDK/releases

    Code: Text
    Log in, to see the code


    Added after 54 [seconds]:

    p.kaczmarek2 wrote:
    was RF button of this board discussed anywhere?


    doesn't ring any bells. don't think I noticed it was labelled "RF"!

    Added after 5 [minutes]:

    divadiow wrote:
    https://github.com/Sparkleiot/7238SDK/releases


    Arduino bits and RF button mention
    https://github.com/Sparkleiot/Sparkleiot_BK7238/releases/

    Code: Text
    Log in, to see the code
  • #227 21640339
    p.kaczmarek2
    Moderator Smart Home
    ATE as in Automatic test equipment?

    I kinda remember that once upon a time, in Beken SDK used by OBK, we had some kind of check for one of GPIOs to see if it's low at boot, and then some kind of mode was enabled... or maybe confuse something.

    So it can be used as a general purpose button, I guess.
    Helpful post? Buy me a coffee.
  • #228 21640377
    divadiow
    Level 35  
    p.kaczmarek2 wrote:
    So it can be used as a general purpose button, I guess.

    Code: Text
    Log in, to see the code
  • #229 21640396
    p.kaczmarek2
    Moderator Smart Home
    I see. I am finishing TCA9554 for ESP32-S3-ETH-8DI-8RO support right now, but you probably try HAL PR on NiceMCU, set P11 role to Counter_f , set channel 0 or something, and press it and see if it works, crashes, increments the channel, or not ,etc
    Helpful post? Buy me a coffee.
  • #233 21640431
    p.kaczmarek2
    Moderator Smart Home
    Nice, so new on-change interrupts are working on BK7238. They are the same HAL that we are using for BL0937, so, more or less, you can test this feature now in both ways - either with BL0937 (or faking pulses for BL0937 driver), or via Counter pin.

    I need now to introduce 3 kinds of interrupts:
    - on falling edge (3.3V goes to 0V)
    - on rising edge (0V goes to 3.3V)
    - on change (both edges)
    On change interrupts are not present in beken by default but maybe we can emulate them by changing interrupts in ISR itself...
    Helpful post? Buy me a coffee.
  • #234 21640434
    divadiow
    Level 35  
    p.kaczmarek2 wrote:
    Nice, so new on-change interrupts are working on BK7238. They are the same HAL that we are using for BL0937, so, more or less, you can test this feature now in both ways - either with BL0937 (or faking pulses for BL0937 driver), or via Counter pin.


    cool

    I did think surely there's a better way of testing than using actual BL0937. Also wondered if BL0937 Arduino emulation thing (however inaccurate it may be) is still a reasonable test if it shows some kind of reading (?).

    Counter_f available for all platforms I guess? https://github.com/openshwprojects/OpenBK7231...mmit/f99158f21f5ae95c2155209256e92ed3674d414d

    Added after 2 [minutes]:

    where is interrupt HAL testing to be discussed mainly? It's highjacked @max4elektroda 's thread..
  • #235 21640443
    p.kaczmarek2
    Moderator Smart Home
    Emulating BL0937 with Arduino is a good idea, it tells us whether on change interrupts are firing, but that's not needed now, since Counter roles are introduced.

    The pin change interrupt HAL under the hood is the same for BL0937 and for Counter, so either both will work or both won't.

    Well, maybe with the exception of the BL0937-specific code, but that should be already working for years. And with the exception of calling Channel_Add in HAL interrupt handler for Counter role - i am still not sure about it.
    Helpful post? Buy me a coffee.
  • #236 21640489
    max4elektroda
    Level 20  
    p.kaczmarek2 wrote:
    And with the exception of calling Channel_Add in HAL interrupt handler for Counter role - i am still not sure about it.

    As long as we'll not use "special channels", maybe introduce something like "Channel_Add_simple" to
    directly set value
    don't log info

    Then it should be quick enough. Or really only count and process in quickticks.

    Added after 3 [minutes]:

    divadiow wrote:
    It's highjacked @max4elektroda 's thread..

    My fault, I mentioned interrupts for a clock related DCF77 driver and asked about ...

    Added after 57 [seconds]:

    But maybe an own thread would be clearer
  • #237 21640498
    p.kaczmarek2
    Moderator Smart Home
    Ok @divadiow create a thread and start testing, I will join when I can. You know the procedure - just a button on GPIO and coutner role.
    Helpful post? Buy me a coffee.

Topic summary

The discussion centers on the NiceMCU XH-WB3S development board featuring the BK7238 SoC, initially suspected to be BK7231T but confirmed as BK7238. Users share experiences with flashing, testing, and porting firmware, including challenges with encryption keys, flash IDs, and bootloader compatibility. The BK7238 uses 2MB flash with varying encryption keys per chip, complicating universal firmware flashing. Tools like BKFIL and Easy Flasher (EF) are used for backup and restore, with EF supporting full flash erase and restore including bootloader. Flash ID support was extended to include missing flash chips to avoid CRC errors. Arduino SDK and Beken FreeRTOS SDK (version 3.0.70.1 and newer 3.0.76) are referenced for development, with partial support for BK7238 and related chips (BK7231N, BK7231U, BK7252). Porting efforts include adapting delay functions for 160MHz BK7238, resolving flashvars alignment issues due to 64-bit time_t, and addressing HTTP server and TCP socket stability problems in LWIP. OTA updates are functional but require correct image types and bootloader versions. Power save modes and their impact on peripherals like BL0937 energy meter and DS18B20 sensors are discussed, with some instability noted under power save. SPI flashing and UART flashing methods are compared, with SPI preferred for some devices. BK7231U (CC8000 chip) support is emerging, with builds available but some undefined references and boot issues. BK7252 camera module support is experimental, with encrypted flash complicating firmware use. Users report issues with DS18B20 sensor timing on BK7238 due to delay_us inaccuracies, partially fixed by new SDK delay implementations. Logging and MQTT load affect system stability and sensor reading consistency. The community shares flash dumps, toolchain links, and SDK forks to aid development and testing. Overall, the thread provides detailed technical insights into BK7238-based NiceMCU boards' flashing, SDK porting, peripheral support, and firmware development challenges and progress.
Summary generated by the language model.
ADVERTISEMENT