AnsweredAssumed Answered

LPC824: Why can I program the device just once?

Question asked by Remco Mikkers on Jun 21, 2016
Latest reply on Aug 11, 2016 by Remco Mikkers

I have recently made a pcb with a LPC824M201JDH20 on it. The first time I can program a .hex file into the microcontroller by using Flash Magic ISP. Actually if I try to do it the second time, it will not work anymore. Flash Magic gives an autobaud error. If I look at the signals(ISP reset, ISP enable, ISP TX) to the microcontroller, the signals are right. Actually there is no rx signal, so the LPC824 is not responding.


It looks like the LPC824 is coming into CRP mode. This because I can read the device until I do a powercycle. This CRP mode protects the device from re-writing a .hex file. Actually how can I turn this mode off or set it in a state that I can reprogram the controller? And is my interpretation on this related to this CRP mode correct, or do I have to look at something else?


In settings the CRP is unchecked and also crp.c says "CRP_WORD = CRP_NO_CRP".


Can you help me with this?