Content originally posted in LPCWare by tbutuza on Sun Aug 21 13:03:52 MST 2011
Hello,
First time to use CRP. No success :-(
I set the device into CPR1. It seems working because no code read is possible.
But I can not reprogram or erase the deveice.
I really set to CPR1 not CRP2 or CRP3.
As desribed in the user manual, CRP1 allows full erase but in practice it doesn't work.
Now my chip is unusble? I really need erase and reprogram it.
Please help me. How to recover from CRP1?
I use a command line tool "lpc21isp" under Linux.
This program can be run in terminal mode and it allows execute ISP commands manually.
I tried with: P 0 19
and after E 0 19
It gives back error code 15. It means (by the user manual) CMD LOCKED.
I really set CPR1.
In the hex file the character sequence "78563412" can be read.
It means 0x12345678 because it is big endian. It proves that I really set CPR1 not something other.
But why unalloved the sector erase? It should be alloved by the documentation.
Did anyone recover an LPC12xx from CRP1 to NO_CRP really?
Thanks in advance,
Tamas Butuza