cancel
Showing results for 
Search instead for 
Did you mean: 

Unprotecting Write Protected Pages

bengriffiths9
Associate II
Posted on September 02, 2010 at 18:17

Unprotecting Write Protected Pages

3 REPLIES 3
Posted on May 17, 2011 at 14:05

>>This leads onto my main problem, I want to enable Read Protection, then programmatically unprotect page 0/1 change some data in one of these pages and then re-enable write protection. Can I do this?

I seriously doubt it.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
bengriffiths9
Associate II
Posted on May 17, 2011 at 14:05

I agree.

I've done some more digging, I can now do this for other pages, e.g. Write protect Pg 3&4, un-protect, change soem data and re-protect but not for pg 1&2.

Thanks.

damh
Associate II
Posted on May 17, 2011 at 14:05

You have to start the ''erase all'' command. Then the flash in this special area is writable until first reset after enabling ROP.

You cannot read the write protection from the registers because the registers are only showing the user defined write protection status. The first pages have a hardware write protection if ROP is enabled at reset time.