This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Avoiding startup initialization of variables

Hello all,
My target is based on micro T89C51RD2 (with 64K flash, 1K RAM and 2K EEPROM), also in my target 32K SRAM and 8K EEPROM.
I need that some values of some parameters will not bee initialized to zero after reset (not power down). I reed and implemented what was written in post http://www.keil.com/support/docs/826.htm,
but it still not working.
In the STARTUP.A51 I changed the XDATASTART and XDATALEN as follow:
XDATASTART EQU 1C20H
XDATALEN EQU 10000H
In my program I locate the variable in addr 0x0000:
volatile rcvMSG xdata stRxBuff[NUM][LEN] _at_ 0x1000;
Am I missing something?

Please help,
Ruven