Electronic Components Datasheet Search
  English  ▼

X  

PM0068 Datasheet(PDF) 15 Page - STMicroelectronics

Part # PM0068
Description  STM32F10xxx XL-density Flash programming
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0068 Datasheet(HTML) 15 Page - STMicroelectronics

Back Button PM0068 Datasheet HTML 11Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 15 / 31 page
background image
PM0068 Reading/programming the STM32F101xF/G and STM32F103xF/G embedded Flash memo-
Doc ID 17100 Rev 2
15/31
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-1 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.), but 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.
When booting from the embedded SRAM, Flash memory accesses through the code
and through data read using DMA1 and DMA2 are not allowed.
Flash memory access through data read using JTAG, SWV (serial wire viewer),
SWD(serial wire debug), ETM and boundary scan are not allowed.
The Flash memory is protected when the RDP option byte and its complement contain the
pair of values shown in Table 2.
Note:
Erasing the option byte block will not trigger a mass erase as the erased value (0xFF)
corresponds to a protected value.
Unprotection
To disable the read protection from the embedded SRAM:
Erase the entire option byte area. As a result, the read protection code (RDP) will be
0xFF. At this stage the read protection is still enabled.
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 (POR Reset) to reload the option bytes (and the new RDP code) and,
to disable the read protection.
Note:
The read protection can be disabled using the boot loader (in this case only a System Reset
is necessary to reload the option bytes). For more details refer to AN2606.
2.4.2
Write protection
From page 0 to page 61, write protection is implemented with a granularity of two pages at a
time. The remaining memory block (from page 62 to page 511) is write-protected at once.
If a program or an erase operation is performed on a protected page, the Flash memory
returns a protection error flag on the Flash memory Status Register (FLASH_SR).
Table 2.
Flash memory protection status
RDP byte value
RDP complement value
Read protection status
0xFF
0xFF
Protected
RDPRT
Complement of RDP byte
Not protected
Any value
Not the complement value of RDP
Protected



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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