Hi Rahul,
in hcs12x, data in paged ram is accessed in "near" by default, to access data in paged RAM, keywords "rptr" or "far" are necessary.
I made demo code for this topic.
in the sample I use two methods (global address and paged address) to access paged RAM.
In prm file, I defined a global RAM:
GLOBAL_RAM = READ_WRITE 0xF0000'G TO 0XF0FFF'G;
MY_GLOBAL_RAM INTO GLOBAL_RAM;
I upload the sample to this SR web server, please download it there.
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------