Hi, I have a made a code for testing a hardware board.The code on compilation generates an error code of L107 Address space overflow.After searching through the KEIL forum I came to know that once you define XDATA for all variables (including global variables),this error can be avoided.How to define XDATA and where?Please mail me & thanks in advance.
You said that you're "testing" the hardware. So how do you know if the malfunction is due to a software error, or a hardware error, or a hardware fault - or some combination?!
Surely, if you're just starting the stage of "testing" the hardware, you should just be writing a very, very simple piece of software for your first "test"?
Using XDATA requires that you have XDATA present & working on the board, and correctly configured in the software - have you done that?
If you don't know how to do that, then you should really be learning that first on some known-good hardware - before moving on to unknown hardware that needs "testing". Again, see the Basic Study links that I gave earlier.
"The address in which the variables are stored are not taken by the code as the same way"
Sorry - what do you mean by that??