/**
@page USBH_MSC USB Host MSC example
@verbatim
******************** (C) COPYRIGHT 2012 STMicroelectronics *******************
* @file readme.txt
* @author MCD Application Team
* @version V2.1.0
* @date 19-March-2012
* @brief Description of the USB Host MSC example
******************************************************************************
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the Licens
*
******************************************************************************
@endverbatim
@par Example Description
This example provides a description of how to use the USB OTG host peripheral
on the STM32F2xx, STM32F4xx and STM32F105/7 devices.
The STM32 behave as a mass storage Host that can enumerate, show content and display
the supported BMP image in the attached USB flash disk.
When the user press the user key button [B4], the application explore the USB flash
disk content and display it on the LCD. The user has to press the user key button
to display the whole disk flash (recursion level 2).
Once the entire disk flash content is explored, the user has to press the user key
button to write a small file (less to 1 KB) on the disk.
After writing the file to the disk, the user can press the user key button and start
the Image slide show (BMP file located in the USB Disk root).
Once all the images are displayed, the application explores again the disk flash.
@note Only the BMP files with the following format are supported :
- width : 320
- Height : 240
- BPP : 16
- Compression : RGB bitmap with RGB masks
To use the Image browser, copy the BMP files from "\Utilities\Binary\Media"
to the root of the USB flash disk to be used.
This example works
- in high speed (HS) when the STM322xG-EVAL or the STM324xG-EVAL board and the
USB OTG HS peripheral are used
- in full speed (FS) when the STM322xG-EVAL or the STM324xG-EVAL board and the
USB OTG FS peripheral are used, or when using the STM3210C-EVAL board.
@par Hardware and Software environment
- This example runs on STM32F105/7 Connectivity line, STM32F2xx and STM32F4xx devices.
- This example has been tested with STM3210C-EVAL RevB (STM32F105/7 devices),
STM322xG-EVAL RevB (STM32F2xx) and STM324xG-EVAL RevB (STM32F4xx)
- STM3210C-EVAL Set-up
- Use CN2 connector to connect the board to a PC host or USB device
- STM322xG-EVAL Set-up
- Use CN8 connector to connect the board to a PC host when using USB OTG FS peripheral.
- Use CN9 connector to connect the board to a PC host when using USB OTG HS peripheral.
- STM324xG-EVAL Set-up
- Use CN8 connector to connect the board to a PC host when using USB OTG FS peripheral.
- Use CN9 connector to connect the board to a PC host when using USB OTG HS peripheral.
@par How to use it ?
+ EWARM
- Open the USBH_MSC.eww workspace.
- In the workspace toolbar select the project config:
- STM322xG-EVAL_USBH-HS: to configure the project for STM32F2xx devices and use USB OTG HS peripheral
- STM322xG-EVAL_USBH-FS: to configure the project for STM32F2xx devices and use USB OTG FS peripheral
- STM324xG-EVAL_USBH-HS: to configure the project for STM32F4xx devices and use USB OTG HS peripheral
- STM324xG-EVAL_USBH-FS: to configure the project for STM32F4xx devices and use USB OTG FS peripheral
- STM3210C-EVAL_USBH-FS: to configure the project for STM32F105/7 devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ MDK-ARM
- Open the USBH_MSC.uvproj project
- In the build toolbar select the project config:
- STM322xG-EVAL_USBH-HS: to configure the project for STM32F2xx devices and use USB OTG HS peripheral
- STM322xG-EVAL_USBH-FS: to configure the project for STM32F2xx devices and use USB OTG FS peripheral
- STM324xG-EVAL_USBH-HS: to configure the project for STM32F4xx devices and use USB OTG HS peripheral
- STM324xG-EVAL_USBH-FS: to configure the project for STM32F4xx devices and use USB OTG FS peripheral
- STM3210C-EVAL_USBH-FS: to configure the project for STM32F105/7 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 USBH_MSC.rprj project.
- In the configuration toolbar(Project->properties) select the project config:
- STM322xG-EVAL_USBH-HS: to configure the project for STM32F2xx devices and use USB OTG HS peripheral
- STM322xG-EVAL_USBH-FS: to configure the project for STM32F2xx devices and use USB OTG FS peripheral
- STM324xG-EVAL_USBH-HS: to configure the project for STM32F4xx devices and use USB OTG HS peripheral
- STM324xG-EVAL_USBH-FS: to configure the project for STM32F4xx devices and use USB OTG FS peripheral
- STM3210C-EVAL_USBH-FS: to configure the project for STM32F105/7 devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
+ TASKING
- Open TASKING toolchain.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to TASKING workspace directory and select the project:
- STM322xG-EVAL_USBH-HS: to configure the project for STM32F2xx devices and use USB OTG HS peripheral
- STM322xG-EVAL_USBH-FS: to configure the project for STM32F2xx devices and use USB OTG FS peripheral
- STM324xG-EVAL_USBH-HS: to configure the project for STM32F4xx devices and use USB OTG HS peripheral
- STM324xG-EVAL_USBH-FS: to configure the project for STM32F4xx devices and use USB OTG FS peripheral
- STM3210C-EVAL_USBH-FS: to configure the project for STM32F105/7 devices
- 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)
+ 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:
- STM322xG-EVAL_USBH-HS: to configure the project for STM32F2xx devices and use USB OTG HS peripheral
- STM322xG-EVAL_USBH-FS: to configure the project for STM32F2xx devices and use USB OTG FS peripheral
- STM324xG-EVAL_USBH-HS: to configure the project for STM32F4xx devices and use USB OTG HS peripheral
- STM324xG-EVAL_USBH-FS: to configure the project for STM32F4xx devices and use USB OTG FS peripheral
- STM3210C-EVAL_USBH-FS: to configure the project for STM32F105/7 devices
- 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 Known Limitations
This example retargets the
没有合适的资源?快使用搜索试试~ 我知道了~
STM32F407 USB主机和从机都能收发数据
共471个文件
h:213个
c:177个
s:50个
3星 · 超过75%的资源 需积分: 46 159 下载量 64 浏览量
2017-06-05
16:29:53
上传
评论 10
收藏 2.3MB ZIP 举报
温馨提示
STM32F407 USB主机和从机都能收发数据
资源推荐
资源详情
资源评论
收起资源包目录
STM32F407 USB主机和从机都能收发数据 (471个子文件)
Project.uvguix.Administrator 70KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
keilkilll.bat 399B
keilkilll.bat 399B
Clean.bat 333B
picture.bmp 225KB
STM3210E-1.bmp 150KB
STM3210E-2.bmp 150KB
STM32IMAGE.bmp 150KB
STLOGOIMAGE.bmp 150KB
stm32f4xx_rcc.c 124KB
stm32f4xx_tim.c 123KB
stm32f4xx_tim.c 122KB
stm32f4xx_rtc.c 102KB
stm32f4xx_rtc.c 100KB
ff.c 98KB
stm324xg_eval_sdio_sd.c 87KB
stm32f4xx_rcc.c 73KB
stm32f4xx_adc.c 67KB
stm32f4xx_adc.c 67KB
stm32f4xx_flash.c 62KB
stm32f4xx_fmc.c 61KB
stm32f4xx_dsi.c 59KB
usb_core.c 59KB
stm32f4xx_can.c 59KB
stm32f4xx_can.c 59KB
usb_core.c 58KB
stm32f4xx_fmpi2c.c 57KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_usart.c 57KB
stm32f4xx_usart.c 55KB
stm32f4xx_i2c.c 53KB
system_stm32f4xx.c 53KB
system_stm32f4xx.c 53KB
stm32f4xx_dma.c 52KB
stm32f4xx_i2c.c 52KB
stm32f4xx_dma.c 51KB
stm32f4xx_spi.c 51KB
stm32f4xx_spi.c 51KB
fonts.c 46KB
stm32f4xx_sai.c 46KB
stm32f4xx_fsmc.c 45KB
stm32f4xx_pwr.c 42KB
stm32f4xx_fsmc.c 41KB
stm32f4xx_sdio.c 39KB
stm32f4xx_ltdc.c 39KB
stm32f4xx_sdio.c 38KB
stm324xg_eval_lcd.c 37KB
stm32f4xx_flash.c 37KB
system_stm32f10x.c 36KB
stm32f4xx_cryp.c 35KB
stm32f4xx_lptim.c 34KB
stm32f4xx_cryp.c 32KB
stm32f4xx_qspi.c 31KB
usbd_dfu_core.c 31KB
usbd_dfu_core.c 31KB
ccsbcs.c 29KB
usbh_core.c 27KB
stm32f4xx_dma2d.c 27KB
stm32f4xx_dac.c 26KB
stm32f4xx_dac.c 26KB
stm32f4xx_hash.c 26KB
stm324xg_eval.c 26KB
stm32f4xx_hash.c 26KB
usbd_cdc_core.c 25KB
usb_dcd_int.c 25KB
stm32f4xx_pwr.c 25KB
stm32f4xx_gpio.c 25KB
stm32f4xx_cec.c 24KB
usbd_audio_core.c 24KB
usbd_audio_core.c 23KB
usbh_core.c 23KB
usb_hcd_int.c 23KB
usb_hcd_int.c 23KB
usb_dcd_int.c 22KB
usbh_stdreq.c 22KB
system_stm32f4xx.c 21KB
system_stm32f4xx.c 21KB
stm32f4xx_cryp_aes.c 21KB
usbh_msc_bot.c 21KB
usbd_req.c 21KB
usbh_msc_scsi.c 21KB
stm32f4xx_gpio.c 21KB
usbh_msc_scsi.c 21KB
system_stm32f2xx.c 20KB
usbd_req.c 20KB
usbh_hid_core.c 20KB
usbh_stdreq.c 20KB
usbh_msc_bot.c 20KB
usbd_cdc_core.c 19KB
usbh_hid_core.c 19KB
stm32f4xx_dcmi.c 19KB
usbh_usr.c 19KB
stm32f4xx_dcmi.c 18KB
usbh_cdc_core.c 18KB
stm32f4xx_spdifrx.c 17KB
usbd_msc_scsi.c 17KB
共 471 条
- 1
- 2
- 3
- 4
- 5
资源评论
- 韩华辉2019-03-09下来看看学习学习13759179822019-03-09里面有2个程序,需在两块F407开发板上验证,一块做主机,另一块在从机,实现从机的枚举过程,主机请求数据从机应答等功能
- 孙明杰2018-10-31没有HID,没有双向通讯,没有HOST发送,没有,,,,,,13759179822019-03-09USB并没有所谓的自主双向通信,从机作应答而已。 可以用的,USB很复杂,你不懂用而已。里面有2个程序,我分别在两块F407开发板上验证过,一块做主机,另一块在从机,实现从机的枚举过程,主机请求数据从机应对等功能。
- Bruno_332017-07-26不可以用 别下13759179822019-03-09可以用的,USB很复杂,你不懂用而已。里面有2个程序,我分别在两块F407开发板上验证过,一块做主机,另一块在从机,实现从机的枚举过程,主机请求数据从机应对等功能。
1375917982
- 粉丝: 7
- 资源: 80
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功