Bricked! Debugging LPC1313 with ARM-JTAG-EW

Hi Guys.

I am debugging an LPC1313 using the ARM-JTAG-EW with IAR 5.4. I have a couple issues that I can’t seem to get around.

The first problem is I have managed to brick two boards. During the startup sequence in system_LPC1313.c there are a number of macros and defines for configuring clock speed. I discovered the hard way that the macros allow you to choose the PLL output as your system clock without giving the commands to first enable it. Once I did that, I found that I can no longer attach to the chip via ARM-JTAG-EW and only get the message …

Fri Feb 04 09:17:39 2011: Fatal error: ERROR: Error while selecting target interface, error code -2114 (ADIv5 Debug Port invalid response) Session aborted!

This leads me to my second problem. How do I properly configure the hardware to RESET via the JTAG. The RESET pin (active low) has a 10K pull_up. When I connect it NTRST line from the ARM-JTAG-EW, it is continually pulled low and I still can’t attach to the chip. Should I hook to the STRST instead?

Does anybody have a suggestion where to start to tackle my problem?

Hank

Haven’t worked with 13xx, but are you trying to debug the code that is loaded to the flash?

In that case try to connect to the serial bootloader and erase flash memory (and all the protection fuses that can be deleted that way).

Thanks. When I get home, I’ll hook up a level translator to the serial lines and try that. I guess the tool to use is Flash Magic http://www.flashmagictool.com/.

I’ll also have to find a way to connect to P0_1 … As I recall I didn’t lead out this pin on a QFN package. It’s going to be tight!

In closing …

I tried the Flash Magic route and couldn’t get it to connect to the chip.

In the interests of saving time I fired up the hotplate and replaced the chip.

I’ll add support for uart based ISP on the next spin, I needed the UART later anyway.