In the banked memory model, variables placed in the DEFAULT_RAM section must be allocated in the normal 16 bit memory area, and not banked.
Has this been done?
How is DIM_DWork defined and declared, is it in a
#pragma DATA_SEG __RPAGE_SEG NAMEX
(or #pragma DATA_SEG __GPAGE_SEG NAMEY)
area?
Also note that allocating parts of DEFAULT_RAM into a non paged area is not safe (as it is done in the prm).
> DEFAULT_RAM /* all variables, the default RAM location */
> INTO RAM; // Not: RAM_FD,RAM_FC ;
> NAMEX INTO RAM_FD;
> NAMEY INTO RAM_FC;
Note that the paged RAM can be used for the XGATE only section (XGATE_RAM).
Daniel