Reply by David Peters December 12, 20072007-12-12
I've already modified the code to use the DCO and toggle some LEDs. The
code is shown below. It doesn't get much more basic than this.
Unless there is something happening in the C startup code that I'm not aware
of, I can't see why a reset doesn't start the part up again.

int main( void )
{
unsigned long counter;

_DINT();

WDTCTL = WDTPW + WDTHOLD + WDTSSEL + WDTCNTCL; // Stop watchdog
timer

// enable P1.4 for external watchdog
P1OUT |= BIT_4;
P1DIR |= BIT_4;

WDTCTL = WDTPW + WDTHOLD + WDTSSEL + WDTCNTCL;

// _EINT();

WDTCTL = WDTPW + WDTSSEL + WDTCNTCL + WDTIS1 + WDTIS0;

P5OUT |= (BIT_3|BIT_4|BIT_5); // heartbeat led is
off
P5DIR |= (BIT_3|BIT_4|BIT_5); // set pin as output
while(1)
{
P1OUT &= ~BIT_4; / set external watchdog pin
low
WDTCTL = WDTPW + WDTSSEL + WDTCNTCL + WDTIS1 + WDTIS0;
P1OUT |= BIT_4; // set external watchdog pin high

counter++;
if (counter >= 25000L)
{
counter = 0;
P5OUT ^= (BIT_3|BIT_4|BIT_5);
}
}
}

________________________________________
From: m... [mailto:m...] On Behalf Of
Michael Iverson
Sent: Wednesday, December 12, 2007 12:23 PM
To: m...
Subject: RE: [msp430] MSP430 failing ESD tests

Hi David,

How is your system configured? External oscillators - LF and HF? I'd be
checking these - gate ACLK via the PxSEL special function, toggle
another pin with SMCLK configured as HF. Spit some stuff out the serial
port or toggle a sequence of pins and see where your program makes it
to. If that fails, try running from the DCO + basic toggle a pin w/ an
LED and see what happens.

Check your power too - is the thing in brownout? Are you using an SVS (
supply voltage supervisor ) - you can get built in external watchdogs
with SVS.

Good luck,

Michael

________________________________

From: m... [mailto:m...] On Behalf
Of David Peters
Sent: December 12, 2007 09:43 AM
To: m...
Subject: RE: [msp430] MSP430 failing ESD tests

FYI - We've added an external watchdog IC. We can get the system to lock
up
and the watchdog IC is pulling the reset line high/low, but the MSP430
never
seems to recover. I'm looking for other clues as to what might be going
on.
What could keep the micro from starting up after the reset line is
released?

David Peters

On 12/12/07, Michael Iverson
> wrote:
> I've seen the msp430 go off into the weeds before due to ESD.
>
> ESD can be a pain if you haven't taken precautions at the hardware
> level. I have to pass +/-25kV and we test to +/-30kV internally. The
> only way I got there was through hardware mitigation and careful
layout.
>

Just curious here, what is the product standard which require
25KV? Typically it is 6KV (contact) and 8KV (air discharge) for
many product.

Xiaofan

Beginning Microcontrollers with the MSP430

Reply by David Peters December 12, 20072007-12-12
We've already tried a manual reset.

________________________________________
From: m... [mailto:m...] On Behalf Of
tintronic
Sent: Wednesday, December 12, 2007 12:10 PM
To: m...
Subject: [msp430] Re: MSP430 failing ESD tests

Just an idea:
If you are using a high frequency crystal, the startup routine where
the crystal is turned on may be hanging up, waiting for it to stabilize.
Have you tryed a manual reset (with a reset switch) to see what
happens? I mean, maybe there is a timing for the reset procedure that
the external watchdog is not following.

Michael Kusch

--- In m..., "David Peters" wrote:
>
> FYI We've added an external watchdog IC. We can get the system to
lock up
> and the watchdog IC is pulling the reset line high/low, but the
MSP430 never
> seems to recover. I'm looking for other clues as to what might be
going on.
> What could keep the micro from starting up after the reset line is
released?
>
> David Peters
>
>
>
> On 12/12/07, Michael Iverson > > wrote:
> > I've seen the msp430 go off into the weeds before due to ESD.
> >
> > ESD can be a pain if you haven't taken precautions at the hardware
> > level. I have to pass +/-25kV and we test to +/-30kV internally. The
> > only way I got there was through hardware mitigation and careful
> layout.
> >
>
> Just curious here, what is the product standard which require
> 25KV? Typically it is 6KV (contact) and 8KV (air discharge) for
> many product.
>
> Xiaofan
>
>
>




Reply by Michael Iverson December 12, 20072007-12-12
Hi David,

How is your system configured? External oscillators - LF and HF? I'd be
checking these - gate ACLK via the PxSEL special function, toggle
another pin with SMCLK configured as HF. Spit some stuff out the serial
port or toggle a sequence of pins and see where your program makes it
to. If that fails, try running from the DCO + basic toggle a pin w/ an
LED and see what happens.

Check your power too - is the thing in brownout? Are you using an SVS (
supply voltage supervisor ) - you can get built in external watchdogs
with SVS.

Good luck,

Michael

________________________________

From: m... [mailto:m...] On Behalf
Of David Peters
Sent: December 12, 2007 09:43 AM
To: m...
Subject: RE: [msp430] MSP430 failing ESD tests

FYI - We've added an external watchdog IC. We can get the system to lock
up
and the watchdog IC is pulling the reset line high/low, but the MSP430
never
seems to recover. I'm looking for other clues as to what might be going
on.
What could keep the micro from starting up after the reset line is
released?

David Peters

On 12/12/07, Michael Iverson
> wrote:
> I've seen the msp430 go off into the weeds before due to ESD.
>
> ESD can be a pain if you haven't taken precautions at the hardware
> level. I have to pass +/-25kV and we test to +/-30kV internally. The
> only way I got there was through hardware mitigation and careful
layout.
>

Just curious here, what is the product standard which require
25KV? Typically it is 6KV (contact) and 8KV (air discharge) for
many product.

Xiaofan
Reply by tintronic December 12, 20072007-12-12
Just an idea:
If you are using a high frequency crystal, the startup routine where
the crystal is turned on may be hanging up, waiting for it to stabilize.
Have you tryed a manual reset (with a reset switch) to see what
happens? I mean, maybe there is a timing for the reset procedure that
the external watchdog is not following.

Michael Kusch

--- In m..., "David Peters" wrote:
>
> FYI We've added an external watchdog IC. We can get the system to
lock up
> and the watchdog IC is pulling the reset line high/low, but the
MSP430 never
> seems to recover. I'm looking for other clues as to what might be
going on.
> What could keep the micro from starting up after the reset line is
released?
>
> David Peters
>
>
>
> On 12/12/07, Michael Iverson > > wrote:
> > I've seen the msp430 go off into the weeds before due to ESD.
> >
> > ESD can be a pain if you haven't taken precautions at the hardware
> > level. I have to pass +/-25kV and we test to +/-30kV internally. The
> > only way I got there was through hardware mitigation and careful
> layout.
> >
>
> Just curious here, what is the product standard which require
> 25KV? Typically it is 6KV (contact) and 8KV (air discharge) for
> many product.
>
> Xiaofan
>
>
>



Reply by David Peters December 12, 20072007-12-12
FYI Weve added an external watchdog IC. We can get the system to lock up
and the watchdog IC is pulling the reset line high/low, but the MSP430 never
seems to recover. I'm looking for other clues as to what might be going on.
What could keep the micro from starting up after the reset line is released?

David Peters

On 12/12/07, Michael Iverson > wrote:
> I've seen the msp430 go off into the weeds before due to ESD.
>
> ESD can be a pain if you haven't taken precautions at the hardware
> level. I have to pass +/-25kV and we test to +/-30kV internally. The
> only way I got there was through hardware mitigation and careful
layout.
>

Just curious here, what is the product standard which require
25KV? Typically it is 6KV (contact) and 8KV (air discharge) for
many product.

Xiaofan