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

Generate Constant Variables in XDATA

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.

Parents
  • 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

Reply
  • 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

Children