USB serial device with Maple Mini board.

Dependencies:   USBDevice_STM32F103 mbed-MapleMini mbed

Building a USB serial device with Maple Mini board

A USB device stack has been developed by mbed in order to provide all the great capabilities of USB. The USBdevice class has been extended by Norimasa Okamoto to support also the NUCLEO-F103RB boards (and others). For more information concerning the stack architecture, visit the USBDevice stack architecture.
The USBSerial class uses the USB interface to emulate a serial port. The Maple Mini board is recognized by the computer as a serial port. This is a great solution to communicate easily between the microcontroller and a computer. The mbed serial port works by default on Mac, Linux and Windows 10, but earlier version of Windows needs a driver. These instructions explain how to setup the mbed Microcontroller to use the USB serial port on Windows 7 and earlier.

NOTE:

If you build a USB serial device with the Maple Mini board then note that for the USB device to work the USB DP pin (PA_12) shall be connected to VCC over a 1.5k resistor (R10). Otherwise the host PC won't recognise the USB device and the USB device library code will hang. All parts are already installed on the board (see in the schematic below) and can be connected/disconnected using a DigitalOut on pin PB_9.

/media/uploads/hudakz/maple_usb.png

In this application, power the Maple Mini board over a USB cable connected to the Mini-B USB connector that you are going to use for the USB serial communication with the connected PC. Once the binary has been downloaded to the board, disconnect and then reconnect the USB cable to the Maple Mini board to start running the program and to get the USB serial connection work.

USBDevice_STM32F103.lib

Committer:
hudakz
Date:
2016-08-14
Revision:
1:dd51a3c8ce18
Parent:
0:d37938a78bc5

File content as of revision 1:dd51a3c8ce18:

http://developer.mbed.org/users/hudakz/code/USBDevice_STM32F103/#48fe9050cb4a