Building a USB serial device with STM32F103C8T6 board

Dependencies:   mbed mbed-STM32F103C8T6 USBDevice_STM32F103

Building a USB serial device with STM32F103C8T6 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 STM32F103C8T6 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.

Zoom in /media/uploads/hudakz/stm32f103c8t6_usb_serial.jpg

NOTE:

In this application, power the STM32F103C8T6 board over a USB cable connected to the Micro-B USB connector (see in picture above) which you are going to use also 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 STM32F103C8T6 board to start running the program and to get the USB serial connection work.

History

Updated. default tip

2019-05-13, by hudakz [Mon, 13 May 2019 08:42:21 +0000] rev 8

Updated.


Updated.

2019-02-20, by hudakz [Wed, 20 Feb 2019 12:42:52 +0000] rev 7

Updated.


Updated.

2019-02-01, by hudakz [Fri, 01 Feb 2019 11:06:23 +0000] rev 6

Updated.


Connection is not blocked when USB is not plugged in.

2017-04-26, by hudakz [Wed, 26 Apr 2017 17:57:55 +0000] rev 5

Connection is not blocked when USB is not plugged in.


Updated.

2016-08-14, by hudakz [Sun, 14 Aug 2016 09:57:58 +0000] rev 4

Updated.


Updated

2016-08-02, by hudakz [Tue, 02 Aug 2016 19:39:53 +0000] rev 3

Updated


updated

2016-07-09, by hudakz [Sat, 09 Jul 2016 09:18:46 +0000] rev 2

updated


Updated

2016-07-08, by hudakz [Fri, 08 Jul 2016 21:29:34 +0000] rev 1

Updated


Initial revision

2016-07-08, by hudakz [Fri, 08 Jul 2016 21:19:45 +0000] rev 0

Initial revision