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.
Hi Tech Pic18f452 MediumConst
-
- Lieutenant
- Posts: 92
- Joined: Tue Oct 27, 2009 7:50 pm
Re: Hi Tech Pic18f452 MediumConst
There are limitations in compilers. If you are using HITECH C, this is likely the issue. Mostly you will need their Professional version. If you are using HITECH C, you can ask this question in their forum and let us know as well. I never faced this kind of issue since I use a professional version.
-
- Lieutenant
- Posts: 92
- Joined: Tue Oct 27, 2009 7:50 pm
Re: Hi Tech Pic18f452 MediumConst
Thanks,
Actually I have disabled the Table Read in configuration register. Now i have removed disable the table reading. All is working fine. Thanks to all of you for your support.
Actually I have disabled the Table Read in configuration register. Now i have removed disable the table reading. All is working fine. Thanks to all of you for your support.