Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] Keil MCB2130 Reset Problems?

2005-09-02 by David Hawkins

> > An idea:
> > 
> > When debugging with JTAG, often the program runs out of SRAM.
> > Unless the loader explicitly clears RAM (eg. the .bss area),
> > then there is a chance that you will see differences between
> > a cold start (pulling the plug) versus a warm start (any form
> > of reset).
> > 
> > So, if you code looks at some variable that you assume to be
> > zero - change it to explicitly set that variable to zero
> > (making it part of the data section).
> > 
> 
> The startup code from Rowley clears ram first I think, and all my 
> variables are initialized at powerup anyway. It seems to be related to 
> the hardware registers, maybe the VIC setup, that are causing problems.
>

The data sheet usually specifies a 'reset value' for registers,
so normally those registers will be cleared. 

Try a flash RAM version of the program. Hit reset with that
loaded. At least that will convince you that the problem is RAM 
program related. Since in that case the VIC will be reset the same 
as in the RAM test case.

Good luck with the debugging.

Dave

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.