Hi Tech Pic18f452 MediumConst
Posted: Sat Nov 26, 2011 6:02 pm
Hi,
I am writing software in Hi Tech Pic IDE for Pic18f452. I have seen that when const code size comes in mediumconst. then i am not able to access the const data. But when i cut down the code, so that it fit into the smallconst. then i can access the const data.
how can i get my hand of mediumconst.
Routine used for accessing const data is
void f(cont unsigned char *p)
{ .............
}
Can anyone help me, how can i access when code comes in mediumconst. Note i have even check using
const far unsigned char *, but still not able to get.
I am writing software in Hi Tech Pic IDE for Pic18f452. I have seen that when const code size comes in mediumconst. then i am not able to access the const data. But when i cut down the code, so that it fit into the smallconst. then i can access the const data.
how can i get my hand of mediumconst.
Routine used for accessing const data is
void f(cont unsigned char *p)
{ .............
}
Can anyone help me, how can i access when code comes in mediumconst. Note i have even check using
const far unsigned char *, but still not able to get.