cancel
Showing results for 
Search instead for 
Did you mean: 

flash programming disable

Abhishek_nr
Associate II

hello everyone..

I am using the STM32F429 Discovery board and want to prevent reprogramming of the internal flash after initially flashing the firmware. Once the code is programmed, it should continue to run normally, but no further programming access should be allowed. How can I achieve this? Please suggest an implementation method.

2 REPLIES 2

See Read Protection (RDP) and/or Proprietary code readout protection (PCROP) in the Reference Manual.

Despite the names, they do also restrict writing to (ie, programming) the Flash ...

TDK
Guru

Write 1 to the relevant write protection bits in the option bytes. This can be done in code or in STM32CubeProgrammer.

TDK_0-1740751016626.png

 

You can undo this to write code again.

If you want to permanently prevent access, set RDP level 2, which is quite restrictive and is irreversible.

If you feel a post has answered your question, please click "Accept as Solution".