4 years, 9 months ago.

Has anyone an idea how to get MAX32630FTHR work as an USB MSD in mbedOS 5.13?

Hi there,

I am fairly new in mbedOS, would like to read/write the SD card in MAX32630FTHR from a computer (USBMSD). I found this demo: https://os.mbed.com/teams/MaximIntegrated/code/FTHR_USBMSD_Demo/ it works rather slow (50-70 KB/s transfer rate) and also the implementation seems to be outdated as by now BlockDevice and also the USB APIs have become part of mbedOS core.

Tried to implement USBMSD in mbedOs 5.13 i get the following message on the serial port: "This board does not have a hardware usb driver"

My mbed_app.json contains:

{
"target_overrides": {
    "MAX32630FTHR": {
         "target.features_add": ["STORAGE"],
         "target.components_add": ["SD"],
         "sd.SPI_MOSI": "P0_5",
         "sd.SPI_MISO": "P0_6",
         "sd.SPI_CLK": "P0_4",
         "sd.SPI_CS": "P0_7"
    }
}
}

my main.cpp is:

#include "mbed.h"
#include "SDBlockDevice.h"
#include "USBMSD.h"

SDBlockDevice sd(P0_5, P0_6, P0_4, P0_7);
USBMSD usb(&sd);

int main() {

    while(true) {
        usb.connect();
    }

    return 0;
}

Can someone please show me an up to date working example or tell me what i am missing?

Question relating to:

Maxim's microcontrollers provide low-power, efficient, and secure solutions for challenging embedded applications.
Be the first to answer this question.