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 support@ccsinfo.com

sd card and ex_fat.c

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



Joined: 18 Mar 2009
Posts: 38

View user's profile Send private message

sd card and ex_fat.c
PostPosted: Tue Apr 06, 2010 4:10 pm     Reply with quote

I try to use a sd card connected to a 18f2525.

I have tested the hardware with ex_mmcsd.c and I am able to store a value in a memory location and retrieve it to check if it fit with what I set. -> hardware is ok

Next I am trying to use ex_fat.c with no success : the card get initialised ok, I am able to create a file and a directory but when I try to append a file the pic hang up and I need to reset it.

I am using PCWHD 4.065

My config is like this
Code:
#include <18f2525.h>
#device PASS_STRINGS = IN_RAM
#fuses NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP,HS
#use delay(clock=4000000)   
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)

#include <stdlib.h> // for atoi32

//media library, a compatable media library is required for FAT.
#use fast_io(c)
#define MMCSD_PIN_SCL PIN_C3 //o
#define MMCSD_PIN_SDI PIN_C4 //i
#define MMCSD_PIN_SDO PIN_C5 //o
#define MMCSD_PIN_SELECT PIN_C2 //o


Any idea ?

Thanks
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