I am using either the JLINK SEGGER Debugger or the Link Server debugger to upload some test code on to my LPCXpresso54S018 card. If the previously loaded code had a severe error that caused the CPU to not stop in a graceful way, then I get a message from the debugger saying that it cannot halt the processor when I try to upload new code.
The bad code is in flash and runs each time that the board is reset.
How do I force the CPU to halt or how do I clear out the code in flash so that it will not run on the next board reset? Is there a way to force the debugger to stop the CPU no matter what is going on?
Sometimes I can reflash the Link Server debugger and get it to upload a benign Hello World program to overwrite the bad code in flash. However, this doesn't always work.