STM32-flash

所属分类:处理器开发
开发工具:C/C++
文件大小:492KB
下载次数:313
上传日期:2009-04-02 09:40:15
上 传 者appleqin
说明:  基于STM32处理器的IAP应用FLASH编程源码
(IAP processor-based STM32 application FLASH programming source code)

文件列表:
obj\flash.axf (122120, 2007-09-06)
obj\flash.htm (69946, 2007-09-06)
obj\flash.lnp (512, 2007-09-06)
obj\flash.plg (236, 2007-09-06)
obj\flash.sct (479, 2007-08-28)
obj\flash.tra (1702, 2007-09-06)
obj\main.crf (129571, 2007-09-06)
obj\main.d (1668, 2007-09-06)
obj\main.o (135672, 2007-09-06)
obj\STM32F10x.o (5192, 2007-09-06)
obj\stm32f10x_flash.crf (30024, 2007-09-06)
obj\stm32f10x_flash.d (425, 2007-09-06)
obj\stm32f10x_flash.o (38160, 2007-09-06)
obj\stm32f10x_gpio.crf (35035, 2007-09-06)
obj\stm32f10x_gpio.d (509, 2007-09-06)
obj\stm32f10x_gpio.o (43752, 2007-09-06)
obj\stm32f10x_it.crf (125488, 2007-09-06)
obj\stm32f10x_it.d (1823, 2007-09-06)
obj\stm32f10x_it.o (139324, 2007-09-06)
obj\stm32f10x_lib.crf (123245, 2007-09-06)
obj\stm32f10x_lib.d (1828, 2007-09-06)
obj\stm32f10x_lib.o (128100, 2007-09-06)
obj\stm32f10x_nvic.crf (29449, 2007-09-06)
obj\stm32f10x_nvic.d (417, 2007-09-06)
obj\stm32f10x_nvic.o (39384, 2007-09-06)
obj\stm32f10x_rcc.crf (34154, 2007-09-06)
obj\stm32f10x_rcc.d (409, 2007-09-06)
obj\stm32f10x_rcc.o (42596, 2007-09-06)
obj\stm32f10x_systick.crf (20942, 2007-09-06)
obj\stm32f10x_systick.d (459, 2007-09-06)
obj\stm32f10x_systick.o (27040, 2007-09-06)
obj\stm32f10x_usart.crf (37664, 2007-09-06)
obj\stm32f10x_usart.d (518, 2007-09-06)
obj\stm32f10x_usart.o (46656, 2007-09-06)
obj\uart.crf (128448, 2007-09-06)
obj\uart.d (1621, 2007-09-06)
obj\uart.o (134656, 2007-09-06)
obj (0, 2009-03-24)
uvision\flash.Opt (3943, 2007-09-06)
uvision\flash.plg (225, 2007-08-28)
... ...

/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : readme.txt * Author : embest * Date First Issued : 08/29/2007 * Description : Description of the FLASH Example1. ******************************************************************************** * History: * 08/29/2007: Vers.1.1 ******************************************************************************** * 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. *******************************************************************************/ Example description =================== This example provides a description of how to program the STM32F10x FLASH. In the first phase, the Flash Program erase controller is unlocked by setting the Keys using the FLASH_Unlock function. Before programming the desired addresses, an erase operation is performed using the flash erase page feature. The erase procedure starts with the calculation of the number of pages to be used. Then all these pages will be erased one by one by calling FLASH_ErasePage function. Once this operation is finished, the programming operation will be performed by using the FLASH_ProgramWord function. After that the corectness of written data is check and the result is stored in MemoryProgramStatus variable. Directory contents ================== stm32F10x_conf.h Library Configuration file stm32F10x_it.c Interrupt handlers stm32F10x_it.h Interrupt handlers header file main.c Main program How to use it ============= In order to make the program work, you must do the following: - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files: + stm32F10x_lib.c + stm32F10x_flash.c + stm32F10x_rcc.c + stm32F10x_nvic.c - Link all compiled files and load your image into either RAM or Flash - Run the example ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者