STM32H7B3I-EVAL Secure Access Mode: Procedure to Revert to Standard Mode Using RDP Regression
Reverting STM32H7B3 from Secure Access Mode to Standard Mode
Hello,
I am working with an STM32H7B3 and currently evaluating the Secure Access Mode and secure user area functionality.
I am going to configure the device as follows:
- Create a secure user area in Bank 1 with DMES1 = 1
- Create a secure user area in Bank 2 with DMES2 = 1
- Enable Secure Access Mode (
SECURITY = 1) - The device is currently at RDP Level 0
My requirement is to support reverting the device from Secure Access Mode back to Standard Mode during development/service.
My understanding is that the following sequence can be used:
- Change RDP from Level 0 to Level 1.
- Perform an RDP regression from Level 1 to Level 0.
- Since DMES1/DMES2 are set to 1, the secure areas should be erased during the RDP regression.
- After the secure areas have been removed, disable Secure Access Mode (
SECURITY = 0). - Reset the device and boot normally in Standard Mode.
In other words:
RDP Level 1 → RDP Level 0 regression → secure areas removed due to DMES1/DMES2 = 1 → disable SECURITY → Standard Mode
Could someone please confirm whether this is a supported and safe procedure for the STM32H7B3?
In particular, I would like to confirm:
- Does an RDP Level 1 → Level 0 regression with DMES1/DMES2 = 1 reliably remove the secure areas?
- Is it then safe to clear the SECURITY bit and return to Standard Mode?
- Is there any additional required step before disabling Secure Access Mode?
- Does the RDP regression automatically perform the required reset/option-byte reload?
- Are there any conditions under which this sequence could leave the device permanently inaccessible or otherwise brick the device?
I want to verify the procedure, since I would like to avoid putting the device into an unrecoverable state.
Any clarification or recommended procedure would be greatly appreciated.
Thank you.
