In .prm file following changes are done
SEGMENTS
/* paged FLASH: 0x8000 TO 0xBFFF; addressed through PPAGE */
FLASH_G1 = READ_ONLY 0x780000'G TO 0x78FFFF'G; // PAGE_E0 TO PAGE_E3
//Commented
/*
PAGE_E0 = READ_ONLY 0xE08000 TO 0xE0BFFF;
PAGE_E1 = READ_ONLY 0xE18000 TO 0xE1BFFF;
PAGE_E2 = READ_ONLY 0xE28000 TO 0xE2BFFF;
PAGE_E3 = READ_ONLY 0xE38000 TO 0xE3BFFF;
*/
END
PLACEMENT
USRPGM_FLASH INTO FLASH_G1;
END
Whenever I declare/Initialise the constant variables using the following Statement
#pragma CONST_SEG __GPAGE_SEG USRPGM_FLASH
const BYTE Menu_List1[4][18] =
{
"aaa\0,
bbbb\0",
"cccc\0",
"ddd\0"
};
#pragma CONST_SEG DEFAULT
When i try accessing the contents of the constant variables it displays Junk characters on my Alphanumeric LCD.
Pls let me know the following changes to be done, if any.