What happens to persistent mem on prog load
What happens to persistent mem on prog load
If when I mod code it ends up a different size to before, does the persistent memory location (and hence any stored values) get effectively lost, or is persistent memory in a fixed area.
Re: What happens to persistent mem on prog load
Inasmuch as Persistent Memory (EEPROM on the AVR chip) and Program Memory (Flash memory on the AVR) are completely separate memory spaces, a change in code size has no effect on the address of a given Persistent Memory variable. The only thing that affects the allocation of Persistent Memory is the type, number and sizes (for arrays) of Persistent Memory variables.FFMan wrote:If when I mod code it ends up a different size to before, does the persistent memory location get effectively lost, or is persistent memory in a fixed area.
For further information and advice relating to adding new Persistent variables, see the ZBasic Language Reference Manual section discussing Persistent Variables.
- Don Kinzer