IAP

所属分类:处理器开发
开发工具:C/C++
文件大小:218KB
下载次数:9
上传日期:2015-08-31 08:56:08
上 传 者LURENWXQ
说明:  STM32 IAP升级程序,很方便,希望对大家有帮助
(IAP STM32 upgrade process, it is convenient, we want to help)

文件列表:
IAP (0, 2013-06-21)
IAP\EWARMv5 (0, 2013-06-21)
IAP\EWARMv5\IAP.dep (13733, 2009-06-30)
IAP\EWARMv5\IAP.ewd (35670, 2009-04-25)
IAP\EWARMv5\IAP.ewp (45866, 2009-06-22)
IAP\EWARMv5\IAP.eww (157, 2009-04-25)
IAP\EWARMv5\STM3210E-EVAL (0, 2013-10-31)
IAP\EWARMv5\STM3210E-EVAL\Exe (0, 2013-06-21)
IAP\EWARMv5\STM3210E-EVAL\Exe\IAP.bin (5485, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Exe\IAP.out (150264, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Exe\IAP.sim (5528, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Exe\IAP.sim._1 (5528, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj (0, 2013-06-21)
IAP\EWARMv5\STM3210E-EVAL\Obj\common.o (29008, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\common.pbi (698, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\core_cm3.o (18516, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\core_cm3.pbi (720, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\download.o (6832, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\download.pbi (702, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\main.o (11836, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\main.pbi (694, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\startup_stm32f10x_hd.o (41720, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_flash.o (57084, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_flash.pbi (766, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_gpio.o (34396, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_gpio.pbi (764, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_it.o (14300, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_rcc.o (56252, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_rcc.pbi (762, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_usart.o (48808, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_usart.pbi (766, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_wwdg.o (16704, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\stm32f10x_wwdg.pbi (764, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\system_stm32f10x.o (8676, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\system_stm32f10x.pbi (736, 2009-06-30)
IAP\EWARMv5\STM3210E-EVAL\Obj\ymodem.o (18404, 2009-06-30)
IAP\EWARMv5\settings (0, 2013-06-21)
IAP\EWARMv5\settings\IAP.cspy.bat (2579, 2009-06-30)
IAP\EWARMv5\settings\IAP.dbgdt (4474, 2009-06-22)
IAP\EWARMv5\settings\IAP.dni (537, 2009-06-30)
... ...

/** @page IAP AN2557 IAP Readme file @verbatim ******************** (C) COPYRIGHT 2009 STMicroelectronics ******************* * @file IAP/readme.txt * @author MCD Application Team * @version V3.0.0 * @date 04/27/2009 * @brief Description of the AN2557 "STM32F10xxx in-application * programming using the USART (IAP)". ****************************************************************************** * 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. ****************************************************************************** @endverbatim @par Description This directory contains a set of sources files and pre-configured projects that describes how to build an application to be loaded into Flash memory using In-Application Programming (IAP, through USART1). @par Directory contents - "IAP\inc": contains the IAP firmware header files - IAP/inc/common.h This file provides all the headers of the common functions. - IAP/inc/ymodem.h This file provides all the software function headers of the ymodem.c file. - IAP/inc/platform_config.h Evaluation board specific configuration file - IAP/inc/stm32f10x_conf.h Library Configuration file - IAP/inc/stm32f10x_it.h Header for stm32f10x_it.c - "IAP\RVMDK": contains pre-configured project for RVMDK toolchain - "IAP\RIDE": contains pre-configured project for RIDE toolchain - "IAP\EWARMv5": contains pre-configured project for EWARM5 toolchain - "IAP\src": contains the IAP firmware source files - IAP/src/main.c Main program - IAP/src/stm32f10x_it.c Interrupt handlers - IAP/src/download.c This file provides the software which allows to download an image to internal Flash. - IAP/src/common.c This file provides all the common functions. - IAP/src/ymodem.c This file provides all the software functions related to the ymodem protocol. @par Hardware and Software environment - This example runs on STM32F10x High-Density, STM32F10x Medium-Density and STM32F10x Low-Density Devices. - This example has been tested with STMicroelectronics STM3210E-EVAL (STM32F10x High-Density) and STM3210B-EVAL (STM32F10x Medium-Density) evaluation boards and can be easily tailored to any other supported device and development board. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. - STM3210E-EVAL Set-up - Connect a null-modem female/female RS232 cable between the DB9 connector CN12 (USART1) and PC serial port. - STM3210B-EVAL Set-up - Connect a null-modem female/female RS232 cable between the DB9 connector CN6 (USART1) and PC serial port. - Hyperterminal configuration: - Word Length = 8 Bits - One Stop Bit - No parity - BaudRate = 115200 baud - flow control: None @par How to use it ? In order to make the program work, you must do the following: 1. Generate a binary image for the pogram provided in the "Project\binary_template" directory. 2. Program the internal Flash with the IAP (see below) 3. Open a HyperTerminal window using the settings already defined in section "Hardware environment" 4. To run the IAP driver, keep the push-button (Key push-button on STM3210BEVAL or STM3210E-EVAL board) pressed at Reset. The IAP main menu is then displayed on the HyperTerminal window. 5. To download an application, press 1 and use the Ymodem protocol In order to load the IAP code, you have do the following: - EWARMv5: - Open the IAP.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 IAP.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) - RVMDK - Open the IAP.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) @note - Low-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - 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. *

© COPYRIGHT 2009 STMicroelectronics

*/

近期下载者

相关文件


收藏者