SD Card access
Philldapill
Posts: 1,283
Is there any simple SD Card read/write access objects that aren't totally overwhelming for the beginner? I ran a search on the object exchange and I'm having a hard time finding a simple interface. I just got my sample SD sockets in from molex and made a quick and dirty card adapter for the prop and can't wait to see it working. Any advice/help is appreciated.
Comments
Format g: /A:size
Where "size" is one of the following:
min max
4M 512 512
8M 512 1K
16M 512 2K
32M 512 4K
64M 1K 8K
128M 2K 16K
256M 4K 32K
512M 8K 32K
1G 16K 32K
2G 32K 32K
That table is from http://tomas.rokicki.com/fat16work/README.txt which is his documentation on that code.
This had me pretty stumped with the routine hanging and not completing until I fixed the format.
I have more info·here:
http://www.rayslogic.com/propeller/Programming/SD_Card/SD_Card.htm
I got an SD Card reader today. It's a thumb drive adapater where you just plug the sd card into it, and plug the adapater into the USB port and it acts like a thumb drive.
The computer recognized it and reads it fine. I formatted it and the only two options where FAT and FAT 32. I assume FAT is FAT16.
I then tried my card with the prop and it's still giving me error a weird error number that is not in the PUB mount function. When I do:
TV.dec(\mass.mountSDVol(def#spiDO,def#spiClk,def#spiDI,def#spiCS))
It prints -12208 on the screen. This is with or without the card installed. When I take the pull-up resistors off of pins 8-11, it then gives error -20. ANY idea what's wrong???