pebri86 / esplay-retro-emulation

Retro Emulation Collection for ESPlay Hardware, an ESP32 based game console
https://www.makerfabs.com/esplay-micro.html
MIT License
444 stars 88 forks source link

The built firmware cannot be flashed in: Data length error #23

Closed jianjinliao closed 3 years ago

jianjinliao commented 3 years ago

I'm sorry to raise the problem again. I successfully compiled the firmware, but bootloader will display 'data long error' when it is flashed in. How can I solve it? Thank you very much!

pebri86 commented 3 years ago

The error means the binary to be flashed not fit in the particular partition, please check the binary size and compare with size in the mkrelease.sh mkfw command ( in bytes size )

jianjinliao commented 3 years ago

I changed it mkrelease.sh OK, but there is another problem: partition length alignment error. Is this the problem of data partition table?

pebri86 commented 3 years ago

Yes, there's problem with the partition table. The partition table must be 64 byte align. This partition table created automatically by mkfw when flashing, so the size length must be 64 bytes align.

jianjinliao commented 3 years ago

Thank you very much for your reply. The problem has been solved. I will compile the firmware suitable for me. CLOSE ISSUE