I'm working with a PIC24EP512MC microcontroller with XC16 compiler. As the part number indicates, the device has 512KB of flash/program memory. I want to be able to save as many as 10 large arrays (25KB) of unsigned 8-bit integer constants in flash. I have been advised by a forum member that this can be done by moving the PSV window through multiple pages of flash, but I have my doubts as to whether or not that is possible because the XC16 guide seems to contradict his assertion. Page 166 of the XC16 guide states:
"For objects allocated in a compiler-managed PSV window (auto_psv space) the total
memory available for allocation is limited by the size of the PSV window itself. Thus no
single object can be larger than the size of the PSV window, and all such objects must
not total larger than this window."
As far as I know, the PSV window is 32KB. Is there any way to move the PSV window to access multiple pages containing large, 25KB arrays? Is there any other alterative method to save more than one 25KB array of constants in flash?
"For objects allocated in a compiler-managed PSV window (auto_psv space) the total
memory available for allocation is limited by the size of the PSV window itself. Thus no
single object can be larger than the size of the PSV window, and all such objects must
not total larger than this window."
As far as I know, the PSV window is 32KB. Is there any way to move the PSV window to access multiple pages containing large, 25KB arrays? Is there any other alterative method to save more than one 25KB array of constants in flash?