Skip to main content
RJANA.2
Associate III
October 20, 2021
Question

How to Remove Readout Protection, Not able to Flash the code ?

  • October 20, 2021
  • 2 replies
  • 1241 views

..

This topic has been closed for replies.

2 replies

Peter BENSCH
Technical Moderator
October 20, 2021

It depends on the RDP level whether you can remove it: level 1 is reversible, level 2 is a one-way street and not reversible.

For more details please read section Read protection (RDP) in the reference manual of your STM32.

Regards

/Peter

RJANA.2
RJANA.2Author
Associate III
October 20, 2021

Level 1 it is, suggest me to resolve this issue

@Peter BENSCH​ ench

Even there is No info in datasheet

Peter BENSCH
Technical Moderator
October 20, 2021

Right, the data sheet does not contain any information on this because it is not a device-specific question, but a family-specific one. As I have already written, the information can be found in the reference manual.

Tesla DeLorean
Guru
October 20, 2021

What mode of connectivity are you using?

Should be possible to walk the part out of RDP via the serial port and ROM based System Loader. With BOOT0=HIGH user code will not run, and not interfere with debug pins/connectivity.

You fail to mention which STM32, as I recall AN-3155 describes the loader commands.

Segger/J-Link used to have a specific STM32 tools to reset/recover the devices into a usable state.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..