Difference between revisions of "Setting read out protection on STM32F0 devices"

From SEGGER Wiki
Jump to: navigation, search
(Redirected page to STM32)
(Changed redirect target from STM32 to ST STM32)
(Tag: Redirect target changed)
 
Line 1: Line 1:
#REDIRECT [[STM32]]
+
#REDIRECT [[ST STM32]]
 
The STM32F0 series devices have different levels of read protection. The level of read protection has to be specified in the RDP byte which is part of the option bytes at address 0x1FFFF800. A special sequence, consisting of different read / write accesses to special function registers of the MCU are required to change the value of the RDP byte (examples below).
 
 
The table below describes the different configuration options:
 
{| class="wikitable"
 
|-
 
! RDP byte value !! RDP complement value !! Read protection level
 
|-
 
| 0xAA || 0x55 || Level 0 - No protection
 
|-
 
| ((!= 0xAA) && (!= 0xCC)) || Any value || Level 1 (default) - Read protection
 
|-
 
| 0xCC || 0x33 || Level 2 - No debug access
 
|}
 
 
For further information regarding this topic, please refer to the ST STM32F0 user manual.
 
 
== Script files and sample projects ==
 
'''J-Link Commander:'''
 
* [[File:ST_STM32F03_SetReadProtection.jlink]]
 
'''J-Flash:'''
 
* [[File:STM32F051K8_ProgOptBytes.jflash]]
 

Latest revision as of 14:24, 14 July 2023

Redirect to: