Open gdtv opened 7 months ago
Please post full flashing logs in verbose mode.
Please post full flashing logs in verbose mode.
this is logs error-log.txt
exact same issue for me, but the path was different.
my cb2s was flashed with the generic kickstart-bk7231n-2023-12-15.uf2
firmware, and after that, it does not show up as AP, and does not accept any more flashing, with the same error as above:
W: Erasing failure @ 0x11000 (Erase failed - flash protected; found non-0xFF bytes @ 0x11000), retrying (attempt 0)
W: Erasing failure @ 0x11000 (Erase failed - flash protected; found non-0xFF bytes @ 0x11000), retrying (attempt 1)
W: Erasing failure @ 0x11000 (Erase failed - flash protected; found non-0xFF bytes @ 0x11000), retrying (attempt 2)
W: Erasing failure @ 0x11000 (Erase failed - flash protected; found non-0xFF bytes @ 0x11000), retrying (attempt 3)
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. mine was N, so it's you're probably right.
Solution: https://bbs.hassbian.com/forum.php?mod=viewthread&tid=25311 Sorry for my poor English, I can't translate it into English
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: