I wanted to put some data into paged RAM, including arrays, but when I tested it, I found an addressing exception if the index of the array was a variable.
Below are the test cases and the results:
The result shows that the index of the array was a variable addressing error, and the index of the array was a constant addressing correct.
How can I get around this issue? Could someone please explain in more detail how to solve this problem? Thanks a bunch!
on the basis of memory model the variables and pointers are far or near in default. Because I do not see entire project to see everything I think better is to share an example code you can test. Moreover, it is necessary to correctly understand memory map and addressing modes.
Please look into attachment. I suppose you use XEP100 device.
I believe it will help you.