4 years, 7 months ago.

How can I use USBMSD with Nucleo-WB55 and OS5.13?

Mbed version: 5.13 Target board: Nucleo-WB55 IDE: On-line compiler

Is there anyone to successfully operate the following example code?

https://os.mbed.com/docs/mbed-os/v5.13/apis/usbmsd.html#usbmsd-example

I changed SDBlockDevice setting like this: SDBlockDevice sd(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS, 12000000);

But I saw an error message of ; ++ MbedOS Error Info ++ Error Status: 0x80FF0100 Code: 256 Module: 255 Error Message: Fatal Run-time error Location: 0x8005221 Error Value: 0x0 Current Thread: main Id: 0x20001C14 Entry: 0x800BDA5 StackSize: 0x1000 StackMem: 0x20000670 SP: 0x20001234 For more info, visit: https://mbed.com/s/error?error=0x80FF0100&tgt=NUCLEO_WB55RG MbedOS Error Info This board does not have a hardware USB driver

How can I solve this problem?

Question relating to:

ST
A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

1 Answer

4 years, 7 months ago.

Hi Lee,

Checking targets.json here, https://github.com/ARMmbed/mbed-os/blob/1800632655a57e38a11b06851d26bccb879b19f9/targets/targets.json#L8318

It seems NUCLEO WB55 not yet have USB_STM_HAL yet, that means this platform not supported USB currently.

Thanks, Desmond

Accepted Answer

Thanks a lot for your response.

I checked "target.json" and found that there is no description of USB.

But I cannot understand why USB_STM_HAL is not supported currently since "USB 2.0 FS device" was displayed in the Nucleo WB55 page. https://os.mbed.com/platforms/ST-Nucleo-WB55RG/

Anyway, who is in charge of modifying this "target.json" to be supported for USB device? ST or Mbed (arm)? And is it possible to add "USB_STM_HAL" to a local file like "mbed_app.json"?

posted by Hui Sung Lee 11 Sep 2019

HAL is managed by platform vendor, which is ST in this case. And yes you can add USB_STM_HAL to mbed_app.json, please refer to this.

https://os.mbed.com/docs/mbed-os/v5.13/reference/configuration.html

posted by Desmond Chen 12 Sep 2019