CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

FAT32 on SD Card
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

View user's profile Send private message Send e-mail MSN Messenger

Re: FAT32 on SD card
PostPosted: Tue Sep 09, 2008 8:12 am     Reply with quote

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

View user's profile Send private message

Re: FAT32 on SD card
PostPosted: Tue Sep 09, 2008 12:28 pm     Reply with quote

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
PostPosted: Thu Nov 20, 2008 9:56 am     Reply with quote

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

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Fri Feb 27, 2009 11:04 am     Reply with quote

PuffyDally,

I already posted it in another topic.

http://www.ccsinfo.com/forum/viewtopic.php?t=37463&highlight=mmc

regards.
_________________
Andre
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group