/**
@page binary_template AN2557 Binary Template Readme file
@verbatim
******************** (C) COPYRIGHT 2010 STMicroelectronics *******************
* @file IAP/binary_template/readme.txt
* @author MCD Application Team
* @version V3.2.0
* @date 04/23/2010
* @brief Description of the binary_template directory.
******************************************************************************
* 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 that build the application to be
loaded into Flash memory using In-Application Programming (IAP, through USART).
To build such application, some special configuration has to be peformed:
1. Set the program load address at 0x08002000, using your toolchain linker file
2. Relocate the vector table at address 0x08002000, using the "NVIC_SetVectorTable"
function.
The SysTick example provided within the STM32F10x Standard Peripherals library
examples is used as illustration.
This example configures the SysTick to generate a time base equal to 1 ms.
The system clock is set to the maximum system frequency, the SysTick is clocked by
the AHB clock (HCLK). A "Delay" function is implemented based on the SysTick
end-of-count event.
Four LEDs are toggled with a timing defined by the Delay function.
@par Directory contents
- "IAP\binary_template\EWARMv5": This folder contains a pre-configured project file
that produces a binary image of SysTick example to
be loaded with IAP.
- "IAP\binary_template\RIDE": This folder contains a pre-configured project file
that produces a binary image of SysTick example to be
loaded with IAP.
- "IAP\binary_template\MDK-ARM": This folder contains a pre-configured project file
that produces a binary image of SysTick example to be
loaded with IAP.
- "IAP\binary_template\HiTOP": This folder contains a pre-configured project file
that produces a binary image of SysTick example to be
loaded with IAP.
- "IAP\binary_template\TrueSTUDIO": This folder contains a pre-configured project file
that produces a binary image of SysTick example to be
loaded with IAP.
- "IAP\binary_template\inc": contains the binary_template firmware header files
- IAP/binary_template/inc/stm32f10x_conf.h Library Configuration file
- IAP/binary_template/inc/stm32f10x_it.h Header for stm32f10x_it.c
- IAP/binary_template/inc/main.h Header for main.c
- "IAP\binary_template\src": contains the binary_template firmware source files
- IAP/binary_template/src/main.c Main program
- IAP/binary_template/src/stm32f10x_it.c Interrupt handlers
@par Hardware and Software environment
- This example runs on STM32F10x Connectivity line, High-Density, Medium-Density,
XL-Density, Medium-Density Value line, Low-Density and Low-Density Value line Devices.
- This example has been tested with STMicroelectronics STM32100B-EVAL (Medium-Density
Value line), STM3210C-EVAL (Connectivity line), STM3210E-EVAL (High-Density and
XL-Density) and STM3210B-EVAL (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 stm32_eval.h file (under Utilities\STM32_EVAL)
- STM32100B-EVAL Set-up
- Use LED1, LED2, LED3 and LED4 connected respectively to PC.06, PC.07, PC.08
and PC.09 pins
- STM3210C-EVAL Set-up
- Use LED1, LED2, LED3 and LED4 connected respectively to PD.07, PD.13, PF.03
and PD.04 pins
- STM3210E-EVAL Set-up
- Use LED1, LED2, LED3 and LED4 connected respectively to PF.06, PF0.7, PF.08
and PF.09 pins
- STM3210B-EVAL Set-up
- Use LED1, LED2, LED3 and LED4 connected respectively to PC.06, PC.07, PC.08
and PC.09 pins
@par How to use it ?
In order to load the SysTick example with the IAP, you must do the following:
- EWARMv5 (v5.41 and later):
- Open the SysTick.eww workspace
- In the workspace toolbar select the project config:
- STM32F10X_XL: to configure the project for STM32 XL-density devices
- STM32100B-EVAL: to configure the project for STM32 Medium-Density Value line devices
- STM3210C-EVAL: to configure the project for STM32 Connectivity line devices
- 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
- A binary file "SysTick.bin" will be generated under "STM32F10X_XL\Exe",
"STM32100B-EVAL\Exe", "STM3210C-EVAL\Exe", "STM3210E-EVAL\Exe" or "STM3210B-EVAL\Exe"
folder depending on the selected configuration
- Finally load this image with IAP application
- RIDE:
- Open the SysTick.rprj project
- In the configuration toolbar(Project->properties) select the project config:
- STM32F10X_XL: to configure the project for STM32 XL-density devices
- STM32100B-EVAL: to configure the project for STM32 Medium-Density Value line devices
- STM3210C-EVAL: to configure the project for STM32 Connectivity line devices
- 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
- Go to "Utilities\Binary" directory and run "hextobin.bat"
- A binary file "SysTick.bin" will be generated under "\STM32F10X_XL", "\STM32100B-EVAL",
"\STM32100B-EVAL", "\STM3210C-EVAL", \STM3210E-EVAL" or "\STM3210B-EVAL" folder depending on
the selected configuration
- Finally load this image with IAP application
- MDK-ARM:
- Open the SysTick.uvproj project
- In the build toolbar select the project config:
- STM32F10X_XL: to configure the project for STM32 XL-density devices
- STM32100B-EVAL: to configure the project for STM32 Medium-Density Value line devices
- STM3210C-EVAL: to configure the project for STM32 Connectivity line devices
- 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
- Go to "Utilities\Binary" directory and run "axftobin.bat"
- A binary file "STM32F10X_XL_SysTick.bin", "STM32100B-EVAL_SysTick.bin",
"STM3210C-EVAL_SysTick.bin", "STM3210B-EVAL_SysTick.bin" or "STM3210E-EVAL_SysTick.bin"
will be generated under "\Obj" folder
- Finally load this image with IAP application
- HiTOP
- Open the HiTOP toolchain.
- Browse to open the Project.htp
- STM3210X_XL: to configure the project for STM32 XL-density devices
- STM32100B-EVAL: to configure the project for STM32 Medi
没有合适的资源?快使用搜索试试~ 我知道了~
STM32的IAP实现
共390个文件
h:54个
c:53个
s:35个
4星 · 超过85%的资源 需积分: 10 9 下载量 11 浏览量
2013-12-12
10:57:10
上传
评论
收藏 4.21MB RAR 举报
温馨提示
STM32F10xxx微控制器可以运行用户指定的固件,在微控制器嵌入的闪存上实现IAP。这个功能可以使用任何通讯协议(如CAN、USART、USB)对片上闪存进行重新编程。示例程序使用了USART作为通信通道。
资源推荐
资源详情
资源评论
收起资源包目录
STM32的IAP实现 (390个子文件)
system_stm32f10x.__i 566B
core_cm3.__i 519B
stm32_eval.__i 516B
main.__i 469B
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
setstack.asm 66B
setstack.asm 66B
setstack.asm 66B
setstack.asm 66B
setstack.asm 66B
STM3210E-EVAL.axf 307KB
IAP_uvproj.bak 146KB
SysTick_uvproj.bak 143KB
IAP_uvopt.bak 125KB
SysTick_uvopt.bak 101KB
STM3210E-EVAL_sct.Bak 479B
TrueSTUDIO_elf2bin.bat 1KB
hextobin.bat 990B
axftobin.bat 867B
logo.bmp 7KB
stm32f10x_tim.c 105KB
stm32_eval_sdio_sd.c 90KB
stm32f10x_flash.c 62KB
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
stm3210c_eval_lcd.c 39KB
stm32f10x_usart.c 37KB
stm32f10x_fsmc.c 34KB
system_stm32f10x.c 31KB
stm32f10x_can.c 31KB
stm32f10x_spi.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
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
core_cm3.c 17KB
stm32_eval_spi_flash.c 16KB
stm3210e_eval_fsmc_nor.c 14KB
common.c 11KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
ymodem.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
stm3210e_eval_fsmc_sram.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
main.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_it.c 4KB
stm32f10x_it.c 4KB
main.c 4KB
stm32f10x_crc.c 3KB
KEY.c 3KB
download.c 3KB
stm32_eval.c 3KB
stm32f10x_an2557_fw.chm 643KB
.cproject 22KB
.cproject 22KB
.cproject 18KB
.cproject 18KB
.cproject 18KB
.cproject 18KB
.cproject 18KB
.cproject 18KB
.cproject 18KB
.cproject 18KB
stm32_eval.crf 296KB
common.crf 271KB
ymodem.crf 270KB
main.crf 269KB
download.crf 269KB
stm32f10x_i2c.crf 264KB
stm32f10x_sdio.crf 263KB
共 390 条
- 1
- 2
- 3
- 4
资源评论
- Robin_Yeung2015-07-22先学习一下,大概理解是什么意思了。除了代码,内存地址设置也很关键
- maojinsong2014-09-24是一个工程,没有相关文档
- 落叶惊风2014-03-10没有调通不知道什么原因,跳转后就死掉了
熊子卿
- 粉丝: 9
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功