Virtual_COM_Port

所属分类:单片机开发
开发工具:C++
文件大小:2975KB
下载次数:328
上传日期:2012-06-13 17:06:24
上 传 者梦回童年
说明:  stm32 虚拟串口源码,stm32f103 CPU下直接用就可以了
(of stm32 virtual serial source)

文件列表:
Virtual_COM_Port\EWARMv4\cortexm3_macro.s (10404, 2008-05-29)
Virtual_COM_Port\EWARMv4\DOUPI\Exe\VirtualCOMPort.d79 (140641, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Exe\VirtualCOMPort.sim (10147, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\cortexm3_macro.r79 (1986, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\hw_config.r79 (20012, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\main.r79 (12456, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\queue.r79 (6262, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_flash.r79 (2614, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_gpio.r79 (13215, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_it.r79 (17730, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_lib.r79 (1207, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_nvic.r79 (16402, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_rcc.r79 (18115, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_usart.r79 (18226, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\stm32f10x_vector.r79 (7840, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_core.r79 (30155, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_desc.r79 (2888, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_endp.r79 (5572, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_init.r79 (4996, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_int.r79 (8236, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_istr.r79 (5159, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_mem.r79 (3014, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_prop.r79 (17909, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_pwr.r79 (7248, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\usb_regs.r79 (24783, 2009-03-03)
Virtual_COM_Port\EWARMv4\DOUPI\Obj\VirtualCOMPort.pbd (1629, 2009-03-03)
Virtual_COM_Port\EWARMv4\lnkarm_flash.xcl (7811, 2008-05-29)
Virtual_COM_Port\EWARMv4\Release\Exe\VirtualCOMPort.hex (21255, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\cortexm3_macro.r79 (1966, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\hw_config.r79 (20649, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\main.r79 (3835, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_flash.r79 (2437, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_gpio.r79 (12660, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_it.r79 (15248, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_lib.r79 (1147, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_nvic.r79 (15339, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_rcc.r79 (17037, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_usart.r79 (17642, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\stm32f10x_vector.r79 (7780, 2008-10-31)
Virtual_COM_Port\EWARMv4\Release\Obj\usb_core.r79 (26947, 2008-10-31)
... ...

/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V2.1 * Date : 05/30/2008 * Description : Description of the USB Virtual_COM_Port Demo. ******************************************************************************** * THE PRESENT SOFTWARE 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 SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED * IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE. *******************************************************************************/ 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 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. 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 ================== + \include: contains the Demo firmware header files + \project: contains pre-configured projects for RVMDK, EWARM4, EWARM5, RIDE and HiTOP toolchains + \source: contains the Demo firmware source files Hardware environment ==================== This example runs on STMicroelectronics STM3210B-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. How to use it ============= + RVMDK - Open the VirtualCOMPort.Uv2 project - In the build toolbar select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) + EWARM4 - Open the VirtualCOMPort.eww workspace. - In the workspace toolbar select the project config: - STM3210B-EVAL: to configure the project for STM32 Medium-density devices - STM3210E-EVAL: to configure the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(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 - STM3210E-EVAL: to configure the project for STM32 High-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 - STM3210E-EVAL: to configure the project for STM32 High-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 Virtual_COM_Port.htp: - under STM32F10B_EVAL directory: to select the project for STM32 Medium-density devices. - under STM32F10E_EVAL directory: to select the project for STM32 High-density devices - Rebuild all files: Project->Rebuild all - Click on ok in the "download project" window. - Run program: Debug->Go(F5). Note: - When using High-density devices, it is mandatory to reset the target before loading the project into target. - It is recommended to run the reset script (click on TR button in the toolbar menu) after loading the project into target. NOTE: - Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. ******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者