Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] destroyed LPC2138 via software

2005-10-26 by Bruce Paterson

> The LPC2000 chips don't support debug from reset (or at least 
> we've never seen one that can). By the time that a debugger 
> has got control, the chip will have executed many 
> instructions - including ones that could turn off the JTAG 
> port, abort, turn on interrupts etc. There are a couple of 
> workarounds to this
> 
> - Use the serial port bootloader to erase the flash before 
> each debug session.

You can also use your application to erase just the first sector. This
has the effect of gromping on the interrupt vector table and checksum,
and leaving you in the bootloader after reset. I use this as a method of
forcing you into the standard bootloader in order to perform upgrades.
Of course, this needs your application to be able to run, and if it were
able to run ok you wouldn't need to debug from reset (since you can just
do a normal reset once the debugger has attached).....

>   - putting an invalid checksum in the interrupt vectors

Cheers,
Bruce

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.