ltchiptool icon indicating copy to clipboard operation
ltchiptool copied to clipboard

Unknown Bootloader BK7231N / CB3S

Open Wolly300 opened this issue 8 months ago • 1 comments

Hello together,

I tried to flash my CB3S chip from a Tuya device, but unfortunately it's failing

I: Found new device: COM3 - Silicon Labs CP210x USB to UART Bridge - Silicon Labs (10C4/EA60)
I: Connect UART1 of the BK7231 to the USB-TTL adapter:
I: 
I:     --------+        +--------------------
I:          PC |        | BK7231             
I:     --------+        +--------------------
I:          RX | ------ | TX1 (GPIO11 / P11) 
I:          TX | ------ | RX1 (GPIO10 / P10) 
I:             |        |                    
I:         GND | ------ | GND                
I:     --------+        +--------------------
I:  
I: Using a good, stable 3.3V power supply is crucial. Most flashing issues
I: are caused by either voltage drops during intensive flash operations,
I: or bad/loose wires.
I:  
I: The UART adapter's 3.3V power regulator is usually not enough. Instead,
I: a regulated bench power supply, or a linear 1117-type regulator is recommended.
I:  
I: To enter download mode, the chip has to be rebooted while the flashing program
I: is trying to establish communication.
I: In order to do that, you need to bridge CEN pin to GND with a wire.
W: Unknown bootloader CRC - 0xDA3A34FA - please report this on GitHub issues!
E: An error has occurred
E: SerialTimeoutException: Write timeout
E: |-- File "ltchiptool\gui\work\base.py", line 24, in run
E: |-- File "ltchiptool\gui\work\flash.py", line 73, in run_impl
E: |-- File "ltchiptool\gui\work\flash.py", line 161, in _do_write
E: |-- File "ltchiptool\soc\bk72xx\flash.py", line 286, in flash_write_raw
E: |-- File "ltchiptool\util\streams.py", line 177, in update_from
E: |-- File "bk7231tools\serial\cmd_hl_flash.py", line 182, in program_flash
E: |-- File "bk7231tools\serial\cmd_ll_flash.py", line 173, in flash_write_4k
E: |-- File "bk7231tools\serial\protocol.py", line 128, in command
E: |-- File "bk7231tools\serial\protocol.py", line 87, in write
E: |-- File "serial\serialwin32.py", line 325, in write

I tried it with the compiled software from ESPHome and the BIN from here https://github.com/openshwprojects/OpenBK7231T_App/releases/tag/1.18.57

Image

Always the same result.

Wolly300 avatar Mar 10 '25 10:03 Wolly300

Also got an Unknown bootloader CRC - 0x57723426 issue as well with the exact same chip info as above encryption key and all. Followed the instructions here for the exact same device mentioned https://devices.esphome.io/devices/Feit-DIMSMART-3-CAN

mattfluder avatar Mar 18 '25 03:03 mattfluder