-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
unable to write to BK7231M on CB2S #279
Comments
Please post full flashing logs in verbose mode. |
this is logs |
exact same issue for me, but the path was different.
tried to power off, power on, reconnect rx,tx a few times, and finally it was working again, and could flash the compiled firmware |
Do you also have a BK7231M? CB2S modules usually come with a BK7231N, so that's likely where the issue comes from. |
oh didn't see the N vs M thing. |
Solution: |
That could be a solution for BK7231M. BK7231Flasher program uses a different algorithm for unprotecting the flash chip, so it might have better success on other bootloaders. The config shown in the forum post works only for this particular device - it uses unencrypted firmware. It is important to first specify the encryption parameters, then compile the firmware. The OpenBK "burn" step is mostly unnecessary, since it overwrites the bootloader with one that won't work on that device. However, I don't think there is another way to unprotect the flash using BK7231Flasher - the tool is only written to flash OpenBK. |
I have two different CB2S, the one on the left in the picture has a BK7231M, the right one has a metal cover so I don't know what's inside.
The right one works fine, I can write the firmware with ltchiptool-v4.11.1 and it runs correctly.
But the left one cannot write the firmware. The following is a screenshot of the error.
esphome yml:
The text was updated successfully, but these errors were encountered: