P89C51RD2Hxx: How to configure XRAM to 32K

Hi,

Would anyone please advise me the steps as how to configure the settings [startup.a51]?? so that program can access or allocate XDATA varibales in 32K memory size??

Thanking you in advance.

Cheers,
Simon

Parents
  • Unless you have some strange derivative you don't need to modify startup.a51. Just make sure you've specified the correct size and start address for your xdata memory in Target->Options then declare variables with the xdata keyword:

    int xdata foo;

    A good "reading of the manual" wouldn't do any harm either.

    Stefan

Reply
  • Unless you have some strange derivative you don't need to modify startup.a51. Just make sure you've specified the correct size and start address for your xdata memory in Target->Options then declare variables with the xdata keyword:

    int xdata foo;

    A good "reading of the manual" wouldn't do any harm either.

    Stefan

Children
More questions in this forum