Alexander Tolchinsky

How to stop CPU (LPC4337) after reset and before starting of the program from internal memory?

Discussion created by Alexander Tolchinsky on Sep 1, 2017
Latest reply on Sep 4, 2017 by jeremyzhou

There is mistake in my program: after switching to a new clock CPU don't work and DAP (JTAG/SWD) too - I can't neither erase the internal flash, nor write new program. It is necessary to stop CPU after release of reset and before starting of the wrong program. How to make it?
I use LPC-Link2 and my MCU is LPC4337.

 

Now I solved this problem: P2_7 = LOW and BOOTLOADER works in ISP mode - in this mode my program with an error is not launched and I could erase flash. But how to solve this problem with the help of the debugger of LPC-Link2?

Outcomes