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

MCI driver for microSD with SPI access

Hello,
I need to replace the MCI driver of the Keil Example Code
\Keil\ARM\Boards\Keil\MCB2300\RL\USB_FlashFS\SD_File
by a driver which accesses the microSD card via the SPI interface in SPI mode instead in native mode, since I am using a target device without MCI peripheral block (LPC214x).

Is there an example available which provides USB Mass Storage access to a microSD card connected via SPI in SPI mode together with FlashFS access as shown in the above Example Code?

Thank you very much in advance,
Oliver

Parents Reply Children
  • I have now removed the MCI driver MCI_LPC23xx from the example code
    \Keil\ARM\Boards\Keil\MCB2300\RL\USB_FlashFS\SD_File
    and implemented the spi_xxx functions.

    Access to the microSD card connected to the SPI1 port of the LPC2148 using the functions provided by FlashFS works correctly!

    Unfortunatelly the USB access does not work correctly:

    On Windows XP shows up the new mass storage device and the contents of the root directory is shown. The properties of the microSD card are displayed correctly (FAT, 2GB). Read & write of files from/to the card does not work.

    On Windows 7 shows up the new mass storage device but windows claims that the drive is not formatted correctly and wants to format it, what will not work.

    The first issue to solve is the different behaviour on XP and 7.

    Has anybody made similar observations or an idea how to solve the problem?

    Regards,

    Oliver