EmbeddedRelated.com
Forums

Reset from C code

Started by Nick Price August 18, 2011
Hi Group.

This might sound easy, but it's got me in knots.

I want to be able to reset my MSP430F5419 by sending it a serial comms
command. I could let the watchdog timer timeout, but is there an easier
way to call the RESET_VECTOR.

I'm using CrossWorks 2.1.2.

Cheers

Nick

Beginning Microcontrollers with the MSP430

Hi,

WDTCTL = 0; will do the trick.

Calin

On 18/08/2011 11:19, Nick Price wrote:
>
> Hi Group.
>
> This might sound easy, but it's got me in knots.
>
> I want to be able to reset my MSP430F5419 by sending it a serial comms
> command. I could let the watchdog timer timeout, but is there an easier
> way to call the RESET_VECTOR.
>
> I'm using CrossWorks 2.1.2.
>
> Cheers
>
> Nick


Thanks Calin.

Now I feel small, that was so obvious.

Cheers

Nick

On 18/08/2011 15:27, Gabriel Calin wrote:
>
> Hi,
>
> WDTCTL = 0; will do the trick.
>
> Calin
>
> On 18/08/2011 11:19, Nick Price wrote:
> >
> > Hi Group.
> >
> > This might sound easy, but it's got me in knots.
> >
> > I want to be able to reset my MSP430F5419 by sending it a serial comms
> > command. I could let the watchdog timer timeout, but is there an easier
> > way to call the RESET_VECTOR.
> >
> > I'm using CrossWorks 2.1.2.
> >
> > Cheers
> >
> > Nick
> >
> >

--
Regards

Nick Price
Technical Manager.
Signatrol Ltd.
105 Church Street,
Tewkesbury,
Gloucestershire,
GL20 5AB

Tel: +44 (0)1684 299 399
Fax: +44(0)1684 299 375
www.signatrol.com
Registered in England 04973283

Unless expressly stated otherwise, the information contained in this email is confidential and is intended only for the named recipients. You must not copy, distribute, or take any action or reliance upon it. If you have received this email in error, please notify the sender. Any unauthorized disclosure of the information contained in this email is strictly prohibited.

The information contained in this email may be subject to public disclosure under the Freedom of information Act 2000. Unless the information is legally exempt from disclosure, the confidentiality of this email and your reply cannot be guaranteed.



Hi,
I am pretty sure it is WDTCTL = 0; . I am not sure if that is what you
put there Calin but it looks like the letter o not the number zero.
That might be just a font thing those don't always translate well.

Jake

On 8/18/2011 7:27 AM, Gabriel Calin wrote:
>
> Hi,
>
> WDTCTL = 0; will do the trick.
>
> Calin
>
> On 18/08/2011 11:19, Nick Price wrote:
> >
> > Hi Group.
> >
> > This might sound easy, but it's got me in knots.
> >
> > I want to be able to reset my MSP430F5419 by sending it a serial comms
> > command. I could let the watchdog timer timeout, but is there an easier
> > way to call the RESET_VECTOR.
> >
> > I'm using CrossWorks 2.1.2.
> >
> > Cheers
> >
> > Nick
> >
> >



Hi Jake

Calin was correct. Done worry, works a treat.

Cheers

Nick

On 18/08/2011 15:45, Jake G. wrote:
>
> Hi,
> I am pretty sure it is WDTCTL = 0; . I am not sure if that is what you
> put there Calin but it looks like the letter o not the number zero.
> That might be just a font thing those don't always translate well.
>
> Jake
>
> On 8/18/2011 7:27 AM, Gabriel Calin wrote:
> >
> > Hi,
> >
> > WDTCTL = 0; will do the trick.
> >
> > Calin
> >
> > On 18/08/2011 11:19, Nick Price wrote:
> > >
> > > Hi Group.
> > >
> > > This might sound easy, but it's got me in knots.
> > >
> > > I want to be able to reset my MSP430F5419 by sending it a serial comms
> > > command. I could let the watchdog timer timeout, but is there an
> easier
> > > way to call the RESET_VECTOR.
> > >
> > > I'm using CrossWorks 2.1.2.
> > >
> > > Cheers
> > >
> > > Nick
> > >
> > >
> >
> >
> >
> >

--
Regards

Nick Price
Technical Manager.
Signatrol Ltd.
105 Church Street,
Tewkesbury,
Gloucestershire,
GL20 5AB

Tel: +44 (0)1684 299 399
Fax: +44(0)1684 299 375
www.signatrol.com
Registered in England 04973283

Unless expressly stated otherwise, the information contained in this email is confidential and is intended only for the named recipients. You must not copy, distribute, or take any action or reliance upon it. If you have received this email in error, please notify the sender. Any unauthorized disclosure of the information contained in this email is strictly prohibited.

The information contained in this email may be subject to public disclosure under the Freedom of information Act 2000. Unless the information is legally exempt from disclosure, the confidentiality of this email and your reply cannot be guaranteed.



Hi,

Are you using Thunderbird too? The "zero" looks like the letter "o"
because the system found used by my thunderbird. Not sure if it happens
on all machines...

Calin

On 18/08/2011 11:45, Jake G. wrote:
>
> Hi,
> I am pretty sure it is WDTCTL = 0; . I am not sure if that is what you
> put there Calin but it looks like the letter o not the number zero.
> That might be just a font thing those don't always translate well.
>
> Jake
>
> On 8/18/2011 7:27 AM, Gabriel Calin wrote:
> >
> > Hi,
> >
> > WDTCTL = 0; will do the trick.
> >
> > Calin
> >
> > On 18/08/2011 11:19, Nick Price wrote:
> > >
> > > Hi Group.
> > >
> > > This might sound easy, but it's got me in knots.
> > >
> > > I want to be able to reset my MSP430F5419 by sending it a serial comms
> > > command. I could let the watchdog timer timeout, but is there an
> easier
> > > way to call the RESET_VECTOR.
> > >
> > > I'm using CrossWorks 2.1.2.
> > >
> > > Cheers
> > >
> > > Nick
> > >
> > >
> >
> >
> >
> >


Hi Calin,
You nailed it right on the head! I started using thunderbird due to my
personal and work accounts got a bit intermingled. I figured it was
something dumb like that, sometimes you love technology and some times
it makes you
(http://4.bp.blogspot.com/-SLhcQfuSGcE/TbC9VER0R9I/AAAAAAAAAB8/l4Wio43GSIA/s1600/facepalm_picard2.jpg).

Jake

On 8/18/2011 9:20 AM, Gabriel Calin wrote:
>
> Hi,
>
> Are you using Thunderbird too? The "zero" looks like the letter "o"
> because the system found used by my thunderbird. Not sure if it happens
> on all machines...
>
> Calin
>
> On 18/08/2011 11:45, Jake G. wrote:
> >
> > Hi,
> > I am pretty sure it is WDTCTL = 0; . I am not sure if that is what you
> > put there Calin but it looks like the letter o not the number zero.
> > That might be just a font thing those don't always translate well.
> >
> > Jake
> >
> > On 8/18/2011 7:27 AM, Gabriel Calin wrote:
> > >
> > > Hi,
> > >
> > > WDTCTL = 0; will do the trick.
> > >
> > > Calin
> > >
> > > On 18/08/2011 11:19, Nick Price wrote:
> > > >
> > > > Hi Group.
> > > >
> > > > This might sound easy, but it's got me in knots.
> > > >
> > > > I want to be able to reset my MSP430F5419 by sending it a serial
> comms
> > > > command. I could let the watchdog timer timeout, but is there an
> > easier
> > > > way to call the RESET_VECTOR.
> > > >
> > > > I'm using CrossWorks 2.1.2.
> > > >
> > > > Cheers
> > > >
> > > > Nick
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >



On 18.08.2011 16:19, Nick Price wrote:
:
> I want to be able to reset my MSP430F5419 by sending it a serial comms
> command. I could let the watchdog timer timeout, but is there an easier
> way to call the RESET_VECTOR.
:

For the MSP430F541xA family a reset of the device can also be done via
PMMCTL0. This register allows you to initiate BOR/POR by software.

Hardy