2026-01-19 12:41 PM
I accidentally configured PCROP protection on my STM32H755XIH6 that has effectively locked me out of almost the entire flash memory, and I'm unable to recover using standard methods.
Current Situation:
I tried the below methods following some other discussion on the forum:
Current Status:
Given that I can only execute code in 1KB total space (512 bytes per bank) and cannot modify the option bytes through any standard method, is there any legitimate recovery procedure for this situation?
I saw in this discussion Solved: PCROP Not disabled after RDP Regression, Option ch... - STMicroelectronics Community that this user had to execute bank mass erase with automatic protection-removal code for it to recover, should I write a bare basic code to get this to run in the 512bytes I have?
2026-01-23 6:57 AM
Hi @Engineer29,
indeed, to remove the protection the mass erase or the RDP regression must be requested simultaneously with the PCROP removal, otherwise it's not executed. I'm not sure if the tools are capable of modifying both OB in one go, but sure give that another try.
Regarding removal using the user code, you don't really need to squezze the code to 512B, even though it doesn't seem unrealistic at all. You can also configure the project to load the executable to RAM and execute from there.
BR,
J
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.