Can't Disable Read/Write (PCROP) Protection using ST-LINK
Hi There,
I am having an issue where I cannot disable Read/Write Protection in the option bytes using ST-LINK. Every time I try to disable it for both banks (uncheck the checkboxes and hit apply) I get the following error:
Could not set Option bytes!
Please reset the target and retry.
Whenever I try to program or erase the chip I get the following error:
Some flash sectors are read protected.
For background, I tried enabling write protection for a single sector that I was planning on placing user data in. This didn't work as programming/erasing the flash wouldn't work as there was a sector write protected. I then disabled the write protection and now I am stuck in this quagmire. I never messed with the Read Out Protection dropdown and it seems like it is set at Level 0. Furthermore I never messed with the Read/Write (PCROP) Protection settings tab, I only touched the Write Protection tab.
How can I get back to a programmable chip? Thanks for any help you can provide.

