2010-09-02 09:17 AM
Unprotecting Write Protected Pages
2011-05-17 05:05 AM
>>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.2011-05-17 05:05 AM
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.2011-05-17 05:05 AM
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.