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

CCS SD card

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
davis256



Joined: 18 Jan 2011
Posts: 4

View user's profile Send private message

CCS SD card
PostPosted: Sat Mar 17, 2012 2:01 am     Reply with quote

Dear All,
Has anyone been successful in initialising, reading and writing to an SD card using ccs ex_fat.c? This topic has been discussed many times before but I can't find someone who has successfully used all the above functions Smile
I am using a PIC18F 3.3V microcontroller. Have made changes to mmc and fat drivers as Andrew has mentioned but my SD card just can't initialise :(
Any help will be greatly appreciated.
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Sat Mar 17, 2012 2:50 am     Reply with quote

Yes, used them on several occasions without problems.
Things needed:
1) Tweak to handle cards that have an offset start address - patches posted here, or ensure the cards are formatted by the PIC itself.
2) Avoid cards 4GB or larger.
3) Correct level translation if using 5v - much easier using 3.3v as you are.
4) Remember you still need the pull-up resistors, even when using 3.3v. Missing these is a classic.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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