STM32L152_USB_HID
所属分类:USB编程
开发工具:C/C++
文件大小:814KB
下载次数:63
上传日期:2015-01-20 14:05:36
上 传 者:
chaiq
说明: STM32L USB数据传输,稳定实现了与PC端的数据传输
文件列表:
STM32L152_USB_HID\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c (17273, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h (85714, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\Release_Notes.html (26297, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s (15766, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s (15503, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s (15692, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s (12376, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s (13656, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s (12765, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s (14073, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s (15955, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s (13072, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s (13160, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd_vl.s (12482, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s (9814, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld_vl.s (10562, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md.s (10269, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md_vl.s (11058, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_xl.s (13261, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_cl.s (16626, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_hd.s (16229, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_hd_vl.s (15675, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld.s (12650, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld_vl.s (12950, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md.s (12912, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md_vl.s (13601, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_xl.s (16628, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_cl.s (12604, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_hd.s (12592, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_hd_vl.s (12239, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_ld.s (9826, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_ld_vl.s (10275, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_md.s (10275, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_md_vl.s (10757, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_xl.s (13252, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h (633941, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c (36557, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.h (2085, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32L1xx\Release_Notes.html (14920, 2011-03-19)
STM32L152_USB_HID\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32L1xx\startup\arm\startup_stm32l1xx_md.s (12893, 2011-03-19)
... ...
/******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V3.3.0
* Date : 21-March-2011
* Description : Description of the USB Custom_HID Demo.
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Example description
===================
This Demo provides a description of how to use the USB-FS-Device on the STM32F10xxx
and STM32L15xxx devices.
The STM32 device is enumerated as HID compliant device, that uses the native PC
Host USB-FS-Device HID driver.
More details about this Demo implementation is given in the User manual
"UM0424 STM32F10xxx USB development kit", available for download from the ST
microcontrollers website: www.st.com/stm32
Directory contents
==================
+ \inc: contains the Demo firmware header files
+ \EWARM: contains preconfigured projects for EWARM toolchain
+ \RIDE: contains preconfigured projects for RIDE toolchain
+ \MDK-ARM: contains preconfigured projects for MDK-ARM toolchain
+ \HiTOP: contains preconfigured projects for HiTOP toolchain
+ \TrueSTUDIO: contains preconfigured projects for TrueSTUDIO toolchain
+ \src: contains the Demo firmware source files
Hardware environment
====================
This example runs on STMicroelectronics STM3210B-EVAL, STM3210C-EVAL, STM3210E-EVAL
and STM32L152-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.
- STM3210B-EVAL Set-up
- Jumper JP1 (USB disconnect) should be connected in position 2-3.
- STM3210E-EVAL Set-up
- Jumper JP14 (USB disconnect) should be connected in position 2-3.
- STM3210C-EVAL Set-up
- Jumper JP17 (I2C_SCK) should be connected.
- STM32L152-EVAL Set-up
- Jumpers JP18 and JP19 should be connected.
- Jumper JP17 should be connected in position 5-6 (PB12 connector)
- Note that JoySitck Right and Left buttons are used for this Demo.
How to use it
=============
+ EWARM
- Open the Custom_HID.eww workspace.
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210C-EVAL: to configure the project for STM32 Connectivity-Line devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM32L152-EVAL: to configure the project for STM32 Medium-Density Low-Power devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ MDK-ARM
- Open the Custom_HID.Uv2 project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210C-EVAL: to configure the project for STM32 Connectivity-Line devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM32L152-EVAL: to configure the project for STM32 Medium-Density Low-Power devices
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
+ RIDE
- Open the Custom_HID.rprj project.
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210C-EVAL: to configure the project for STM32 Connectivity-Line devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- STM3210E-EVAL_XL: to configure the project for STM32 XL-density devices
- STM32L152-EVAL: to configure the project for STM32 Medium-Density Low-Power devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
+ HiTOP
- Open the HiTOP toolchain, a "using projects in HiTOP" window appears.
- Select open an existing project.
- Browse to open the Custom_HID.htp:
- under STM32F10B_EVAL directory: to select the project for STM32 Medium-density devices.
- under STM32F10C_EVAL directory: to select the project for STM32 Connectivity-Line devices.
- under STM32F10E_EVAL directory: to select the project for STM32 High-density devices
- under STM32F10E_EVAL_XL directory: to select the project for STM32 XL-density devices
- under STM32L152_EVAL directory: to select the project for STM32 Medium-Density Low-Power devices
- "Download application" window is displayed, click "cancel".
- Rebuild all files: Project->Rebuild all
- Click on ok in the "download project" window.
- Run program: Debug->Go(F5).
+ TrueSTUDIO
- Open the TrueSTUDIO toolchain.
- Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace
directory.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to the TrueSTUDIO workspace directory and select the project:
- STM3210B-EVAL: to load the project for STM32 Medium-density devices
- STM3210C-EVAL: to load the project for STM32 Connectivity line devices
- STM3210E-EVAL: to load the project for STM32 High-density devices
- STM3210E_EVAL_XL: to load the project for STM32 XL-density devices
- STM32L152_EVAL: to load the project for STM32 Medium-Density Low-Power devices
- Under Windows->Preferences->General->Workspace->Linked Resources, add
a variable path named "CurPath" which points to the folder containing
"Libraries", "Project" and "Utilities" folders.
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Select the project in the "Project explorer" window then click
Run->Debug (F11)
NOTE:
- Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
- Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between *** and 128 Kbytes.
- High-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 256 and 512 Kbytes.
- XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 512 and 1024 Kbytes.
- Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
- Medium-density Low-Power devices are STM32L15xx microcontrollers where the flash
memory density ranges between *** and 128 Kbytes
******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE******
近期下载者:
相关文件:
收藏者: