Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PM0063 Datenblatt(PDF) 16 Page - STMicroelectronics

Teilenummer PM0063
Bauteilbeschribung  STM32F100xx value line Flash programming
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0063 Datenblatt(HTML) 16 Page - STMicroelectronics

Back Button PM0063 Datasheet HTML 12Page - STMicroelectronics PM0063 Datasheet HTML 13Page - STMicroelectronics PM0063 Datasheet HTML 14Page - STMicroelectronics PM0063 Datasheet HTML 15Page - STMicroelectronics PM0063 Datasheet HTML 16Page - STMicroelectronics PM0063 Datasheet HTML 17Page - STMicroelectronics PM0063 Datasheet HTML 18Page - STMicroelectronics PM0063 Datasheet HTML 19Page - STMicroelectronics PM0063 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 30 page
background image
Reading/programming the STM32F100xx embedded Flash memory
PM0063
16/30
Doc ID 16211 Rev 2
Figure 3.
Flash memory Mass Erase procedure
2.3.5
Option byte programming
The option bytes are programmed differently from normal user addresses. The number of
option bytes is limited to 8 (4 for write protection, 1 for read protection, 1 for configuration
and 2 for user data storage). After unlocking the FPEC, the user has to authorize the
programming of the option bytes by writing the same set of KEYS (KEY1 and KEY2) to the
FLASH_OPTKEYR register to set the OPTWRE bit in the FLASH_CR register (refer to
Section 2.3.1 for key values). Then the user has to set the OPTPG bit in the FLASH_CR
register and perform a half-word write operation at the desired Flash address.
FPEC preliminarily reads the value of the addressed option byte and checks that it has been
erased. If not, the program operation is skipped and a warning is issued by the PGERR bit in
the FLASH_SR register. The end of the program operation is indicated by the EOP bit in the
FLASH_SR register.
The FPEC takes the LSB and automatically computes the MSB (which is the complement of
the LSB) and starts the programming operation. This guarantees that the option byte and its
complement are always correct.
Read FLASH_CR_LOCK
FLASH_CR_LOCK
= 1
Yes
No
Yes
No
Perform unlock sequency
Write into FLASH_CR_MER
to 1
Write FLASH_CR_STRT to 1
FLASH_SR_BSY
= 1
Check the erase operation by
reading all the addresses in
the user memory
ai14306b



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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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