STM32 Releasing your creativity

Easy-to-use USB Library for STM32

The STM32F10x USB Library provides a free, complete firmware package that makes implementation of USB interfaces in STM32 applications quick and easy, that allows developers to painlessly develop any flavor of USB firmware including:

  •  Control transfer with generic device management tasks
  •  Interrupt transfer with HID Mouse/Joystick demo
  •  Bulk transfer with mass storage demo
  •  Isochronous transfer with Voice Speaker demo

In addition, the package provides implementation of DFU for firmware updates on USB, and of the popular Virtual COM (CDC class) for emulation of a classic RS232 interface on USB.

For more details about USB Library and demos implementation, please refer to the User manual "UM0424 STM32F10xxx USB development kit", available for download from the ST microcontrollers website: www.st.com/stm32

Links below connect to demo folder . The package contains the following demos:

Note: These demos run on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation boards and can be easily tailored to any other hardware. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file.

   
 Audio_Speaker The USB Audio Speaker demo gives examples of how to use the STM32F10xxx USB peripheral to communicate with the PC host in the isochronous transfer mode. It provides a demonstration of the correct method for configuring an isochronous endpoint, receiving or transmitting data from/to the host.
 Custom_HID This Demo provides a description of how to use the USB on the STM32F10x devices. The STM32F10x device is enumerated as HID compliant device, that uses the native PC Host USB HID driver.
   
 Device_Firmware_Upgrade   This Demo presents the implementation of a device firmware upgrade (DFU) capability in the STM32F10xxx microcontroller. It follows the DFU class specification defined by the USB Implementers Forum for reprogramming an application through USB. The DFU principle is particularly well suited to USB applications that need to be reprogrammed in the field.
   
 JoyStickMouse This Demo provides a description of how to use the USB on the STM32F10x devices. The STM32F10x device is enumerated as an USB Joystick Mouse, that uses the native PC Host USB HID driver. The Joystick mounted on the STM3210B-EVAL and STM3210E-EVAL boards is used to emulate the Mouse directions.
   
 Mass_Storage This Demo  gives a typical example of how to use the STM32F10xxx USB peripheral to communicate with the PC host using the bulk transfer. This demo supports the BOT (bulk only transfer) protocol and all needed SCSI (small computer system interface) commands, and is compatible with both Windows XP (SP1/SP2) and Windows 2000 (SP4).
   
 Virtual_COM_Port In modern PCs, USB is the standard communication port for almost all peripherals. However many industrial software applications still use the classic COM Port (UART). The Virtual COM Port Demo provides a simple solution to bypass this problem; it uses the USB as a COM port by affecting the legacy PC application designed for COM Port communication. This Virtual COM Port Demo provides the firmware examples for the STM32F10xxx family.

Firmware, software and documents
For complete documentation refer to www.st.com/STM32