Sign in

username or email:

password:



Not a member?
Forgot your Password?

Search lpc2000



Search tips

Subscribe to lpc2000



Ads

Discussion Groups

See Also

DSPFPGA

Discussion Groups | LPC2000 | LPC2148 register values on reset

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs


So far in May, you have voted 0 times ou of a total of 22 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.


Is this thread worth a thumbs up?

+1

LPC2148 register values on reset - Sutton Mehaffey - Jun 27 11:11:41 2012

I've noticed on my Keil debugger that Timer0 and Timer1 register values
are not being reset according to the user manual on CPU reset. In
looking at the VIC and individual registers for T0 and T1, none of the
registers are reset when I reset the debugger. Is resetting the
debugger (even though the ICON says 'Reset the CPU') not really
resetting the chip? Anybody know who has the Keil debugger (uVision 4)?
--
Sutton Mehaffey
Lookout Portable Security
4040 Royal Dr.
Kennesaw, GA 30144
770-514-7999, 800-207-6269
Fax: 770-514-1285
http://www.lookoutportablesecurity.com
s...@lookoutportablesecurity.com




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC2148 register values on reset - Alexan_e - Jun 27 11:31:04 2012

On 27/6/2012 18:11, Sutton Mehaffey wrote:
>
> I've noticed on my Keil debugger that Timer0 and Timer1 register values
> are not being reset according to the user manual on CPU reset. In
> looking at the VIC and individual registers for T0 and T1, none of the
> registers are reset when I reset the debugger. Is resetting the
> debugger (even though the ICON says 'Reset the CPU') not really
> resetting the chip? Anybody know who has the Keil debugger (uVision 4)?
> --
> Sutton Mehaffey
> Lookout Portable Security
> 4040 Royal Dr.
> Kennesaw, GA 30144
> 770-514-7999, 800-207-6269
> Fax: 770-514-1285
> http://www.lookoutportablesecurity.com
> s...@lookoutportablesecurity.com

I suppose you refer to a hardware debugger (as opposed to the keil simulator).
Which registers have different values, do you refer to interrupt flags?
Do you get proper values when you start debugging but they don't reset when you use the RST button in keil or the values are wrong
even when you start the debug?

--
Alex
---------------------
http://alexan.edaboard.eu/ (Home of ARMwizard, a free tool for peripheral initialization of LPC2xxx/17xx/13xx/11xx microcontrollers )







(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC2148 register values on reset - Sutton Mehaffey - Jun 27 11:40:30 2012

This is the hardware debugger attached to my target board. The values
are correct when they are set up, but are not reset according to the
manual (usually back to 0) on RST (Keil reset button). Things such as
Vector addresses, Timer enable bits (TCR), and Match Channel Registers
(MCR) seem to still have their last values. Just curious really.
Trying to track a possible stack overflow bug down, and I noticed that.

Sutton Mehaffey
Lookout Portable Security
4040 Royal Dr.
Kennesaw, GA 30144
770-514-7999, 800-207-6269
Fax: 770-514-1285
http://www.lookoutportablesecurity.com
s...@lookoutportablesecurity.com
On 6/27/2012 11:32 AM, Alexan_e wrote:
>
> On 27/6/2012 18:11, Sutton Mehaffey wrote:
> >
> > I've noticed on my Keil debugger that Timer0 and Timer1 register values
> > are not being reset according to the user manual on CPU reset. In
> > looking at the VIC and individual registers for T0 and T1, none of the
> > registers are reset when I reset the debugger. Is resetting the
> > debugger (even though the ICON says 'Reset the CPU') not really
> > resetting the chip? Anybody know who has the Keil debugger (uVision 4)?
> > --
> > Sutton Mehaffey
> > Lookout Portable Security
> > 4040 Royal Dr.
> > Kennesaw, GA 30144
> > 770-514-7999, 800-207-6269
> > Fax: 770-514-1285
> > http://www.lookoutportablesecurity.com
> > s...@lookoutportablesecurity.com
>
>
> >
> > I suppose you refer to a hardware debugger (as opposed to the keil
> simulator).
> Which registers have different values, do you refer to interrupt flags?
> Do you get proper values when you start debugging but they don't reset
> when you use the RST button in keil or the values are wrong
> even when you start the debug?
>
> --
> Alex
> ---------------------
> http://alexan.edaboard.eu/ (Home of ARMwizard, a free tool for
> peripheral initialization of LPC2xxx/17xx/13xx/11xx microcontrollers )
>
>







(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC2148 register values on reset - thenewfallguy - Jun 27 16:50:34 2012

Probably because it doesn't do a real (hardware) reset. You can do a core reset without resetting the rest of the chip.

--- In l..., Sutton Mehaffey wrote:
>
> This is the hardware debugger attached to my target board. The values
> are correct when they are set up, but are not reset according to the
> manual (usually back to 0) on RST (Keil reset button). Things such as
> Vector addresses, Timer enable bits (TCR), and Match Channel Registers
> (MCR) seem to still have their last values. Just curious really.
> Trying to track a possible stack overflow bug down, and I noticed that.
>
> Sutton Mehaffey
> Lookout Portable Security
> 4040 Royal Dr.
> Kennesaw, GA 30144
> 770-514-7999, 800-207-6269
> Fax: 770-514-1285
> http://www.lookoutportablesecurity.com
> sutton@...
> On 6/27/2012 11:32 AM, Alexan_e wrote:
> >
> > On 27/6/2012 18:11, Sutton Mehaffey wrote:
> > >
> > > I've noticed on my Keil debugger that Timer0 and Timer1 register values
> > > are not being reset according to the user manual on CPU reset. In
> > > looking at the VIC and individual registers for T0 and T1, none of the
> > > registers are reset when I reset the debugger. Is resetting the
> > > debugger (even though the ICON says 'Reset the CPU') not really
> > > resetting the chip? Anybody know who has the Keil debugger (uVision 4)?
> > > --
> > > Sutton Mehaffey
> > > Lookout Portable Security
> > > 4040 Royal Dr.
> > > Kennesaw, GA 30144
> > > 770-514-7999, 800-207-6269
> > > Fax: 770-514-1285
> > > http://www.lookoutportablesecurity.com
> > > sutton@...
> >
> >
> > >
> > >
> >
> > I suppose you refer to a hardware debugger (as opposed to the keil
> > simulator).
> > Which registers have different values, do you refer to interrupt flags?
> > Do you get proper values when you start debugging but they don't reset
> > when you use the RST button in keil or the values are wrong
> > even when you start the debug?
> >
> > --
> > Alex
> > ---------------------
> > http://alexan.edaboard.eu/ (Home of ARMwizard, a free tool for
> > peripheral initialization of LPC2xxx/17xx/13xx/11xx microcontrollers )
> >
> >
> >
> >
>
>





(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )