Skip to main content
Explorer
December 13, 2024
Question

Readout protection errorr

  • December 13, 2024
  • 2 replies
  • 528 views

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

 

 

    This topic has been closed for replies.

    2 replies

    Super User
    December 13, 2024

    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.

     

    Explorer
    December 13, 2024

    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