Interface with SD card

Discussion of developmental aspects of the MiSTer Project.
User avatar
jotego
Core Developer
Posts: 62
Joined: Sun May 24, 2020 7:07 pm
Has thanked: 24 times
Been thanked: 208 times

Interface with SD card

Unread post 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
Open IP for many chips in my github account
RBF files for my MiSTer cores in jtbin
Support new IP and core development here
User avatar
Coffea
Posts: 32
Joined: Thu May 28, 2020 8:35 pm
Has thanked: 6 times
Been thanked: 5 times

Re: Interface with SD card

Unread post 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.
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Interface with SD card

Unread post 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.
MJY71
Posts: 5
Joined: Sun May 24, 2020 7:05 pm
Has thanked: 5 times
Been thanked: 2 times

Re: Interface with SD card

Unread post by MJY71 »

Certain arcade platforms saved/recalled their 'DIP switch' settings to/from an EEPROM.
User avatar
jotego
Core Developer
Posts: 62
Joined: Sun May 24, 2020 7:07 pm
Has thanked: 24 times
Been thanked: 208 times

Re: Interface with SD card

Unread post 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.
Open IP for many chips in my github account
RBF files for my MiSTer cores in jtbin
Support new IP and core development here
retrorepair
Posts: 257
Joined: Sun May 24, 2020 9:06 pm
Has thanked: 64 times
Been thanked: 13 times

Re: Interface with SD card

Unread post by retrorepair »

Would the computer cores not already do this with floppy disks?
User avatar
MottZilla
Posts: 43
Joined: Mon May 25, 2020 6:36 am
Has thanked: 1 time
Been thanked: 5 times

Re: Interface with SD card

Unread post 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?
retrorepair
Posts: 257
Joined: Sun May 24, 2020 9:06 pm
Has thanked: 64 times
Been thanked: 13 times

Re: Interface with SD card

Unread post 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.
paulbnl
Core Developer
Posts: 217
Joined: Sun May 24, 2020 8:48 pm
Has thanked: 50 times
Been thanked: 301 times

Re: Interface with SD card

Unread post by paulbnl »

Post Reply