Forum breadcrumbs - You are here:ForumDevelopment: DevelopmentMMC and SD cards
You need to log in to create posts and topics.

MMC and SD cards

In this link :

https://softgun.sourceforge.net/

MMC and SD cards have been emulated in C language. The software uses a disk image file, which represents the file system. A structure is created with the card data and the disk image that represents the MMC-SD. The data from the structure is read and written via SPI. It seems good (it also implements different types of commercial cards). Unfortunately for me it is too complicated to implement in SimilIDE, however I report it in case it could interest someone.

Another useful link is this (in 4 parts):

http://www.rjhcoding.com/avrc-sd-interface-1.php

Regards

I modified the SD card of the open source program PicSimLab to make it work in SimulIDE.

The card loads disk images type ".img" and can only read and write Fat16.

I created the sd.img images on Uuntu with the Disks app.

Select from the menu "New disk image" size 9 Mbyte then format, verify that it is Fat16.

In the attached sketches the CS pin is 4.

Uploaded files:

Nice, thank you.
I will have a look.

@feri can you please provide some instructions for using this SD card in simulIDE. I have just started using simulIDE so it will be really helpful.

Thanks.

SimulIDE needs to be recompiled to use those files. Wait to see if arcachofo will include SD card in future test releases.

ChipMonk has reacted to this post.
ChipMonk