So if static variables are stored in RAM, and their values does not change as long the power there, what does this function do and why do we need to call it at beginning of the code to recover variables _sysIsSoftReset()
Regards,
Hisham Abed
From:
Maurits van de
Kamp [mailto:m...@hitechnologies.nl]
Sent: Wednesday, March 30, 2005
7:06 AM
To: r...@yahoogroups.com
Subject: Re: [rabbit-semi] Re:
Writing Variables to Flash?
> Does using static variables solve your
problem?
>
> If you have a static variable declared and
then the
> board resets, it keeps its last
value.
When it resets, yes, but not when it powers down.
Static variables are
in ram, and it needs power to stay
there.
> I am not sure,
> but I guess only changing the variable's
value does
> not wear out the flash.
That's true, because it's not in the
flash. :o)
Maurits.
--
HiTECHnologies Industrial Automation
B.V.
Industrieweg 30, 3401 MA, IJsselstein, The
Netherlands
P.O.
box
242, 3400 AE, IJsselstein, The
Netherlands
Tel: +31 30 6875335
Fax: +31 30 6875333
E-mail: i...@hitechnologies.nl
Web: www.hitechnologies.nl
==================================================================
The information contained in this communication is
confidential and may
be legally privileged. It is intended solely for
the use of the
individual or entity to whom it is addressed and
others authorized to
receive it. If you are not the intended recipient
you
are hereby
notified that any disclosure, copying,
distribution or taking any action
in reliance on the contents of this information is
strictly prohibited
and may be unlawful.
HiTECHnologies B.V. is neither liable for the
contents, nor for the
proper, complete and timely transmission of the
information contained in
this communication.
===================================================================