Yahoo Groups archive

Lpc2000

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

Message

Re: Debug JTAG - SCAN_N

2006-04-08 by krisgorn

> Are the contents of R2-R8 correct or does R2 actually
> contain what you would have expected to have been
> returned in R1?  

I write what I get precisely:

R0: 0x400000020  <- OK
R1: machine code of instruction which I put after LDM (I testing with
few instruction), here should be values of memory from 0x4000000 
R2: values of memory from 0x4000004 <- OK
R3: values of memory from 0x4000008 <- OK
etc.

It isn't problem with NOP before and after STM instruction.
Machine code of all instruction is good.  

My code (with or without putting instruction after LDM) working well
with AT91SAM7S64 and ML67Q5003 and with LPC2000 like above (I test it
with LPC2129, LPC2138, LPC2148). I know that this is ARM7TDMI cores,
not ARM7TMDI-S like in Philips ARM but I don't find any difference in
data sheet in debug of this core. Thats is magic for me, especialy
that writing memory and writing/reding ICE registes works OK.
I look in few open source soft for debugging of ARM7 and in all of
them was not instruction after LDM. Just RESTART after instruction
which is running at system speed.

Thanks and regards

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.