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

X  

PM0063 Datenblatt(PDF) 17 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) 17 Page - STMicroelectronics

Back Button 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 PM0063 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 30 page
background image
PM0063
Reading/programming the STM32F100xx embedded Flash memory
Doc ID 16211 Rev 2
17/30
The sequence is as follows:
Check that no Flash memory operation is ongoing by checking the BSY bit in the
FLASH_SR register.
Unlock the OPTWRE bit in the FLASH_CR register.
Set the OPTPG bit in the FLASH_CR register
Write the data (half-word) to the desired address
Wait for the BSY bit to be reset.
Read the programmed value and verify.
When the Flash memory read protection option is changed from protected to unprotected, a
Mass Erase of the main Flash memory is performed before reprogramming the read
protection option. If the user wants to change an option other than the read protection
option, then the mass erase is not performed. The erased state of the read protection option
byte protects the Flash memory.
Erase procedure
The option byte erase sequence (OPTERASE) is as follows:
Check that no Flash memory operation is ongoing by reading the BSY bit in the
FLASH_SR register
Unlock the OPTWRE bit in the FLASH_CR register
Set the OPTER bit in the FLASH_CR register
Set the STRT bit in the FLASH_CR register
Wait for BSY to reset
Read the erased option bytes and verify
2.4
Protections
The user area of the Flash memory can be protected against read by untrusted code. The
pages of the Flash memory can also be protected against unwanted write due to loss of
program counter contexts.
The write-protection granularity is then:
Four pages (4 Kbytes) for low- and medium-density value line devices
Two pages (4 Kbytes) for high-density value line devices
2.4.1
Read protection
The read protection is activated by setting the RDP option byte and then, by applying a
system reset to reload the new RDP option byte.
Note:
If the read protection is set while the debugger is still connected through JTAG/SWD, apply a
POR (power-on reset) instead of a system reset (without debugger connection).
Once the protection byte has been programmed:
Main Flash memory read access is not allowed except for the user code (when booting
from main Flash memory itself with the debug mode not active).



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