Hi,
I do not know which type of the MCU you use so I have attached two examples.
There is, I think, detailed description how to use variables. I would like to direct your attention to a text:
/*
Notes:
- Look at compiler command line which has to contain -D__FAR_DATA option
because there is note in the Start12.c file at the line 40
- It is also good to think about next compiler option __BANKED_COPY_DOWN;
line 49 in the Start12.c
- variable eee is not processed correctly because it missing "far" in the variable
definition
notes:
- I advise to step the code within simulator to better understand how it works.
- During simulation; Drag and drop the variable from "Data:1" window to
Memory window to find variables within memory
*/
I hope, it will help you.
If this does not answer your question(s), or I have forgotten something, or if you need more assistance, please contact me again.
If the answer is helpful, please label it.
Best regards,
Ladislav