| View previous topic :: View next topic |
| Author |
Message |
andreluizeng
Joined: 04 Apr 2006 Posts: 117 Location: Brasil
|
| Re: FAT32 on SD card |
Posted: Tue Sep 09, 2008 8:12 am |
|
|
| PuffDally wrote: | Hi Andreluizeng
Any chance you could post the code that you got to work with an SD card, I have been unsuccessful in getting this to work with a PIC18F66J15.
I keep gettin a 'time out' error when trying to initalize the SD card. Do you have any error checking I can do to verify the SPI comms to the SD card is working correctly?
And lastly do you know what the maximum size SD card I can use is? The PIC I am using has 4kB of flash.
Thanks alot! |
Hi dude, send me your email, then I send it to you as sooner as I can.
regards. _________________ Andre |
|
 |
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
| Re: FAT32 on SD card |
Posted: Tue Sep 09, 2008 12:28 pm |
|
|
| PuffDally wrote: | | The PIC I am using has 4kB of flash. | The PIC18F66J15 has 96kb of Flash, not 4k. Or are you talking about another type of PIC here? Note that a PIC with 4kb of Flash will not have enough RAM for writing to the SD card, this requires at least 512 RAM bytes. Reading is possible with less RAM available.
| Quote: | | do you know what the maximum size SD card I can use is? | 2Gb. The higher capacity 2Gb+ cards are called SDHC and require a different startup sequence. Modification of the driver to support SDHC shouldn't be too difficult but I haven't seen these drivers yet. Why would you need more than 2Gb on a PIC anyway? |
|
 |
germanvs Guest
|
| german |
Posted: Thu Nov 20, 2008 9:56 am |
|
|
| andreluizeng wrote: | Daniel,
I found the problem and already fixed it.
it was in fat32 initialization.
bye the way, do you know some code to read all data from CID And CSD register ? im trying but im getting some strange data.
thanks for the replay. |
Hello.
What was the problem in the fat32 initialization? I have the same problem.
My regards.
German. |
|
 |
andreluizeng
Joined: 04 Apr 2006 Posts: 117 Location: Brasil
|
|
 |
|