BK7231GUIFlashTool icon indicating copy to clipboard operation
BK7231GUIFlashTool copied to clipboard

Writing sector failed

Open Tony2k opened this issue 1 year ago • 5 comments

I'm trying to flash a bk7231N smart switch but I have write fails. Changing baud rate only changes the point at which the error occurs, this is the log:

All selected sectors erased! Writing sector 0x00... ok! Writing sector 0x1000... ok! Writing sector 0x2000... ok! Writing sector 0x3000... ok! Writing sector 0x4000... ok! Writing sector 0x5000... ok! Writing sector 0x6000... ok! Writing sector 0x7000... ok! Writing sector 0x8000... ok! Writing sector 0x9000... ok! Writing sector 0xA000... ok! Writing sector 0xB000... ok! Writing sector 0xC000... ok! Writing sector 0xD000... ok! Writing sector 0xE000... ok! Writing sector 0xF000... ok! failed with serial.BytesToRead 1 (expected 15) The beginning of buffer in UART contains FF data. Writing sector 0x10000... Writing sector 65536 failed! Writing file data to chip failed.

Tried also the change usb port but nothing changed, do you have any idea?

Tony2k avatar Nov 07 '23 22:11 Tony2k

I am getting the exact same issue

All selected sectors erased! Going to do erase, start 1904640, sec count 1! Erasing sector 1904640... ok! All selected sectors erased! Writing sector 0x00... ok! Writing sector 0x1000... ok! Writing sector 0x2000... ok! Writing sector 0x3000... ok! Writing sector 0x4000... ok! Writing sector 0x5000... ok! Writing sector 0x6000... ok! Writing sector 0x7000... ok! Writing sector 0x8000... ok! Writing sector 0x9000... ok! Writing sector 0xA000... ok! Writing sector 0xB000... ok! Writing sector 0xC000... ok! Writing sector 0xD000... ok! Writing sector 0xE000... ok! failed with serial.BytesToRead 14 (expected 15) The beginning of buffer in UART contains D0FF00000000000000000000000E data. Writing sector 0xF000... Writing sector 61440 failed! Writing file data to chip failed.

Flashing a BK7231N CB3S

Tried multiple programmers and usb ports.

edwardpoll avatar Nov 08 '23 09:11 edwardpoll

Same with aubess smart swich (2 of them). both itchiptool and openbeken fail to flash. Can't revert to stock for now. EDIT: Revived one by lowering baud, managed to flash obk. WIll try the other one in a second. No luck with the second device. Second day update: revived the second one with a different laptop. Failed at first with baud rate 115200 and 921600 (wich worked on the first aubess on the other computer), finished flashing with baud 1500000. Same cp2102 adapter. Had to resolder one of them to rewrite rf because mac was C8:47:8C:00:00:00 on both.

samuelolteanu avatar Nov 08 '23 19:11 samuelolteanu

Same for me, I'm not able to revive my Aubess smart switch beceuse I can't flash the dump.

Tony2k avatar Nov 08 '23 19:11 Tony2k

Failed to write previously flashed tuya smoke detector. Maybe some online dependency is broken?

samuelolteanu avatar Nov 09 '23 19:11 samuelolteanu

The same for me wit smart plug Smart Socket Chip BK7231N Firmware: OpenBK7231N_QIO_1.17.614.bin

baud rate: 1500000 failed with serial.BytesToRead 0 (expected 15) The beginning of buffer in UART contains data. Writing sector 0xEE000... Writing sector 974848 failed! Writing file data to chip failed.

baud rate: 115200 failed with serial.BytesToRead 0 (expected 15) The beginning of buffer in UART contains data. Writing sector 0xE2000... Writing sector 925696 failed! Writing file data to chip failed.

baud rate: 921600: failed with serial.BytesToRead 0 (expected 15) The beginning of buffer in UART contains data. Writing sector 0xE1000... Writing sector 921600 failed! Writing file data to chip failed.

mariupol1963 avatar Jun 14 '24 14:06 mariupol1963