Sonsivri

Electronics => Pic C Languages => Topic started by: Tom1234 on March 17, 2014, 08:36:37 20:36



Title: CCS SD CARD FAT.C- MMC.C
Post by: Tom1234 on March 17, 2014, 08:36:37 20:36
I try to program a dspic33 series microcontroller with ccs compiler.
I try to use FAT.c, MMC.c  drivers which are provided by the compiler but unfortunately these codes are buggy.

I know that there are a lot of thread here about this issue but all the links are deads.
Is anyone who has a bug free code drivers(fat.c,mmc.c)???


Title: Re: CCS SD CARD FAT.C- MMC.C
Post by: Old_but_Alive on March 17, 2014, 08:47:01 20:47
you would be much better off trying the CCS bulletin board.

I tried to implement CCS's drivers, and they are rubbish.

But, there is loads of good info on the board, search "SDcard" amongst others

user asmallri has a website where he sells working drivers.


Title: Re: CCS SD CARD FAT.C- MMC.C
Post by: Gallymimu on March 18, 2014, 06:01:21 06:01
Give microchip's FAT and SD driver a try.  They were a little shaky a few years ago but most of the issues had been fixed and I used it in a production environment without any issue for data logging and bootloading.


Title: Re: CCS SD CARD FAT.C- MMC.C
Post by: Tom1234 on March 19, 2014, 01:12:31 01:12
Gallymimu what is the compiler version did you use (and it was fine)??


Title: Re: CCS SD CARD FAT.C- MMC.C
Post by: Ak_embedded on March 19, 2014, 09:58:01 09:58
I good implementation that works is available at http://www.dharmanitech.com/2009/01/sd-card-interfacing-with-atmega8-fat32.html

For PIC controllers you need to port and cross compiler the available source.

Also you can have a look at http://www.sonsivri.to/forum/index.php?topic=52381.0


Title: Re: CCS SD CARD FAT.C- MMC.C
Post by: danifox on January 10, 2015, 11:27:06 11:27
While using CCS I would recommend you to either implement your own driver or use a freeware/shareware one, because CCS built-in SD driver doesn't work with SD v2 cards.