esp_8_bit icon indicating copy to clipboard operation
esp_8_bit copied to clipboard

Boot_Loop when rom is failing to load.

Open NoNamedCat opened this issue 4 years ago • 4 comments

I think that when the execution start the best option is to show the menu. Sometimes when the emulator fails to load a rom to the app0 partition fails to boot and the user needs to reprogram that partition using the arduino IDE. so... if the menu have an option to format that partition, and the emulator menu shows at start (No loading the rom) is a good option to fix this issue.

BTW i think that if the audio pin is mapped to the IO17 and make free the IO18, we can use the standart pins for SPI protocol making it easy to atach a SD card to that pins. Im trying to understand the CRAPFS part of the code to load roms from the SD card.

NoNamedCat avatar Jul 06 '20 23:07 NoNamedCat

Good point. I just had it happen to me for a second time. The only way out is to wipe the whole SPIFFS and upload all the stuff again. After lots of googling I found a working source for compressing the ROM images "miniz" that are stored in the media.h file. (https://github.com/richgel999/miniz/releases -> example3.exe -l10 c rom.nes rom.nez and then paste the hexdump in the media.h file). Would have been nice to keep them compressed and only unpack them once they gets copied to the CRAPFS to save space on the limited SPIFFS. This of course will not matter if one adds and SD card with plenty of space...

I used IO17, 21, 22 and 27 for the hardwired NES/SNES controllers but that pins can be moved as well I suppose...

CornN64 avatar Jul 07 '20 12:07 CornN64