ltchiptool icon indicating copy to clipboard operation
ltchiptool copied to clipboard

Error CRC bootloader

Open Mit4el opened this issue 1 year ago • 3 comments

Hello, I use libretiny and ltchiptools in my firmware. some devices flash normally, but now I'm faced with such a problem. This is a relay on a BK7231N chip

P.S. I have already figured out the pins, I tried openbeken, it is flashing normally

IMG_20241029_145822_131.png

IMG_20241029_145847_400.png

IMG_20241029_154359_147.jpg

IMG_20241029_154438_021.jpg

Mit4el avatar Oct 29 '24 12:10 Mit4el

Do you have a stock firmware dump of the device? You have most likely corrupted the bootloader somehow, so it can't boot again. It is also possible that your device came with different bootloader keys and doesn't boot because of that. In either case, having a stock firmware dump is necessary.

kuba2k2 avatar Oct 29 '24 13:10 kuba2k2

Do you have a stock firmware dump of the device? You have most likely corrupted the bootloader somehow, so it can't boot again. It is also possible that your device came with different bootloader keys and doesn't boot because of that. In either case, having a stock firmware dump is necessary.

I saved the stock firmware, I'll try to restore it. Is the firmware address stored in the ufl file during the build? Can I see it, maybe it's stitching the wrong way?

Mit4el avatar Oct 29 '24 14:10 Mit4el

No, there isn't anything like "firmware address". Try restoring the entire firmware dump (it should be 2 MiB in size). In ltchiptool, open the file for writing, disable "auto-detect parameters" and clear the start/skip/length fields. Then flash the file. The device should be fully functional with its stock features.

Is it a Tuya Smart device, or a different brand? (like SBER, eWeLink, etc.)

kuba2k2 avatar Oct 29 '24 14:10 kuba2k2