/******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V3.2.1
* Date : 07/05/2010
* Description : Description of the USB Virtual_COM_Port 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
===================
In modern PCs, USB 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 STM32F10xxx
family.
Note that with this demo only the following configuration are supported:
-> 7bit data with parity (Even or Odd).
-> 8bit data with and without parity.
This demo is using two different methods for the IN and OUT transfers in order
to manage the data rate difference between USB and USART buses:
- OUT transfers (from Host to Device):
When a packet is received from the host on the OUT pipe (EP3), the Endpoint
callback function is called when the transfer is complete and all the received
data are then sent through USART peripehral in polling mode. This allows all
incoming OUT packets to be NAKed till the current packet is completely transferred
through the USART interface.
- IN transfers (from Device to Host):
For IN data, a large circular buffer is used. USART and USB respectively write
and read to/from this buffer independently.
USART RXNE interrupt is used to write data into the buffer. This interrupt
has the highest priority, which allows to avoid overrun and data loss conditions.
USB IN endpoint (EP1) is written with the received data into the SOF interrupt
callback.
Into this callback, a frame counter counts the number of passed frames since
the last time IN endpoint was written. This allows to write IN endpoint at
seperated frames when enough data are present in the data buffer.
To modify the number of frame between IN write operations, modify the value
of the define "VCOMPORT_IN_FRAME_INTERVAL" in "usb_endp.c" file.
To allow high data rate performance, SOF interrupt is managed with highest
priority (thus SOF interrupt is checked before all other interrupts).
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
+ \EWARMv5: contains pre-configured projects for EWARM5 toolchain
+ \RIDE: contains pre-configured projects for RIDE toolchain
+ \MDK-ARM: contains pre-configured projects for MDK-ARM toolchain
+ \HiTOP: contains pre-configured projects for HiTOP toolchain
+ \TrueSTUDIO: contains pre-configured projects for TrueSTUDIO toolchain
+ \src: contains the Demo firmware source files
Hardware environment
====================
This example runs on STMicroelectronics STM3210B-EVAL, STM3210C-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.
- STM3210B-EVAL Set-up
- Jumper JP1 (USB disconnect) should be connected in position 2-3.
- Connect a null-modem female/female RS232 cable between the DB9 connector
CN6 and Host (PC) serial port.
- STM3210E-EVAL Set-up
- Jumper JP14 (USB disconnect) should be connected in position 2-3.
- Connect a null-modem female/female RS232 cable between the DB9 connector
CN12 and Host (PC) serial port.
- STM3210C-EVAL Set-up
- Jumper JP17 (I2C_SCK) should be connected.
- Jumpers JP19 and JP18 should be not connected.
- Connect a null-modem female/female RS232 cable between the DB9 connector
CN6 and Host (PC) serial port.
How to use it
=============
+ MDK-ARM
- Open the VirtualCOMPort.uvproj 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
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
+ EWARM5
- Open the VirtualCOMPort.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
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ RIDE
- Open the VirtualCOMPort.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
- 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 VirtualCOMPort.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
- "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 devic
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32F107USB转串口透传源代码 (214个子文件)
hextobin.bat 2KB
TrueSTUDIO_elf2bin.bat 1KB
axftobin.bat 1KB
logo.bmp 7KB
stm32f10x_tim.c 105KB
stm32_eval_sdio_sd.c 90KB
stm32f10x_flash.c 62KB
stm3210c_eval_lcd.c 57KB
stm32100b_eval_lcd.c 54KB
stm3210b_eval_lcd.c 54KB
stm32f10x_rcc.c 50KB
stm32100b_eval_cec.c 48KB
fonts.c 46KB
stm32f10x_adc.c 46KB
stm3210c_eval_ioe.c 45KB
stm32f10x_i2c.c 43KB
stm3210e_eval_lcd.c 40KB
stm32f10x_usart.c 37KB
otgd_fs_cal.c 36KB
stm32f10x_fsmc.c 34KB
usb_core.c 32KB
system_stm32f10x.c 31KB
stm32f10x_can.c 31KB
stm32f10x_spi.c 29KB
usb_regs.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_dma.c 27KB
stm32_eval_spi_sd.c 25KB
stm32_eval_i2c_ee.c 23KB
stm3210e_eval.c 22KB
otgd_fs_int.c 22KB
stm32100b_eval.c 21KB
stm3210b_eval.c 21KB
stm3210c_eval.c 20KB
stm32_eval_i2c_tsensor.c 19KB
stm32f10x_gpio.c 19KB
stm32f10x_dac.c 19KB
stm3210e_eval_fsmc_nand.c 18KB
hw_config.c 17KB
core_cm3.c 17KB
stm32_eval_spi_flash.c 16KB
stm3210e_eval_fsmc_nor.c 14KB
usb_prop.c 14KB
otgd_fs_dev.c 13KB
otgd_fs_pcd.c 12KB
usb_istr.c 12KB
stm32f10x_it.c 9KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
usb_pwr.c 8KB
stm3210e_eval_fsmc_sram.c 7KB
usb_desc.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
usb_int.c 6KB
stm32f10x_wwdg.c 6KB
Printf.c 5KB
stm32f10x_dbgmcu.c 5KB
usb_sil.c 5KB
usb_endp.c 5KB
stm32f10x_iwdg.c 5KB
main.c 4KB
usb_mem.c 3KB
stm32f10x_crc.c 3KB
usb_init.c 3KB
stm32_eval.c 3KB
VirtualCOMPort_USB转uart.dep 67KB
VirtualCOMPort_STM3210B-EVAL.dep 26KB
STM3210E-EVAL_XL_MassStorage.dfu 16KB
STM3210E-EVAL_MassStorage.dfu 16KB
STM3210C-EVAL_MassStorage.dfu 13KB
STM3210C-EVAL_AudioStreaming_14MHz.dfu 12KB
STM3210C-EVAL_AudioStreaming_25MHz.dfu 12KB
STM3210C-EVAL_JoyStickMouse.dfu 12KB
STM3210C-EVAL_CustomHID.dfu 11KB
STM3210C-EVAL_VirtualCOMPort.dfu 10KB
STM3210B-EVAL_MassStorage.dfu 10KB
STM3210E-EVAL_XL_AudioSpeaker.dfu 9KB
STM3210E-EVAL_AudioSpeaker.dfu 9KB
STM3210E-EVAL_XL_CustomHID.dfu 9KB
STM3210E-EVAL_CustomHID.dfu 9KB
STM3210B-EVAL_CustomHID.dfu 9KB
STM3210E-EVAL_JoystickMouse.dfu 8KB
STM3210E-EVAL_XL_JoyStickMouse.dfu 8KB
STM3210E-EVAL_XL_VirtualCOMPort.dfu 8KB
STM3210E-EVAL_VirtualCOMPort.dfu 8KB
STM3210B-EVAL_VirtualCOMPort.dfu 8KB
STM3210B-EVAL_JoystickMouse.dfu 7KB
STM3210B-EVAL_AudioSpeaker.dfu 7KB
cygwin1.dll 1.13MB
License.doc 39KB
arm-elf-objcopy.exe 512KB
hex2bin.exe 8KB
ar_s.gif 879B
bulb16.gif 857B
stm32f10x.h 607KB
core_cm3.h 84KB
stm32f10x_tim.h 49KB
usb_regs.h 30KB
共 214 条
- 1
- 2
- 3
JREEY_CHANG
- 粉丝: 2
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 探索tecreate:软件开发的未来之星.zip
- 打标机项目C#源码连接扫码
- 基于SSM的房屋租赁系统的设计与实现
- xyctf:从入门到精通的实用指南.zip
- mmqrcode1714153659780.png
- Screenshot_2024-04-27-06-08-58-486_com.baidu.xin.aiqicha.jpg
- 基于Javaweb+Tomcat+MySQL的大学生公寓管理系统+sql文件.zip
- 实训作业基于javaweb的订单管理系统源码+数据库+实训报告.zip
- 多机调度问题贪心算法基于最小堆和贪心算法求解多机调度问题.zip
- 基于同态加密技术的匿名电子投票系统源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页