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

Reading and writing an SD Card with FAT16 or FAT32

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



Joined: 17 Dec 2008
Posts: 2

View user's profile Send private message

Reading and writing an SD Card with FAT16 or FAT32
PostPosted: Wed Dec 17, 2008 8:14 am     Reply with quote

I have version 4.071 of the CCS compiler. I am using a PIC18LF2680 micro using the internal oscillator at 8MHz and running the chip at 3.3V. I am using the EX_FAT.c example provided in the CCS compiler example files. It includes the MMCSD.c file for an SD card interface. I have 20K pull-ups on all of the SD card pins. Here is what I have found. In FAT16 mode I can create files and directories and write and read the files in my application. When I install the card in a PC it doesn't see what I have done in the application. If I write a file from the PC to the card and put it in my application I can't see that file. If I format the card with the PC it erases the file the PC put on but my files still show up in my application and vice versa. In FAT32 mode I can't get it to consistently do anything. Can someone please help me out. I have tried a Fujifilm 256MB and Lexar 512MB card.
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