MMC again

General discussion on mikroC.
Post Reply
Author
Message
dobova
Posts: 200
Joined: 13 Feb 2005 16:23
Location: Italy

MMC again

#1 Post by dobova » 14 Jul 2005 17:51

I've gone on MMC fat16 test again, this time with mC 2.1. No success. I've problem with all MMC I've tested and with mBasic 2.004 and mC 2.100 (chip is new 18F452).
I really don't realize what's the problem. zristic say that mmc-fat lib is working fine.
I format MMC with FAT16 (but same problem with FAT12).
I run MMC_fat example (just to be sure in both mBasic and mC).
The result is :
1.mC : program stops inside MMC_fat_assign(<name>) or MMC_fat_rewrite(); MMC_fat_init() is executed with NO errors.
2.mBasic : program run to the end but dir entries (filename) are written to logical sector 1 and not in root dir as expected (logical sector 488).

Any idea or help is appreciated :?

PS: I checked pins, cables, connectors from MMC board to easyPic2...
Ciao
Dome

pizon
mikroElektronika team
Posts: 823
Joined: 11 Oct 2004 08:53

Re: MMC again

#2 Post by pizon » 16 Jul 2005 18:49

Do the basic MMC test, to see whether the MM card you have can be accessed by the MMC library (use the MMC example and MMC Terminal Tool). Try reading and writing a few sectors through the MMC Terminal. If this goes OK, then you should go to MMC_fat.
pizon

dobova
Posts: 200
Joined: 13 Feb 2005 16:23
Location: Italy

#3 Post by dobova » 17 Jul 2005 19:01

Thanks pizon,
I forgot to mention, just to complicate the things, that the sector_read/write functions are working fine, in mBasic like mC, for MMC and for SD.
Now I'm collecting some other MMC card just to see if my 4 MMC cards are not compatible. To add more, I've used 32MB, 128MB, 256MB mmc. Compact Flash Fat functions are working fine.
Really incredible issue...
Ciao
Dome

pizon
mikroElektronika team
Posts: 823
Joined: 11 Oct 2004 08:53

#4 Post by pizon » 18 Jul 2005 16:51

I tested (again) the example (mikroC) on PIC18F452 (Create_Multiple_Files() only), and it works here. If the Mmc_Read_Sector() and Mmc_Write_Sector() work, Mmc_Fat16 should work as well. I'm puzzled (and out of ideas at the moment) :(
pizon

Post Reply

Return to “mikroC General”