Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: JTAG Debugger

2005-10-27 by Rob Jansen

Mark,

>     Does anyone know how to setup flash jtag programming through the
>  debugger (AXD) ?

The LPC2106 user manual states (page 199):

JTAG FLASH PROGRAMMING INTERFACE

There are three possibilities for this interface:
1. Debug tools can write parts of the flash image to the RAM and then
execute the IAP call "Copy RAM to Flash" repeatedly
with proper offset.
2. Debug tools can execute the flash programming code via JTAG port.


I did not see a "3." in the user manual ... but point 1 seems to be simple.
Prepare a command parameter table with command and (optional) parameters
and have r0 point to this table, also have a piece in memory for the
command result table (point r1 to this) and then execute the IAP call.

I'm not sure how control gets back to the debugger so I would write a 2
word program (BL 0x7ffffff1 and a B <self> or NOP) and place a breakpoint
on the second instruction to return to the debugger.

Rob

-- Three is the number one shall count
   One shall not count to two unless to proceed to three ...

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.