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

PIC 18F2620 and SD-Card FAT
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
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Thu Nov 18, 2010 9:20 pm     Reply with quote

It's good to hear you got it going. If you ever do figure out what the problem was, I'll be interested to hear about it.

I don't know how to force the creation of a partitioned card. All my cards are partitioned and I assume a camera did it or that's just how they came. Maybe fdisk or the Windows Disk Management tool?
_________________
Andrew
Prefekt



Joined: 21 Oct 2010
Posts: 85

View user's profile Send private message

PostPosted: Fri Nov 26, 2010 6:58 am     Reply with quote

Hi,

I will try to find out the problem next week. At the moment I am busy. But I'm very interested why the card could't read from the pc.

andrewq: you wrote:
Quote:
Edit, I've realized the above works because I've slightly altered the "fat_init" function too. The following in "fat_init":Code:
#ifdef FAT32
Data_Start = Bytes_Per_Cluster + Root_Dir;
#else // FAT16
needs to have "Bytes_Per_Cluster +" deleted.


so I make:
Quote:
#ifdef FAT32
Data_Start = Root_Dir;
#else // FAT16


Is this ok?

Volker
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Fri Nov 26, 2010 7:02 am     Reply with quote

Yes.
_________________
Andrew
eid44



Joined: 07 Dec 2010
Posts: 1

View user's profile Send private message

PostPosted: Tue Dec 07, 2010 5:22 pm     Reply with quote

Prefekt wrote:
Hi,

I will try to find out the problem next week. At the moment I am busy. But I'm very interested why the card could't read from the pc.

andrewq: you wrote:
Quote:
Edit, I've realized the above works because I've slightly altered the "fat_init" function too. The following in "fat_init":Code:
#ifdef FAT32
Data_Start = Bytes_Per_Cluster + Root_Dir;
#else // FAT16
needs to have "Bytes_Per_Cluster +" deleted.


so I make:
Quote:
#ifdef FAT32
Data_Start = Root_Dir;
#else // FAT16


Is this ok?

Volker


I have same your problem.
you edit it.
what is result ? It work?
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