5 years, 9 months ago.

Nucleo F103 USB

Nucleo F103 has a USB device. I compiled a simple test program using the USBDevice library. There is no compilation error however the USB is not recognised by PC.

1 Answer

5 years, 9 months ago.

Hello John,

Try to add a new mbed_app.json file to your project with the content as below and then compile.

mbed_app.json

{
    "target_overrides": {
        "NUCLEO_F103RB": {
            "target.clock_source_usb": "1"
        }
    }
}

Can I do this using online compiler?

posted by John Miller 22 Jul 2018

When using the online compiler proceed as follows:

  • Select your project in Program Workspace
  • Click on the down-arrow in the New toolbar button and then select New File...
  • Type in the file name: mbed_app.json
  • Copy-and-paste the text above into the new file and save it.
  • Compile.
posted by Zoltan Hudak 22 Jul 2018