flash programming disable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 4:59 AM - last edited on ‎2025-02-28 5:42 AM by mƎALLEm
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.
- Labels:
-
Flash
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 5:05 AM
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 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-28 5:57 AM
Write 1 to the relevant write protection bits in the option bytes. This can be done in code or in STM32CubeProgrammer.
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.
