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

MCB2300 and SD-Card/MCI trouble

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 and then , that the format failed...
When a took a look into the source, it seems
mci_init() return well (__TRUE value),
but when I did an mci_read_sect in order to read the sector 0, it failed.
I really didn't find what's wrong...

Best Regards

Parents
  • Hello Yann Suisini,

    You have to use USB RAM for DMA and the USB RAM starts at 0x7FD00000 and not at 0x7FD0000 as you mentioned before.

    The best is to create a second RAM area (IRAM2) in uVision under Options for Target - Target and locate file RTLFS.lib to this area. You select IRAM2 under Options for File - Zero Initialized Data.

    Best Regards,
    Martin Guenther

Reply
  • Hello Yann Suisini,

    You have to use USB RAM for DMA and the USB RAM starts at 0x7FD00000 and not at 0x7FD0000 as you mentioned before.

    The best is to create a second RAM area (IRAM2) in uVision under Options for Target - Target and locate file RTLFS.lib to this area. You select IRAM2 under Options for File - Zero Initialized Data.

    Best Regards,
    Martin Guenther

Children
No data