Hi everyone,
I have a problem with USBMSD example, when I connect my LPC1768 via USB to my computer, it takes a long time (2~3 minutes) to detect the size of my microSD connected to LPC1768. But when my computer detects correctly the USB Mass Storage Device, everything works well. My code is the same shown in Mbed examples:
@tomrod
Use a smaller SD card if that is an option, that way the size enumeration will be faster.
Of course there would be room for improvement in the USBMSD API (right now it can only read 1 block at a time which limits speed significantly), but at least we have basic functionality.
@projectX_V thanks for your advice. I tried with a smaller microSD card, but my computer didn’t recognize it. For default, SDBlockDevice sets SPI frecuency to 1MHZ, then I changed it to the max value (25MHz) resulting in a reduction time for my computer to recognize my microSD card. With this change the time was reduced from 3 minute to 1 minute, not perfect but better.