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

SD/MMC FAT32 drivers (please help me!!)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
CGEngineering



Joined: 26 Jun 2007
Posts: 8
Location: Italy

View user's profile Send private message MSN Messenger

SD/MMC FAT32 drivers (please help me!!)
PostPosted: Tue Jun 26, 2007 10:00 am     Reply with quote

Hello,

i've looked into Code Library but i didn't find a code that really work. Can anyone tell me where i can find a fully functional FAT32 code?

I'm using MikroC Compiler (from Mikroelektronika) but i don't like it. They don't bring built-in functions sources, so i can't full-test my products.
I like CCS PCWH very much, i've done a lot of projects with it, and i am working about an industrial datalogger with Ethernet and WI-FI (using a LANTRONIX product). I have libraries for many of the IC's in the board, and i miss only the SD/MMC one

p.s. I can post my fully functional drivers for :
DS1305 RTC
CS5523/4 instrumentation ADC
Telit SIMCARD GSM modules
USART GPS module
does anyone want to exchange ? Smile

Many Thanks
CG
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Jun 26, 2007 1:57 pm     Reply with quote

I sell a FAT32 driver for the CCS Compiler. Details on my site.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
CGEngineering



Joined: 26 Jun 2007
Posts: 8
Location: Italy

View user's profile Send private message MSN Messenger

PostPosted: Wed Jun 27, 2007 2:02 am     Reply with quote

asmallri wrote:
I sell a FAT32 driver for the CCS Compiler. Details on my site.


I tried on the past to contact you, but i received no reply, calling by phone too. I would like detailed infos about your product before purchasing

Regards
CG
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Jun 27, 2007 4:00 am     Reply with quote

Thanks for bringing the contact problem to my attention there was a call forwarding problem which has now been corrected. Could you please send me a personal message on this forum with your contact details and I will get back to you today.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!


Last edited by asmallri on Wed Jun 27, 2007 4:11 am; edited 1 time in total
CGEngineering



Joined: 26 Jun 2007
Posts: 8
Location: Italy

View user's profile Send private message MSN Messenger

Re: SD/MMC FAT32 drivers (please help me!!)
PostPosted: Wed Jun 27, 2007 8:51 am     Reply with quote

CGEngineering wrote:
Hello,

i've looked into Code Library but i didn't find a code that really work. Can anyone tell me where i can find a fully functional FAT32 code?


No one has got a open-source library?

Thanks
CG
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

Re: SD/MMC FAT32 drivers (please help me!!)
PostPosted: Wed Jun 27, 2007 5:08 pm     Reply with quote

CGEngineering wrote:
No one has got a open-source library?
Because of it's small RAM memory the PIC is not very well suited to write FAT32. It can be done but requires a lot of tweaking. For most commercial projects it is much cheaper to save development time and go for another processor with more RAM like the ARM or MIPS processors. These are some of the reasons you don't find that many FAT32 projects for the PIC.

You could have a look at the ELM - FAT File System Module
CGEngineering



Joined: 26 Jun 2007
Posts: 8
Location: Italy

View user's profile Send private message MSN Messenger

Re: SD/MMC FAT32 drivers (please help me!!)
PostPosted: Thu Jun 28, 2007 5:03 am     Reply with quote

ckielstra wrote:
CGEngineering wrote:
No one has got a open-source library?
Because of it's small RAM memory the PIC is not very well suited to write FAT32. It can be done but requires a lot of tweaking. For most commercial projects it is much cheaper to save development time and go for another processor with more RAM like the ARM or MIPS processors. These are some of the reasons you don't find that many FAT32 projects for the PIC.

You could have a look at the ELM - FAT File System Module


Thanks. I need almost FAT16 file system, like mikroC compiler....do you know any open-source library link?

Thank you

CG
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Thu Jun 28, 2007 12:17 pm     Reply with quote

asmallri,

Can you bootload to the PIC from sd card as well as read/write fat files?
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Jun 28, 2007 12:34 pm     Reply with quote

ljbeng wrote:
asmallri,

Can you bootload to the PIC from sd card as well as read/write fat files?


Not yet. I have started a project to do this (several times) but it keeps getting put aside for other priority (paying) projects. The solution is based on a stripped down file implementation for reading the image file from the root directory of a FAT16/32 implementation to minimize the bootloader footprint.

FAT12 is easy to add (less to strip out of my existing code) but I don't think there is a need for FAT12 anymore.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Sat Jun 30, 2007 8:37 am     Reply with quote

CCS now has a FAT implementation, check your drivers directory.
_________________
I came, I saw, I compiled.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jun 30, 2007 11:49 pm     Reply with quote

I looked, and here's the location of the driver and example files:
Quote:
c:\program files\picc\drivers\fat.c
c:\program files\picc\examples\ex_fat.c

They're both dated 6/15/07 so they must have just come out.

One issue is that the released filenames are different than the ones
referenced in the files. For example, EX_FAT.c, has this line:
Quote:
#include <FAT_PIC.c>

But it's obviously referring to the FAT.C file, because that file
has "FAT_PIC.C" in the comments at the start of the file.


Other new driver and example files for MMC and SD cards are:
c:\program files\picc\drivers\mmcsd.c
c:\program files\picc\examples\ex_mmcsd.c
Both dated 6/15/07. Just FYI. I didn't know they were there.
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Mon Jul 02, 2007 6:53 am     Reply with quote

Could you post those files in the code section?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jul 02, 2007 10:24 am     Reply with quote

We're not allowed to do that. Look at item #10 in the forum policies
at the top of the page.

If you own the compiler, you can email CCS support and ask them
nicely if they will send you those files. Include your customer reference
number in the email, so they know you own the compiler.
sauer



Joined: 02 Jul 2007
Posts: 2

View user's profile Send private message

PostPosted: Mon Jul 02, 2007 2:29 pm     Reply with quote

I have a code writed by Tamas Bodorics (Tomi) named MyMMCFat32.c
If you want a copy please send me your email.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jul 02, 2007 3:14 pm     Reply with quote

Quote:
I have a code writed by Tamas Bodorics (Tomi) named MyMMCFat32.c
If you want a copy please send me your email.

The MyMMCFat32.c code is in the CCS code library, in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=23969
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 1, 2  Next
Page 1 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