flash123
所属分类:单片机开发
开发工具:C/C++
文件大小:6KB
下载次数:9
上传日期:2006-02-12 11:11:29
上 传 者:
dom
说明: ARM STR7 FLASH编程,有一定的参考价值
(ARM STR7 FLASH programming, a certain reference value)
文件列表:
flash\71x_conf.h (2291, 2005-06-02)
flash\71x_it.c (13386, 2005-06-02)
flash\main.c (1816, 2005-06-02)
flash\realview\flash.prj (2022, 2005-06-02)
flash\realview (0, 2005-06-08)
flash\scat.scf (1216, 2005-06-02)
flash (0, 2005-06-08)
*** This README.TXT file comes with the STR71x Software Library ***
*******************************************************************************
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 shows how to use some of the flash software library functions.
The program writes the value "0x12345678" to Bank 1 sector 0 of the flash
memory.
This example highlights the following features of the flash :
- Disable temporally FLASH_B1F0 write protection,
- Erase a sector,
- Program a word,
- Enable permanently FLASH_B1F0 write protection (line commented out in main.c)
CAUTION: THE WRITE PROTECTION CAN NOT BE DISABLED ON A PERMANENT WAY!!
In this example, write protection in main.c is intentionnaly commented
since this line will set the permanent flash write protection. Once activated, only
temporally write unprotection (showed in this example) will allow to write in flash.
Write protection will be reactivated automatically after reset.
Directory contents
==================
scat.scf Scatter file
71x_conf.h Library Configuration file
71x_it.c Interrupt handlers
main.c Main program
Hardware implementation:
=======================
This example works as standalone on the STR7-Eval board (mb393) and
extra hardware implementation is not required to run the example.
How to use it
=============
In order to make the program work, you must do the following :
- Just compile and run it.
- You can use the debugger memory windows to verify the good content of the flash at
0x400C0000 address and see the value "0x12345678"
- If you want to enable the FLASH write protection feature, just uncomment the
corresponding line in the main.c file.
(C) COPYRIGHT 2003 STMicroelectronics
近期下载者:
相关文件:
收藏者: