FLASH

所属分类:单片机开发
开发工具:C/C++
文件大小:22KB
下载次数:90
上传日期:2018-06-08 09:50:21
上 传 者HSR
说明:  stm32f030 flash 的读取与存入实例
(Read and deposit instances of stm32f030 flash)

文件列表:
FLASH\Program\main.c (5669, 2012-05-18)
FLASH\Program\stm32f0xx_conf.h (3309, 2012-05-18)
FLASH\Program\stm32f0xx_it.c (3743, 2012-05-18)
FLASH\Program\stm32f0xx_it.h (2072, 2012-05-18)
FLASH\Program\system_stm32f0xx.c (12585, 2012-05-18)
FLASH\Write_Protection\main.c (7048, 2012-05-18)
FLASH\Write_Protection\main.h (1828, 2012-05-18)
FLASH\Write_Protection\stm32f0xx_conf.h (3318, 2012-05-18)
FLASH\Write_Protection\stm32f0xx_it.c (3759, 2012-05-18)
FLASH\Write_Protection\stm32f0xx_it.h (2081, 2012-05-18)
FLASH\Write_Protection\system_stm32f0xx.c (12585, 2012-05-18)
FLASH\Program (0, 2018-03-23)
FLASH\Write_Protection (0, 2018-03-23)
FLASH (0, 2018-03-23)

/** @page FLASH_Program FLASH Program example @verbatim ******************** (C) COPYRIGHT 2012 STMicroelectronics ******************* * @file FLASH/Program/readme.txt * @author MCD Application Team * @version V1.0.0 * @date 18-May-2012 * @brief FLASH Example Name Description. ****************************************************************************** * * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ****************************************************************************** @endverbatim @par Example Description This example provides a description of how to program the STM32F0xx 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. @par Directory contents - FLASH/Program/stm32f0xx_conf.h Library Configuration file - FLASH/Program/stm32f0xx_it.c Interrupt handlers - FLASH/Program/stm32f0xx_it.h Interrupt handlers header file - FLASH/Program/main.c Main program - FLASH/Program/system_stm32f0xx.c STM32F0xx system source file @note The "system_stm32f0xx.c" is generated by an automatic clock configuration tool and can be easily customized to meet user application requirements. To select different clock setup, use the "STM32F0xx_Clock_Configuration_VX.Y.Z.xls" provided with the AN4055 package available on ST Microcontrollers @par Hardware and Software environment - This example runs on STM32F0xx Devices. - This example has been tested with STMicroelectronics STM320518-EVAL (STM32F0xx) evaluation board and can be easily tailored to any other supported device and development board. @par How to use it ? In order to make the program work, you must do the following : - Copy all source files from this example folder to the template folder under Project\STM32F0xx_StdPeriph_Templates - Open your preferred toolchain - Rebuild all files and load your image into target memory - Run the example @note Known limitation: When running this example in debug mode with TrueSTUDIO or MDK-ARM toolchains, the connection with the debugger is lost. The problem does not occur when running step by step. *

© COPYRIGHT STMicroelectronics

*/

近期下载者

相关文件


收藏者