Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN4246 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN4246
Description  Proprietary Code Read Out Protection on STM32L1 microcontrollers
PDF  11 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4246 Datasheet(HTML) 4 Page - STMicroelectronics

  AN4246 Datasheet HTML 1Page - STMicroelectronics AN4246 Datasheet HTML 2Page - STMicroelectronics AN4246 Datasheet HTML 3Page - STMicroelectronics AN4246 Datasheet HTML 4Page - STMicroelectronics AN4246 Datasheet HTML 5Page - STMicroelectronics AN4246 Datasheet HTML 6Page - STMicroelectronics AN4246 Datasheet HTML 7Page - STMicroelectronics AN4246 Datasheet HTML 8Page - STMicroelectronics AN4246 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 11 page
background image
Flash code protection
AN4246
4/11
DocID024207 Rev 1
Figure 1. RDP Levels
Both protection levels (1 and 2) have the same abilities to protect the Flash memory. Its
content cannot be read by Serial Wire or JTAG Debug access, bootloader system software
or by loading any other SW to the volatile RAM memory.
The main difference between the two protection levels is the volatile data (RAM content)
protection which only exists on Level 2.
When RDP protection is set to Level 1, debug tools still can be connected and access all the
volatile resources of the MCU (RAM and registers). These tools are used to check the part
and/or system, by loading some test code to the RAM.
Also, Level 1 protection allows to recover a programmed part by erasing the entire Flash
content. This is done by re-programming the RDP option byte from Level 1 to Level 0 (see
Figure 1).
On the other hand, Level 2 protection is irreversible (fuse). Once the RDP is set to Level 2,
the RDP option byte and all the other option bytes are frozen and can non longer be
modified.
However, the user Flash content, with the exception of all the write-protected sectors (see
Section 1.2: Write Protection), still can be updated under the control of the user code itself.
An IAP (In Application Programming) bootloader code can be implemented in order to allow
a firmware update of some sectors.
In order to ensure the protection of previously programmed user code, the bootloader
protocol can be a user specified (implementing the relevant protection against attacks,
dumping and/or malicious code update).
Note:
Some examples of Secure Bootloader implementation using the embedded AES
accelerator available on STM32 are described in application note AN4023 - STM32 secure
firmware upgrade.
For additional details on Read Protection, refer to the microcontroller reference manuals.
Level 1
0
l
e
v
e
L
2
l
e
v
e
L
h
A
A
=
P
D
R
h
C
C
=
P
D
R
RDP /= AAh
RDP /= CCh
default
Options write (RDP level increase) includes
- Options erase
- New options program
Options write (RDP level decrease) includes
- Mass erase
- Options erase
- New options program
Options write (RDP level identical) includes
- Options erase
- New options program
RDP = AAh
Others option(s) modified
RDP /= AAh & /= CCh
Others options modified
Write options
including
RDP = AAh
Write options
including
RDP = CCh
Write options
including
RDP = CCh
Write optionsincluding
RDP /= CCh & /= AAh
ai16045



Html Pages

1 2 3 4 5 6 7 8 9 10 11


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