The STM32 USB-FS-Device Library provides
a free, complete firmware package that makes implementation of USB-FS-Device
interfaces in STM32 applications quick and easy, that
allows developers to painlessly develop any flavor of USB-FS-Device 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-FS-Device, and of the popular Virtual COM (CDC class) for emulation of a
classic RS232 interface on USB-FS-Device.
For more details about USB-FS-Device 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 STM32 USB-FS-Device 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-FS-Deviceon the STM32 devices. The
STM32 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 STM32 microcontrollers. It follows the DFU class specification
defined by the USB-FS-Device Implementers Forum for reprogramming an application through USB-FS-Device. The DFU principle is particularly well suited to USB-FS-Device applications that
need to be reprogrammed in the field. |
|
|
JoyStickMouse |
This
Demo provides a description of how to use the USB-FS-Device on the STM32 devices. The
STM32 device is enumerated as an USB-FS-Device Joystick Mouse, that uses the native
PC Host USB-FS-Device 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 STM32 USB-FS-Device
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-FS-Device 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-FS-Device 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 STM32 family.
|
Firmware,
software and documents |
|
|
|