Page 1 of 1
Interface with SD card
Posted: Wed Dec 09, 2020 6:19 pm
by jotego
Hi,
I need to dump to the SD card the contents of a small EEPROM used in a core. Could you point me to information about how to interface with the firmware to save and read to a file? The core is an arcade so the name of the file could just be derived from the MRA, I suppose.
Thank you
jotego
Re: Interface with SD card
Posted: Wed Dec 09, 2020 7:21 pm
by Coffea
Can you post details of the actual EEPROM - A chip or whatever it is that has the data you need, picture & part number, I'm a little unclear on exactly what you're trying to accomplish.
Re: Interface with SD card
Posted: Wed Dec 09, 2020 7:38 pm
by jca
I suppose he wants to emulate an EEPROM in an arcade core and has to save it in a file on exit and reload it on starting the core so it does not really matter what the real EEPROM is.
Re: Interface with SD card
Posted: Wed Dec 09, 2020 10:48 pm
by MJY71
Certain arcade platforms saved/recalled their 'DIP switch' settings to/from an EEPROM.
Re: Interface with SD card
Posted: Thu Dec 10, 2020 6:14 am
by jotego
It is an EEPROM found in arcade games, sized 128 or 256 bytes. I have it already talking with the core and modeled in a BRAM block.
I just need a way to get a serial stream of bits in from the SD card, when the core loads. And then get a stream out on the core request. The name of the file can just be linked to the game name in the MRA file.
There must already exist such an interface in MiSTer. I just need to know the details of it.
Re: Interface with SD card
Posted: Thu Dec 10, 2020 7:16 am
by retrorepair
Would the computer cores not already do this with floppy disks?
Re: Interface with SD card
Posted: Thu Dec 10, 2020 7:37 am
by MottZilla
What about the console cores like SNES and Genesis? Wouldn't they be doing the same thing you need for games with SRAM?
Re: Interface with SD card
Posted: Thu Dec 10, 2020 7:47 am
by retrorepair
MottZilla wrote: ↑Thu Dec 10, 2020 7:37 am
What about the console cores like SNES and Genesis? Wouldn't they be doing the same thing you need for games with SRAM?
Minus the "save when the core wants" but yeah pretty much exactly the same thing I'd have thought.
Re: Interface with SD card
Posted: Thu Dec 10, 2020 8:21 am
by paulbnl