comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/FLASH/Write_Protection/readme.txt @ 0:c59513fd84fb

Initial commit of STM32 test code.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 03 Oct 2011 21:19:15 +1030
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c59513fd84fb
1 /**
2 @page FLASH_Write_Protection FLASH Write Protection example
3
4 @verbatim
5 ******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
6 * @file FLASH/Write_Protection/readme.txt
7 * @author MCD Application Team
8 * @version V3.5.0
9 * @date 08-April-2011
10 * @brief Description of the FLASH Write Protection example.
11 ******************************************************************************
12 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 ******************************************************************************
19 @endverbatim
20
21 @par Example Description
22
23 This example provides a description of how to enable and disable the write protection
24 for the STM32F10x FLASH:
25
26 - Enable Write protection:
27 To enable the Write Protection, uncomment the line "#define WRITE_PROTECTION_ENABLE"
28 in main.c file.
29 To protect a set of pages, the user has to call the function FLASH_EraseOptionBytes
30 to erase all the option bytes then to call the function FLASH_EnableWriteProtection.
31 The parameter of the later function will define the number of pages to be protected
32 (The desired pages and already protected pages).
33 To load the new option byte values, a system Reset is necessary, for this, the
34 function NVIC_SystemReset() is used.
35
36 - Disable Write protection:
37 To disable the Write Protection, uncomment the line "#define WRITE_PROTECTION_DISABLE"
38 in main.c file.
39 To disable the write protection of the STM32F10x Flash, an erase of the Option
40 Bytes is necessary by the function FLASH_EraseOptionBytes, then call the function
41 FLASH_EnableWriteProtection to protect the pags that are already protected.
42 To load the new option byte values, a system Reset is necessary, for this, the
43 function NVIC_SystemReset() is used.
44
45 - Program the selected pages:
46 To program the desired pages (if the flash is not write protected) uncomment the line
47 "#define FLASH_PAGE_PROGRAM" in main.c file.
48
49 If the desired pages are not write protected, an erase and a write operation are
50 performed.
51
52
53 @par Directory contents
54
55 - FLASH/Write_Protection/stm32f10x_conf.h Library Configuration file
56 - FLASH/Write_Protection/stm32f10x_it.h Interrupt handlers header file
57 - FLASH/Write_Protection/stm32f10x_it.c Interrupt handlers
58 - FLASH/Write_Protection/main.c Main program
59 - FLASH/Write_Protection/system_stm32f10x.c STM32F10x system source file
60
61 @par Hardware and Software environment
62
63 - This example runs on STM32F10x Connectivity line, High-Density, Medium-Density,
64 High-Density Value line, XL-Density, Medium-Density Value line, Low-Density
65 and Low-Density Value line Devices.
66
67 - This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density
68 Value line), STM32100B-EVAL (Medium-Density Value line), STM3210C-EVAL
69 (Connectivity line), STM3210E-EVAL (High-Density and XL-Density) and STM3210B-EVAL
70 (Medium-Density) evaluation boards and can be easily tailored to any other
71 supported device and development board.
72
73
74 @par How to use it ?
75
76 In order to make the program work, you must do the following :
77 - Copy all source files from this example folder to the template folder under
78 Project\STM32F10x_StdPeriph_Template
79 - Open your preferred toolchain
80 - Rebuild all files and load your image into target memory
81 - Run the example
82
83 @note
84 - Low-density Value line devices are STM32F100xx microcontrollers where the
85 Flash memory density ranges between 16 and 32 Kbytes.
86 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
87 microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
88 - Medium-density Value line devices are STM32F100xx microcontrollers where
89 the Flash memory density ranges between 64 and 128 Kbytes.
90 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
91 microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
92 - High-density Value line devices are STM32F100xx microcontrollers where
93 the Flash memory density ranges between 256 and 512 Kbytes.
94 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
95 the Flash memory density ranges between 256 and 512 Kbytes.
96 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
97 the Flash memory density ranges between 512 and 1024 Kbytes.
98 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
99
100 * <h3><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h3>
101 */