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

Problem with fat initializing

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



Joined: 24 Sep 2010
Posts: 2

View user's profile Send private message

Problem with fat initializing
PostPosted: Sun Jan 16, 2011 4:41 am     Reply with quote

I want to use the ex_fat example with the pic 24hj256gp610 and a micro SD card.
I have tested the hardware with ex_mmcsd.c code and I was able to store a value in a memory location and retrieve it to check if it fit with what I set. So I think the hardware is ok, although after I format the sd card the value is the same.
When I test the ex_fat code I get the error "ERROR INITIALIZING FAT".
The sd card is formated fat32 and unit size 512.

Any idea?
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Sun Jan 16, 2011 5:28 am     Reply with quote

Obviously check that fat.c, has FAT32 selected. What compiler version?. Were quite a few reports of problems in the past.....

Best Wishes
tzbuu



Joined: 24 Sep 2010
Posts: 2

View user's profile Send private message

PostPosted: Sun Jan 16, 2011 5:35 am     Reply with quote

I had select the #define FAT32. My compiler version is 4.105.
I also correct the "get_next_addr" and "get_prev_addr" function without any luck.
Thank you.
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