stm32_flash

所属分类:处理器开发
开发工具:C/C++
文件大小:223KB
下载次数:114
上传日期:2011-10-30 16:52:24
上 传 者qinlaoban
说明:  stm32 操作内部FLASH的代码 ,可以将数据文件存储到FLASH中
(stm32 read and write the flash)

文件列表:
FLASH\compile\cortexm3_macro.s (9356, 2007-10-08)
FLASH\compile\lnkarm_flash.xcl (7677, 2007-10-08)
FLASH\compile\lnkarm_ram.xcl (7656, 2007-10-08)
FLASH\compile\stm32f10x_vector.c (3415, 2007-10-08)
FLASH\compile (0, 2010-08-14)
FLASH\Debug\Exe\FLASH.bin (11319, 2010-02-25)
FLASH\Debug\Exe\FLASH.d79 (223497, 2009-12-04)
FLASH\Debug\Exe (0, 2010-08-14)
FLASH\Debug\List (0, 2010-08-14)
FLASH\Debug\Obj\FLASH.pbd (3512, 2010-08-02)
FLASH\Debug\Obj\main.r79 (12726, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_adc.r79 (20601, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_bkp.r79 (8107, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_can.r79 (18161, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_dma.r79 (8612, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_exti.r79 (6071, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_flash.r79 (17390, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_gpio.r79 (12752, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_i2c.r79 (23121, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_it.r79 (10858, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_iwdg.r79 (4231, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_lib.r79 (23471, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_nvic.r79 (16757, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_pwr.r79 (6830, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_rcc.r79 (17793, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_rtc.r79 (7819, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_spi.r79 (13213, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_systick.r79 (5070, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_tim.r79 (40115, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_tim1.r79 (44159, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_usart.r79 (17087, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_vector.r79 (6961, 2010-02-25)
FLASH\Debug\Obj\stm32f10x_wwdg.r79 (5809, 2010-02-25)
FLASH\Debug\Obj (0, 2010-08-14)
FLASH\Debug (0, 2010-08-14)
FLASH\FLASH.dep (22761, 2010-08-02)
FLASH\FLASH.ewd (31007, 2008-04-05)
FLASH\FLASH.ewp (48695, 2009-12-14)
FLASH\FLASH.eww (159, 2008-04-04)
... ...

/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V1.0 * Date : 10/08/2007 * Description : Description of the FLASH Example1. ******************************************************************************** * 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. After Reset, the Flash memory Program/Erase Controller is locked. To unlock it, the FLASH_Unlock function is used. 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. The written data is then checked and the result of the programming operation is stored into the 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 Hardware environment ==================== No hardware connection needed. 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******

近期下载者

相关文件


收藏者