Content originally posted in LPCWare by MikeSimmonds on Wed Jul 29 16:24:59 MST 2015
Check the status bits to see if you are permantly locked out of various blocks.
Then read about 'unlock status register' (or bits/fields thereof)
Code a simple unlock status register, set (program) status bits how you want.
[Download and execute from ram to avoid chicken-egg situations.]
If any status lock bits are permanent (OTP) then you are stuffed and need to replace the part.
(How good is your soldering?)
But read the datasheet, check, double check, then check again.
Cheers, Mike.