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.
![Imagine Conference](https://d23s79tivgl8me.cloudfront.net/new2/images/temp/EOC2025_EB_LB.png)
Variable in RAM that shall keep its value after watchdog reset
Started by ●December 20, 2007
Reply by ●December 20, 20072007-12-20
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.
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.
![Imagine Conference](https://d23s79tivgl8me.cloudfront.net/new2/images/temp/EOC2025_EB_LB.png)