Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

PM0073 Fiches technique(PDF) 19 Page - STMicroelectronics

No de pièce PM0073
Description  STM32Wxxx Flash memory microcontrollers
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0073 Fiches technique(HTML) 19 Page - STMicroelectronics

Back Button PM0073 Datasheet HTML 15Page - STMicroelectronics PM0073 Datasheet HTML 16Page - STMicroelectronics PM0073 Datasheet HTML 17Page - STMicroelectronics PM0073 Datasheet HTML 18Page - STMicroelectronics PM0073 Datasheet HTML 19Page - STMicroelectronics PM0073 Datasheet HTML 20Page - STMicroelectronics PM0073 Datasheet HTML 21Page - STMicroelectronics PM0073 Datasheet HTML 22Page - STMicroelectronics PM0073 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 34 page
background image
PM0073
Reading/programming the STM32Wxxx embedded Flash memory
Doc ID 17766 Rev 5
19/34
Erase procedure
The option byte erase sequence (OPTERASE) is as follows:
1.
Enable the FPEC clock.
2.
Check that no Flash memory operation is ongoing by reading the BSY bit in the
FLASH_SR register.
3.
Unlock the OPTWRE bit in the FLASH_CR register.
4.
Set the OPTER bit in the FLASH_CR register.
5.
Set the STRT bit in the FLASH_CR register.
6.
Wait for BSY to reset.
7.
Read the erased option bytes and verify.
2.3
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 four pages.
2.3.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).
Pages 0-3 are automatically write-protected. The rest of the memory can be
programmed by the code executed from the main Flash memory (for IAP, constant
storage, etc.); it is protected against write/erase (but not against mass erase) in debug
mode or when booting from the embedded SRAM.
All features linked to loading code into and executing code from the embedded SRAM
are still active (JTAG/SWD and boot from embedded SRAM) and this can be used to
disable the read protection. When the read protection option byte is altered to a
memory-unprotect value, a mass erase is performed.
Flash memory access through data read using JTAG, SWV (serial wire viewer), SWD
(serial wire debug) and boundary scan are not allowed.



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 32 33 34


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
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