Forums

Variable in RAM that shall keep its value after watchdog reset

Started by cmaybisher December 20, 2007
Hi,

I need to define a variable in ram that must keep its value after
watchdog reset.
I defined simply a unsigned long variable. I wrote a value but after
watchdog reset its value was different.
I need to do it to check if I came to some software sentence from
power up or from watchdog.
I haven't possibility for doint it in EEPROM.

Please, could somebody help me?

Thanks.

Claudio.

Beginning Microcontrollers with the MSP430

Use __no_init keyword in IAR.
It mantains the last value in any reset condition.

_____

From: m... [mailto:m...] On Behalf Of
cmaybisher
Sent: Jueves, 20 de Diciembre de 2007 11:07 a.m.
To: m...
Subject: [msp430] Variable in RAM that shall keep its value after watchdog
reset

Hi,

I need to define a variable in ram that must keep its value after
watchdog reset.
I defined simply a unsigned long variable. I wrote a value but after
watchdog reset its value was different.
I need to do it to check if I came to some software sentence from
power up or from watchdog.
I haven't possibility for doint it in EEPROM.

Please, could somebody help me?

Thanks.

Claudio.

12:00
a.m.

12:00
a.m.