Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Debug JTAG - SCAN_N

2006-04-07 by Stanley Frederickson

Sounds like you are getting pretty close.

> Reading of registers is OK becouse I always get this
> same values.
The reading results sound like they are consistent but
wrong so I am suspicious that this is where your
problem now lies.  

Are the contents of R2-R8 correct or does R2 actually
contain what you would have expected to have been
returned in R1?  If so, then this means that you are
missing a NOP between the STM instruction and the
operation where you actually start reading the
contents of the registers out over the databus.  Is it
possible that you are using the wrong machine code for
your STM instruction so that it is missing the R1
register from the bitmask?  This coupled with a
missing NOP or the use of STMDB would give you the
results that you mention below.

> In R0 is NOP but should be value of RAM from address
> 0x40000000.
I take it that you are actually talking about R1 here
and not R0?

Hope this helps?
--- krisgorn <kryniok@...> wrote:
> I add NOP after LDMIA and now I get:
> 
> R0: 0x40000020
> R1: NOP
> R2-R8: correct values of RAM from address
> 0x40000004.
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

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.