Yahoo Groups archive

Lpc2000

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

Thread

External Reset vs Power Up

External Reset vs Power Up

2005-05-04 by michael_rubinstein_sar

I'm debugging a new 2138 based design.

If the board is powered up, eveything works as expected.  However, if 
an external reset (\RESET) is then applied, several funny things happen:

o  JTAG stops working.
o  P0.18 which is configured as a timer capture input, sinks current.
o  P0.4 which is used as SPI SCK, in master mode, stops going high.

I verified the values in PINSEL, IODIR and IOSET.  They are correct and 
the same in both cases.

Any help appreciated.

Thanks,
Michael Rubinstein

Re: External Reset vs Power Up

2005-05-04 by lpc2100_fan

Hello Michael,

one possible reason although this might not seem related.  If you have
an external signal on pin 0.31 that would drive this pin low during
reset (no matter which reset), the LPC2138 will no longer enable the
JTAG.  Please make sure that P0.31 not driven externally (has a weak
pull-up) when any reset occurs. 

hth, Bob



--- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
<michael_rubinstein_sar@y...> wrote:
Show quoted textHide quoted text
> I'm debugging a new 2138 based design.
> 
> If the board is powered up, eveything works as expected.  However, if 
> an external reset (\RESET) is then applied, several funny things happen:
> 
> o  JTAG stops working.
> o  P0.18 which is configured as a timer capture input, sinks current.
> o  P0.4 which is used as SPI SCK, in master mode, stops going high.
> 
> I verified the values in PINSEL, IODIR and IOSET.  They are correct and 
> the same in both cases.
> 
> Any help appreciated.
> 
> Thanks,
> Michael Rubinstein

Re: External Reset vs Power Up

2005-05-05 by michael_rubinstein_sar

Hi Bob, thanks for the help.

I'll bet you meant 1.31 (\TRST).  This signal is not connected on 
our board.  However, it is driven high by the JTAG gizmo (J-Link).

The other problems are really odd.  After an external reset, some of 
the I/O pins just don't work.  I tried disconnecting 0.18 from other 
circuitry, programming it as a gpio output and toggling it a few 
times.  It works as expected after a power-up but just stays low 
after an external reset.

My code doesn't know the difference between a power-up reset and an 
external reset.  I wonder if the ISP code behaves differently before 
it transfers control to my code.

Michael
 

--- In lpc2000@yahoogroups.com, "lpc2100_fan" <lpc2100_fan@y...> 
wrote:
> Hello Michael,
> 
> one possible reason although this might not seem related.  If you 
have
> an external signal on pin 0.31 that would drive this pin low during
> reset (no matter which reset), the LPC2138 will no longer enable 
the
> JTAG.  Please make sure that P0.31 not driven externally (has a 
weak
> pull-up) when any reset occurs. 
> 
> hth, Bob
> 
> 
> 
> --- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
> <michael_rubinstein_sar@y...> wrote:
> > I'm debugging a new 2138 based design.
> > 
> > If the board is powered up, eveything works as expected.  
However, if 
> > an external reset (\RESET) is then applied, several funny things 
happen:
> > 
> > o  JTAG stops working.
> > o  P0.18 which is configured as a timer capture input, sinks 
current.
> > o  P0.4 which is used as SPI SCK, in master mode, stops going 
high.
> > 
> > I verified the values in PINSEL, IODIR and IOSET.  They are 
correct and 
Show quoted textHide quoted text
> > the same in both cases.
> > 
> > Any help appreciated.
> > 
> > Thanks,
> > Michael Rubinstein

Re: [lpc2000] Re: External Reset vs Power Up

2005-05-05 by k b shah (lascaux)

Gentleman,
I  am sharing my experience with J-Link, I hope it might help you to understand behaviour.

I had an issue with interrupts. My firmware works correctly (either in RAM of in flash.. I am using LPC2294 ...) when I power up the circuit  or provide reset by pressing reset switch on my Phytec development board.  When I am debugging  using J-Link, if I restart my program  without power up, my interupt does not work. I have a macro defined to provide reset to CPU but the reset provided by J-Link .... I do not get Reset pin going below 2V.... No reset actually occurs and this one creates the issue. I have tries same J-link on Atmel SAM7 series ARM7 development board , same problem, tried another J-link on both the board still same issue.... 
I did post this issue in this group earlier 
Show quoted textHide quoted text
  ----- Original Message ----- 
  From: michael_rubinstein_sar 
  To: lpc2000@yahoogroups.com 
  Sent: Thursday, May 05, 2005 10:45 AM
  Subject: [lpc2000] Re: External Reset vs Power Up


  Hi Bob, thanks for the help.

  I'll bet you meant 1.31 (\TRST).  This signal is not connected on 
  our board.  However, it is driven high by the JTAG gizmo (J-Link).

  The other problems are really odd.  After an external reset, some of 
  the I/O pins just don't work.  I tried disconnecting 0.18 from other 
  circuitry, programming it as a gpio output and toggling it a few 
  times.  It works as expected after a power-up but just stays low 
  after an external reset.

  My code doesn't know the difference between a power-up reset and an 
  external reset.  I wonder if the ISP code behaves differently before 
  it transfers control to my code.

  Michael


  --- In lpc2000@yahoogroups.com, "lpc2100_fan" <lpc2100_fan@y...> 
  wrote:
  > Hello Michael,
  > 
  > one possible reason although this might not seem related.  If you 
  have
  > an external signal on pin 0.31 that would drive this pin low during
  > reset (no matter which reset), the LPC2138 will no longer enable 
  the
  > JTAG.  Please make sure that P0.31 not driven externally (has a 
  weak
  > pull-up) when any reset occurs. 
  > 
  > hth, Bob
  > 
  > 
  > 
  > --- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
  > <michael_rubinstein_sar@y...> wrote:
  > > I'm debugging a new 2138 based design.
  > > 
  > > If the board is powered up, eveything works as expected.  
  However, if 
  > > an external reset (\RESET) is then applied, several funny things 
  happen:
  > > 
  > > o  JTAG stops working.
  > > o  P0.18 which is configured as a timer capture input, sinks 
  current.
  > > o  P0.4 which is used as SPI SCK, in master mode, stops going 
  high.
  > > 
  > > I verified the values in PINSEL, IODIR and IOSET.  They are 
  correct and 
  > > the same in both cases.
  > > 
  > > Any help appreciated.
  > > 
  > > Thanks,
  > > Michael Rubinstein




------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/lpc2000/
      
    b.. To unsubscribe from this group, send an email to:
    lpc2000-unsubscribe@yahoogroups.com
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]

Re: External Reset vs Power Up

2005-05-05 by lpc2100_fan

Michael,

I did mean P0.31 not P1.31.  P0.31 is an output only pin but according
to the information that I got, it gets sampled at reset and can
generate weird things if it is low @ reset.

Bob

--- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
<michael_rubinstein_sar@y...> wrote:
Show quoted textHide quoted text
> Hi Bob, thanks for the help.
> 
> I'll bet you meant 1.31 (\TRST).  This signal is not connected on 
> our board.  However, it is driven high by the JTAG gizmo (J-Link).
> 
> The other problems are really odd.  After an external reset, some of 
> the I/O pins just don't work.  I tried disconnecting 0.18 from other 
> circuitry, programming it as a gpio output and toggling it a few 
> times.  It works as expected after a power-up but just stays low 
> after an external reset.
> 
> My code doesn't know the difference between a power-up reset and an 
> external reset.  I wonder if the ISP code behaves differently before 
> it transfers control to my code.
> 
> Michael
>  
> 
> --- In lpc2000@yahoogroups.com, "lpc2100_fan" <lpc2100_fan@y...> 
> wrote:
> > Hello Michael,
> > 
> > one possible reason although this might not seem related.  If you 
> have
> > an external signal on pin 0.31 that would drive this pin low during
> > reset (no matter which reset), the LPC2138 will no longer enable 
> the
> > JTAG.  Please make sure that P0.31 not driven externally (has a 
> weak
> > pull-up) when any reset occurs. 
> > 
> > hth, Bob
> > 
> > 
> > 
> > --- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
> > <michael_rubinstein_sar@y...> wrote:
> > > I'm debugging a new 2138 based design.
> > > 
> > > If the board is powered up, eveything works as expected.  
> However, if 
> > > an external reset (\RESET) is then applied, several funny things 
> happen:
> > > 
> > > o  JTAG stops working.
> > > o  P0.18 which is configured as a timer capture input, sinks 
> current.
> > > o  P0.4 which is used as SPI SCK, in master mode, stops going 
> high.
> > > 
> > > I verified the values in PINSEL, IODIR and IOSET.  They are 
> correct and 
> > > the same in both cases.
> > > 
> > > Any help appreciated.
> > > 
> > > Thanks,
> > > Michael Rubinstein

Re: External Reset vs Power Up

2005-05-07 by michael_rubinstein_sar

Bob,

You are absolutely right.  The Errata has a note on it.  Jim E. of 
Philips was very helpful in pointing this out also.

So the moral of the story is:

P0.31 of the 2138 should only be used as an output and it must be 
high during reset or "device behaviour is undetermined".

Thanks for the help.

Michael

--- In lpc2000@yahoogroups.com, "lpc2100_fan" <lpc2100_fan@y...> 
wrote:
> Michael,
> 
> I did mean P0.31 not P1.31.  P0.31 is an output only pin but 
according
> to the information that I got, it gets sampled at reset and can
> generate weird things if it is low @ reset.
> 
> Bob
> 
> --- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
> <michael_rubinstein_sar@y...> wrote:
> > Hi Bob, thanks for the help.
> > 
> > I'll bet you meant 1.31 (\TRST).  This signal is not connected 
on 
> > our board.  However, it is driven high by the JTAG gizmo (J-
Link).
> > 
> > The other problems are really odd.  After an external reset, 
some of 
> > the I/O pins just don't work.  I tried disconnecting 0.18 from 
other 
> > circuitry, programming it as a gpio output and toggling it a few 
> > times.  It works as expected after a power-up but just stays low 
> > after an external reset.
> > 
> > My code doesn't know the difference between a power-up reset and 
an 
> > external reset.  I wonder if the ISP code behaves differently 
before 
> > it transfers control to my code.
> > 
> > Michael
> >  
> > 
> > --- In lpc2000@yahoogroups.com, "lpc2100_fan" <lpc2100_fan@y...> 
> > wrote:
> > > Hello Michael,
> > > 
> > > one possible reason although this might not seem related.  If 
you 
> > have
> > > an external signal on pin 0.31 that would drive this pin low 
during
> > > reset (no matter which reset), the LPC2138 will no longer 
enable 
> > the
> > > JTAG.  Please make sure that P0.31 not driven externally (has 
a 
> > weak
> > > pull-up) when any reset occurs. 
> > > 
> > > hth, Bob
> > > 
> > > 
> > > 
> > > --- In lpc2000@yahoogroups.com, "michael_rubinstein_sar"
> > > <michael_rubinstein_sar@y...> wrote:
> > > > I'm debugging a new 2138 based design.
> > > > 
> > > > If the board is powered up, eveything works as expected.  
> > However, if 
> > > > an external reset (\RESET) is then applied, several funny 
things 
> > happen:
> > > > 
> > > > o  JTAG stops working.
> > > > o  P0.18 which is configured as a timer capture input, sinks 
> > current.
> > > > o  P0.4 which is used as SPI SCK, in master mode, stops 
going 
Show quoted textHide quoted text
> > high.
> > > > 
> > > > I verified the values in PINSEL, IODIR and IOSET.  They are 
> > correct and 
> > > > the same in both cases.
> > > > 
> > > > Any help appreciated.
> > > > 
> > > > Thanks,
> > > > Michael Rubinstein

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.