Sorry for the wrong place.
Here is my orginal prm file:
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
ROM = READ_ONLY 0x8000 TO 0xFFAF;
Z_RAM = READ_WRITE 0x0060 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x105F;
ROM1 = READ_ONLY 0xFFC0 TO 0xFFD1;
ROM2 = READ_ONLY 0x1870 TO 0x7FFF;
ROM3 = READ_ONLY 0x1060 TO 0x17FF;
END
I want to declare 1024 byte as non-initialized. Here is modified prm file:
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
ROM = READ_ONLY 0x8000 TO 0xFFAF;
Z_RAM = READ_WRITE 0x0060 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x0C5F;
NO_INIT_RAM = NO_INIT 0x0C60 TO 0x105F;
ROM1 = READ_ONLY 0xFFC0 TO 0xFFD1;
ROM2 = READ_ONLY 0x1870 TO 0x7FFF;
ROM3 = READ_ONLY 0x1060 TO 0x17FF;
END
And here is my variable declaration in "nvram.c" module:
#ifndef NVRAM_C
#define NVRAM_C
#pragma DATA_SEG NO_INIT_RAM
TNode RestorePoint;
TNVRAM NV;
#pragma DATA_SEG DEFAULT
#endif
Are all them correct?
Thank you for the help.
Message Edited by BasePointer on 2006-12-3012:13 PM