We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
MCB2300 and SD-Card/MCI
Hi,
I wanted to test the SD-card example from keil using the native MCI interface with an SD card. It detects well an Formatted SDcard inserted but asks me forever to format the card, like this
SD/MMC Card is Unformatted Format Flash Memory Card? [Y/N] Memory Card Formatted. Card Label is KEIL
SD/MMC Card is Unformatted Format Flash Memory Card? [Y/N] Memory Card Formatted.
1. Ensure that the USB RAM space is correctly specified in IRAM2 under Project — Options — Target — IRAM2 Start: 0x7FD00000, Size: 0x2000. 2. In the Project Workspace, right click with the mouse on the file RTLFS.lib (implements the data transfer buffers) and open the Options — Properties dialog. 3 .For the Zero Initialized Data select IRAM2 so that all data transfer buffers are located to this memory space.
I have tried this settings also.again same behaviour
but card is not detecting.please help me
Best Regards
"I wanted to test the SD-card example from keil using the native MCI interface with an SD card. It detects well an Formatted SDcard inserted but asks me forever to format the card,"
The example code from Keil for an ST chip is written as follows:
*----------------------------------------------------------------------------*/ static void init_fs (void) { U32 retv; while ((retv = finit (NULL)) != 0) { /* Wait until the FS is ready */ if (retv == 1) { printf ("\nSD/MMC Init Failed"); printf ("\nInsert Memory card and press key...\n"); while (getkey () == 0); } else { printf ("\nSD/MMC Card is Unformatted"); strcpy (&in_line[0], "KEIL\r\n"); cmd_format (&in_line[0]); } } }
I imagine the MCB code is very similar too....