This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SD card not detecting on MCB2300 board

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.
Card Label is KEIL

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

  • No, actually it doesn't - does it?

    It detects a card - but does not detect (or recognise) that it is formatted.

    Are you sure that the formatting and the type of card are supported?

    Have you used the debugger to see where it's failing?

  • "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....