您好,欢迎光临本网站![请登录][注册会员]  
文件名称: STM32 USB-FS-Device development kit
  所属分类: 硬件开发
  开发工具:
  文件大小: 1mb
  下载次数: 0
  上传时间: 2019-03-02
  提 供 者: wuhanc*******
 详细说明:The STM32 USB-FS-Device development kit is a complete firmware and software package including examples and demos for all USB transfer types (control, interrupt, bulk and isochronous). The aim of the STM32 USB-FS-Device development kit is to use the STM32 USB-FSDevice library with at least one firmwaUM0424 Contents 5 Custom hid demo 30 5.1 General description 30 5.2 Descriptor topology 30 5.3 Custom HID implementation 31 5.3.1 LED control 31 5.3.2 Push-button state report 32 5.3.3 ADC-converted data transfer 32 Mass storage demo.,,....,....,.,..... 33 6. 1 General description 33 6.2 Mass storage demo overview 33 6.3 Mass storage protocol 34 6.3.1 Bulk-only transfer(BOT) ..34 6.3.2 Small computer system interface(SCSI) ....38 6. 4 Mass storage demo implementations 6. 4. 1 Hardware configuration interface ,, 39 6. 4.2 Endpoint configurations and data management 6.4.3 Class-specific requests ..,..41 6.4.4 Standard request requirements 6.4.5 bot state machine 42 6.4.6 SCSI protocol implementation ....43 6.4.7 Memory management 44 6.4.8 Medium access management 44 6.5 How to customize the mass storage demo 46 Virtual COM port demo 49 7.1 General description 49 7.2 Virtual COM port demo proposal 49 7.3 Software driver installation 50 7. 4 Implementati 5 74.1 Hardware implementation 7.4.2 Firmware implementation 51 8 VirtualComport_ Loopback 53 8.1 General description 53 8.2 Demo overview 53 Doc D13465 Rev 12 3/85 Contents UM0424 8.3 Transferring data 54 8.3.1 Sending data from device to host 8.3.2 Receiving data from host to device 54 8.4 Running the demo 54 USB voice speaker demo .................. 55 9.1 General description 55 9.2 sychronous transfer overview ,,,55 9.3 Audio device class overview 56 9. 4 STM32 USB audio speaker demo 57 9. 4.1 General characteristics 58 9.4.2 Implementation 59 Device firmware upgrade 67 10.1 General description 67 10.2 DFU extension protocol 68 10.21 Introduction 68 10.2.2 Phases ..68 10.2.3 Requests .69 10.3 DFU mode selection 69 10.3.1 Run-time descriptor set 69 10.3.2 DFU mode descriptor set 70 10.4 Reconfiguration phase 74 10.5 Transfer phase 74 105 Requests 74 10.5.2 Special command/protocol descriptions ..,,75 10.5.3 DFU state diagram 10.5.4 Downloading and uploading ·: ,,,,77 10.5.5 Manifestation phase 10.6 STM32 DFU implementation 78 10.6.1 Supported memories 78 10.6.2 DFU mode entry mechanism .,,,,,78 10.6.3 DFU firmware architecture 10.6.4 Available dFU image for the stM32 10.6.5 Creating a DFU im 4/85 Doc D 13465 Rev 12 UM0424 Contents Composite example 80 11.1 General description 80 11.2 Architecture 81 11.3 USB device descriptor 81 11.4 Running the demo 82 12 Revision history 83 Doc D13465 Rev 12 5/85 List of tables UM0424 List of tables Table 1. Applicable products Table 2 Reference manual name related to each stm32 device Table 3 User manual name related to each evaluation board 8 Table 4 USB-FS Device peripheral interface modules 12 Table 5 Common register functions 12 Table 6. USB-FS-Device Driver medium layer modules 17 Table 8 Power management functions 25 Table 9. Eval board power consumption related jumpers. ..,,.28 Table 10. Key push button assignment 28 Table 11. Eval board memory support 34 Table 12. CBW packet fields 35 Table 13. Csw packet fields 36 Table 14, Command block status values 36 Table 15. scsI command set ..38 Table 16 Device descriptor ,,,,,,,,,46 Table 17. Configuration descriptor Table 18. Interface descriptors .....47 Table 19. Endpoint descriptors ...48 Table 20. Usart connector number for each evaluation board Table 21. Device descriptors 62 Table 22. Configuration descriptors 62 Table 23. Interface descriptors 62 Table 24. Endpoint descriptors ..65 Table 25. Flash memory used by DFU Table 26. Summary of DFU class-specific requests 69 Table 27. dFU mode device descriptor 70 Table 28. DFU mode interface descriptor Table 29. DFU functional descriptor .73 Table 30. Summary of dFU upgrade/upload requests .74 Table 31. Special command descriptions 75 Table 32. Document revision history 83 6/85 Doc D 13465 Rev 12 UM0424 List of fiqures List of figures Figure 1. USB application hierarchy 1国 10 Figure 2. USB-FS-Device library package organization Figure 3. Format of the four data bytes ..27 Figure 4. Custom HID topology 31 Figure 5. Data OUT format 32 Figure 6. Data IN Format 32 Figure 7. New removable disk in Windows 33 Figure 8. BOT state machine 37 Figure 9. Hardware and firmware interaction diagram .39 Figure 10. Medium access layer 45 Figure 11. NAND write operation Figure 12. Virtual COM port demo as USB-to-USART bridge 49 Figure 13. Communication example .50 Figure 14. Device manager window .,,.50 Figure 15. VirtualComport Loopback application overview :. .53 Figure 16. Window HyperTerminal message display 54 Figure 17. Isochronous oUT transfer .....56 Figure 18. STM32 USB-FS Device audio speaker demo data flow 57 Figure 19. Audio playback flow 58 Figure 20. Hardware and firmware interaction diagram .60 Figure 21. Interface state transition diagram 76 Figure 22. DFU firmware architecture 79 Figure 23. USB composite device with two interface functions 80 Figure 24. HID MSC composite architecture 81 Figure 25. USB device descriptor 81 Figure 26. STM32 device enumerated as composite 82 Doc D13465 Rev 12 7/85 Related documents UM0424 Related documents For more information on using the microcontroller devices listed in Table 1: Applicable roducts, please refer to the reference manuals below Table 2. Reference manual name related to each stm32 device Device name Reference manual STM32L151 xx and STm32L 152XX RM0038 STM32F102xx and STM32F103xX RM0008 STM32F302xx and STM32F303XX RM0316 STM32F372xX and STM32F373xX RM0313 The STM32 USB-FS-Device library is designed for use with the following evaluation boards Table 3. User manual name related to each evaluation board Eval board name User manual Device name STM3210E-EVAL UM0488 STM32F103ZGT6 STM3210B-EVAL UM0426 STM32F103VBT6 STM32L152-EVAL UM1018 STM32L152VBT6 STM32L152D-EVAL UM1521 STM32L152ZDT6 STM32373C-EVAL UM1564 STM32F373VCT6 STM32303C-EVAL UM1567 STM32F303VCT6 8/85 Doc ID 13465 Rev 12 UM0424 STM32 microcontroller family overview STM32 microcontroller family overview In this document, STM32 refers to the following devices LOW-density devices: STM32F101XX, STM32F102XX and STM32F103XX microcontrollers where the Flash memory density ranges between 16 and 32 kbytes Medium-density devices: STM32F101XX, STM32F102XX and STM32F103X microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes High-density devices: STM32F101 xx and STM32F103XX microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes XL-density devices: STM32F101xx and STM32F103xX microcontrollers where the Flash memory density ranges between 512 and 1024 Kbytes e Medium-density Low-Power devices: STM32L15xX microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes Low Power Medium-density plus devices STM32L15Xx and STM32L162XX microcontrollers where the Flash memory density is 256 Kbytes Low Power High-density devices: STM32L15XX and STM32L162Xx microcontrollers where the Flash memory density is 384 Kbytes STM32F3 Series: STM32F30xx microcontrollers where the Flash memory density ranges between 128 and 256 Kbytes STM32F37Xx microcontrollers where the Flash memory density ranges between 64 and 256 Kbytes Doc ID 13465 Rev 12 9/85 STM32 USB-FS-Device firmware library UM0424 3 STM32 USB-FS-Device firmware library This section describes the firmware interface(called USB-FS-Device Library)used to manage the STM32 USB 2.0 full-speed device peripheral. In the rest of the document, it will be referred to as USB-FS_ Device peripheral The main purpose of this firmware library is to provide resources to ease the development of applications for each USB transfer type using the USB-Fs Device peripheral in the STM32 microcontroller families USB application hierarchy Figure 1 shows the interaction between the different components of a typical USB application and the USB-FS Device library Figure 1. USB application hierarchy User Application STM32 USB-FS-Device Lib usb pwr usb conf b desc STM32xxX Std Periph Driver sb istr usb prop usb endp CMSIS usb core/usb init usb sil 方 Do3s22 USB-FS peripheral interface usb int uso regs usb mem USB-Fs Device peripheral Hardware(STM32+ Board 10/85 Doc ID 13465 Rev 12
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 输入关键字,在本站1000多万海量源码库中尽情搜索: