cancel
Showing results for 
Search instead for 
Did you mean: 

Readout protection errorr

Locnvselex_vn
Associate II

I am using the Readout Protection Level 1 security method for the STM32G431 chip. However, after flashing the code, it doesn't work, and when I use the STM32Programmer software to check, I encounter an FF error like this. Can anyone help me with this issue?

Thank

Locnvselex_vn_0-1734057824496.png

 

 

2 REPLIES 2
Pavel A.
Evangelist III

As the text on the screen goes: any RDP value other than AA or CC should be interpreted as Level 1. So your FF means Level 1, as you've set it. Can you guess why CubeProgrammer cannot read back the code now?

If the code does not work and you want to debug it -  do not set RDP1 yet.

 

Locnvselex_vn
Associate II

Our software is loaded through the bootloader. Right after the code is successfully loaded, the program will immediately run the main.app function, and at the same time, the MCU power supply will be cut off. Our RDP code is implemented within the main.app code, as shown in the image below. I believe the issue occurs because the software is executing this RDP code when the MCU power

 

Locnvselex_vn_0-1734070915462.png