Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing sector failed #21

Open
Tony2k opened this issue Nov 7, 2023 · 5 comments
Open

Writing sector failed #21

Tony2k opened this issue Nov 7, 2023 · 5 comments

Comments

@Tony2k
Copy link

Tony2k commented Nov 7, 2023

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?

@edwardpoll
Copy link

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.

@samuelolteanu
Copy link

samuelolteanu commented Nov 8, 2023

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.

@Tony2k
Copy link
Author

Tony2k commented Nov 8, 2023

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

@samuelolteanu
Copy link

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

@mariupol1963
Copy link

mariupol1963 commented Jun 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants