Hi,Dear kef.
Thanks for your help.
I implement these work:
In prm file:
MySeg INTO PAGE_FE;
MyCode INTO PAGE_FC;
In my.c file:
#pragma CONST_SEG __GPAGE_SEG MySeg
const int sa[4] = {0x11, 0x12, 0x13, 0x14};
#pragma CONST_SEG DEFAULT
And then I want to access sa in PAGE_FE flash area.
int * __far g_psa;
int x = 0;
#pragma CODE_SEG MyCode
void ReadSa()
{
g_psa = (int* __far)sa ;
x = *(int * __far)g_psa++;//x = 0,not 0x11
x = *(int * __far)g_psa++;//x = 0, not 0x12
x = *(int * __far)g_psa++;//x = 0, not 0x13
x = *(int * __far)g_psa;
}
#pragma CODE_SEG DEFAULT
How to get the right data:0x11,0x12,0x13?
How to access access 0xFE from page 0xFC?
Thanks.