Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

PM0068 Arkusz danych(PDF) 16 Page - STMicroelectronics

Numer części PM0068
Szczegółowy opis  STM32F10xxx XL-density Flash programming
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0068 Arkusz danych(HTML) 16 Page - STMicroelectronics

Back Button PM0068 Datasheet HTML 12Page - STMicroelectronics PM0068 Datasheet HTML 13Page - STMicroelectronics PM0068 Datasheet HTML 14Page - STMicroelectronics PM0068 Datasheet HTML 15Page - STMicroelectronics PM0068 Datasheet HTML 16Page - STMicroelectronics PM0068 Datasheet HTML 17Page - STMicroelectronics PM0068 Datasheet HTML 18Page - STMicroelectronics PM0068 Datasheet HTML 19Page - STMicroelectronics PM0068 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 31 page
background image
Reading/programming the STM32F101xF/G and STM32F103xF/G embedded Flash memory
16/31
Doc ID 17100 Rev 2
The write protection is activated by configuring the WRP[3:0] option bytes, and then by
applying a system reset to reload the new WRPx option bytes.
Unprotection
To disable the write protection, two application cases are provided:
Case 1: Read protection disabled after the write unprotection:
Erase the entire option byte area by using the OPTER bit in the Flash memory
control register (FLASH_CR)
Program the correct RDP code 0x00A5 to unprotect the memory. This operation
first forces a Mass Erase of the main Flash memory. Mass erase is performed both
on bank 1 and bank 2.
Reset the device (system reset) to reload the option bytes (and the new WRP[3:0]
bytes), and to disable the write protection
Case 2: Read protection maintained active after the write unprotection, useful for in-
application programming with a user boot loader:
Erase the entire option byte area by using the OPTER bit in the Flash memory
control register (FLASH_CR)
Reset the device (system reset) to reload the option bytes (and the new WRP[3:0]
bytes), and to disable the write protection.
2.4.3
Option byte block write protection
The option bytes are always read-accessible and write-protected by default. To gain write
access (Program/Erase) to the option bytes, a sequence of keys (same as for lock) has to
be written into the OPTKEYR. A correct sequence of keys gives write access to the option
bytes and this is indicated by OPTWRE in the FLASH_CR register being set. Write access
can be disabled by resetting the bit through software.
2.5
Option byte description
There are eight option bytes. They are configured by the end user depending on the
application requirements. As a configuration example, the watchdog may be selected in
hardware or software mode.
A 32-bit word is split up as follows in the option bytes.
The organization of these bytes inside the information block is as shown in Table 4.
The option bytes can be read from the memory locations listed in Table 4 or from the Option
byte register (FLASH_OBR).
Note:
The new programmed option bytes (user, read/write protection) are loaded after a system
reset.
Table 3.
Option byte format
31-24
23-16
15 -8
7-0
complemented option
byte1
Option byte 1
complemented option
byte0
Option byte 0



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com