2024-12-12 06:44 PM
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
2024-12-12 06:54 PM - edited 2024-12-12 06:55 PM
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.
2024-12-12 10:22 PM
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