Back to main page

STM32F105/7 USB On-The-Go (OTG) FS Library

Package description

 

Copyright 2009 STMicroelectronics

 

 

Package description

The OTG FS Library is supplied in one single zip file. The extraction of the zip file generates one folder, STM32_USB-OTG-FS_Lib_V1.0.0, which contains the following subfolders:


Libraries folder: contains STM32F105/7 USB OTG FS low level driver

  

Project folder: contains the binary image of the USB demonstrations, plus preconfigured projects for EWARM and RVMDK toolchains that can be used to program the binary images into the internal Flash memory.  The following binary images are available:

STM32F10-USBH-HID_OS: USB Host HID host demonstration
STM32F10-USBH-MSC_OS: USB Host mass storage demonstration
STM32F10-USBF-HID_OS: USB Device HID demonstration
STM32F10-USBF-MSC_OS: USB Device mass storage demonstration
STM32F10-MSC_MP3_14-7456MHz: USB Host MP3 demonstration (running with 14.7456MHz crystal)
STM32F10-MSC_MP3_25MHz: USB Host MP3 demonstration (running with 25MHz crystal)
STM32F10-MSC_WAV_14-7456MHz: USB Host Wav demonstration (running with 14.7456MHz crystal)
STM32F10-MSC_WAV_25MHz: USB Host Wav demonstration (running with 25MHz crystal)
STM32F10-USBO-DRD_OS: USB OTG dual role device demonstration

 

Utilities folder 

Binary subfolder: contains binary images of the USB demonstrations to be used with EWARM and RVMDK (provided as backup)

What do I need to start successfully?

Evaluation Board:  STMicroelectronics STM3210C-EVAL (STM32F10x Connectivity line) evaluation board.  Depending on the demonstration that you will use you will need the following accessories:

USB Flash disk*
Headphone with male jack connector
For Device demos, a Micro-B to Standard-A plug cable*
For Host demos, a Micro-A to Standard-A receptacle* (host mode is forced by software and not by USB ID line)
For OTG mode demos, a Micro-AB cable*
Note: (*) Included in the STM3210C-EVAL board package.

Tool chain:

Use your preferred toolchain. RVMDK (KEIL) or EWARMv5 (IAR).

How to proceed?

To program the binary images of the demonstration firmware into the internal Flash memory, you have to proceed as follows:

EWARMv5

- Open the Flash_Loader.eww project.
- In the workspace toolbar select the project config corresponding to the demonstration to be loaded. The name of each project config refers to the demonstration binary image.
- Load project image: Project->Download and Debug (CTRL+ D)
- Restart the EVAL board (Press B1: reset button).

 

RVMDK

- Open the Flash_Loader.uv2 project
- In the build toolbar select the project config corresponding to the demonstration to be loaded. The name of each project config refers to the demonstration binary image..
- Load project image: Debug->Start/Stop Debug Session
- Restart the EVAL board (Press B1: reset button).

 

 

For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit www.st.com/STM32