View previous topic :: View next topic |
Author |
Message |
CGEngineering
Joined: 26 Jun 2007 Posts: 8 Location: Italy
|
SD/MMC FAT32 drivers (please help me!!) |
Posted: Tue Jun 26, 2007 10:00 am |
|
|
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 ?
Many Thanks
CG |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Tue Jun 26, 2007 1:57 pm |
|
|
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
|
|
Posted: Wed Jun 27, 2007 2:02 am |
|
|
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
|
|
Posted: Wed Jun 27, 2007 4:00 am |
|
|
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
|
Re: SD/MMC FAT32 drivers (please help me!!) |
Posted: Wed Jun 27, 2007 8:51 am |
|
|
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
|
Re: SD/MMC FAT32 drivers (please help me!!) |
Posted: Wed Jun 27, 2007 5:08 pm |
|
|
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
|
Re: SD/MMC FAT32 drivers (please help me!!) |
Posted: Thu Jun 28, 2007 5:03 am |
|
|
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
|
|
Posted: Thu Jun 28, 2007 12:17 pm |
|
|
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
|
|
Posted: Thu Jun 28, 2007 12:34 pm |
|
|
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
|
|
Posted: Sat Jun 30, 2007 8:37 am |
|
|
CCS now has a FAT implementation, check your drivers directory. _________________ I came, I saw, I compiled. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Jun 30, 2007 11:49 pm |
|
|
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
|
|
Posted: Mon Jul 02, 2007 6:53 am |
|
|
Could you post those files in the code section? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 02, 2007 10:24 am |
|
|
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
|
|
Posted: Mon Jul 02, 2007 2:29 pm |
|
|
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
|
|
Posted: Mon Jul 02, 2007 3:14 pm |
|
|
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 |
|
|
|