Hi Everyone,
We have used the example program taken from path “C:\Keil\ARM\Boards\Keil\MCB2300\RL\FlashFS\SD_File\SD_File.uV2” to create a file in MMC card interfaced to LPC2368 microcontroller using MMC card bus (Native mode). The code is working fine for 1GB MMC card. But when we are inserting 4 GB card into card slot the program is displaying “SD/MMC Init Failed” message in Flash Magic terminal window.
+-----------------------------------------------------------------------+ | SD/MMC Card File Manipulation example | + command ------------------+ function ---------------------------------+ | CAP "fname" [/A] | captures serial data to a file | | | [/A option appends data to a file] | | FILL "fname" [nnnn] | create a file filled with text | | | [nnnn - number of lines, default=1000] | | TYPE "fname" | displays the content of a text file | | REN "fname1" "fname2" | renames a file 'fname1' to 'fname2' | | COPY "fin" ["fin2"] "fout"| copies a file 'fin' to 'fout' file | | | ['fin2' option merges 'fin' and 'fin2'] | | DEL "fname" | deletes a file | | DIR "[mask]" | displays a list of files in the directory | | FORMAT [label [/FAT32]] | formats Flash Memory Card | | | [/FAT32 option selects FAT32 file system] | | HELP or ? | displays this help | +---------------------------+-------------------------------------------+
SD/MMC Init Failed Insert Memory card and press key...
We have used the above signal lines to interface the MMC card with LPC2368. Please help us in solving this problem. The MMC card used is “micro SDHC – 4GB”
Waiting for your reply
Thanks in advance Regards K.Surendar reddy surenderreddy333@gmail.com
NO! don't just sit there - get debugging!
Or, if you want support from Keil, you need to contact them direct.
Depending on sw versions the rl lib mci_lpc2368 has some timing Problems realized using simple "for" loops. Just increase the loops endvalues will help as workaround for most sd-Cards.
Hi Neda,
Try to format your card with FAT32 and 512-bytes allocation unit size, it may help.
http://automasys.wordpress.com automasys.persiangig.com
HI mhsn rah
I have formatted the 4GB card in PC with FAT32 file system and There is no chance of formatting with the sample code listed because it is not recognizing by MMC card.
Thanks for your reply mhsn rah
Hi michael tscharntke
Thanks for your reply, I think whether the sample code from RL library which i have taken works only for micro-SD cards not the micro-SDHC cards. Is that the reason Please reply me.
HI, Everyone I have got one more problem at present we are working with 1GB MMC card we want the MMC card insertion to be hot plug-gable. For this we have used one GPIO pin to detect insertion of the MMC card. But when the MMC card is inserted my system(LPC 2368 controller) is resetting. Please help me i want my system with MMC card support to be hot pluggable. Please Reply me.