Hi all,
I managed to use my SD card as file storage for synth bank sounds. I can read SRAM program cards (32kB is a common size) and write their content to a file on the SD card. I can also read the file back and store it in that SRAM. All this is fine, but some problems remain.
I only discovered that this is actually working more or less by accident… Here are my questions:
-
If I read the documentation of the sdcard module correctly, then I have to create a file on the SD card in my computer first and can then write to that file. I cannot create a new file from the MIOS application, correct?
-
As all my files will have the same size (32kB), this is not a problem. The strange thing is that on my computer (a Win XP system) I create the file and fill it with some content, eg. all “FF”. Then I overwrite it with the SRAM program card content. Now, when I read the file again from SD card on my computer, it still contains all “FF”. But I can nevertheless read the SRAM program card content correctly from that same file in my MIOS app. This means that although the filenames are identical, MIOS and Windows access different sectors of the SD card. Huh?
-
My SD card was originally a 4GB card. What I did to make it work was to partition it to around 900MB using gparted-live-0.3.7-7, and then format it FAT16 with sector size 512 bytes in Win XP. Is this okay?
So, my SD card suffers from schizophrenia. ;D Did I say that any help would be appreciated?
Thanks, ilmenator