Hello, did everyone know how i can locate my const variables in XDATA memory. I want to generate the ?XC? const xdata memory prefix. Example : const xdata char test[]="asdc"; This data should be stored in the xdata memory section, becaus EEProm is mapped there. Therefore the EEProm will be written by a external tool.
1) a "constant variable" is a misnomer. 2) Constants can, by definition, only be located in CODE, that should not be a problem. I have made many designs with PSEN and RD or'ed and used const with no problems. Erik
This will place your const variable in XDATA memory space: const char xdata test[]="asdc"; Stefan
Thanks, i think that will help me.