How to regress STM32U585-based device from RDP 2 to 0 without completely removing power from the device?
Hi,
I have a custom board built around an STM32U585AII6 that utilizes RDP level 2 to prevent debug access. In the firmware I provided keys to allow for regression from level 2 back to level 0 and have been able to do this regression through the Cube Programmer successfully on many occasions, but only when I completely remove power from the device in between the various steps of the process. A successful regression typically follows the sequence below:
- Successfully Apply RDP Level 2 Password
- Disconnect Device from power source
- Reconnect power and successfully connect to the Cube Programmer
- Successfully Apply RDP Level 1 Password
- Disconnect Device from power source
- Reconnect power and successfully connect to the Cube Programmer
- Set RDP option bytes to Level (0xAA)
Is it a requirement to completely remove power from the device or is it possible to perform RDP regressions while keeping the device power?
