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

RTX USB MSC with MMC interface of FlashFS

This is a general question:

Has anybody successfully implemented the RTX USB MSC together with the MMC interface of FlashFS on an LPC2148 having a microSD card connected to SPI1 ?

I used \Keil\ARM\Boards\Keil\MCB2300\RL\USB_FlashFS\SD_File as a starting point.

SPI data rates are 400 kBit/s and 15 MBit/s (LPC2148 operated @60 MHz).

MicroSD card access via FlashFS itself works fine. Also USB MSC enumerates correctly (windows recognizes the device and shows it as drive).

But accessing the drive in Windows leads to erroneous behavior varying from XP to 7.

Are there general performance issues with the above architecture?

I would realy appreciate some hints from the USB / RTX Guru ...

Thank you very much in advance.

Oliver

Parents
  • It's working! It was the Task Stack Size. Had to be increased, the 0x200 bytes weren't sufficient.

    This is a general problem: Lack of information about resource requirements of the RL-ARM code.

    But, anyway, there's a new question now:

    Using a 2GB microSD card it appears that only half the capacity can be accessed.

    Windows format dialog reports 1,85 GB when the SD card is connected directly to the PC.

    In contrast using the (SD-Card <-> SPI <-> MMC-Driver <-> USB-MSC) chain Windows format dialog only reports something like 951 MB (varying from card to card!).

    Since the RL-ARM documentation says that SD Cards up to 4GB are supported by FlashFS, I assume "something" in the USB-MSC part?

    Has anybody come across this, too?

    Regards,

    Oliver

Reply
  • It's working! It was the Task Stack Size. Had to be increased, the 0x200 bytes weren't sufficient.

    This is a general problem: Lack of information about resource requirements of the RL-ARM code.

    But, anyway, there's a new question now:

    Using a 2GB microSD card it appears that only half the capacity can be accessed.

    Windows format dialog reports 1,85 GB when the SD card is connected directly to the PC.

    In contrast using the (SD-Card <-> SPI <-> MMC-Driver <-> USB-MSC) chain Windows format dialog only reports something like 951 MB (varying from card to card!).

    Since the RL-ARM documentation says that SD Cards up to 4GB are supported by FlashFS, I assume "something" in the USB-MSC part?

    Has anybody come across this, too?

    Regards,

    Oliver

Children