Content originally posted in LPCWare by IanB on Sat Apr 02 05:56:08 MST 2016
I am debugging some LPC1517 code, and I find that almost every time I get a "hard fault" error, the processor goes into a state from which it needs an ISP reset.
Now, ISP reset on an LPC15xx is not the easiest to do as I didn't have the foresight to include connectors either BOTH ISP reset pins, so it's a bit of a tricky affair with three bits of 0.2mm wire.
The next problem is that as soon as RESET is negated and before the debugger takes control, the processor restarts, runs the code with the bug in it that causes the hard fault, and we're back to where we started.
IS there any way of avoiding the need for the ISP reset every time I get a hard-fault?
Why can't there be a way of resetting the ISP from Serial Wire?