View previous topic :: View next topic |
Author |
Message |
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
Hardware vs Compiler and code migration to 4.xx |
Posted: Tue Jul 27, 2010 4:28 pm |
|
|
Looks like I may have to use a PIC18F87J11 on a development board. I have yet to make the migration to 4.xx.
What is the oldest compiler version to support the PIC18F87J11,
and...
If I am forced to use the 4.xx compiler, how much work is necessary in modifying code from 3.xx to compile on the 4.xx?
Thanks,
John |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jul 27, 2010 10:38 pm |
|
|
Quote: |
What is the oldest compiler version to support the PIC18F87J11, |
Vs. 4.039 is the first to have it, but that doesn't mean it works correctly
in that version. It usually takes several more versions to get all the
built-in functions working correctly. Or it might take a lot more.
Quote: |
How much work is necessary in modifying code from 3.xx to compile on the 4.xx?
|
You need to check your code and make sure that you're doing pointer
arithmetic the correct way (CCS implemented this, starting with
v4.021). See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=30461
Also, you cannot have a local copy of the header file for the PIC in
your project directory. CCS changes the way the built-in functions work
from time to time, and they change the constants in the header files for
some of the functions. You must let the compiler use the header file
for the currently installed version. Let it use the header files in the
c:\Program Files\Picc\Devices directory. |
|
|
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
|
Posted: Wed Jul 28, 2010 11:03 am |
|
|
Thanks for the info and the link to the pointer issues.
I'll read up and probably drag my heels a little longer.
John |
|
|
|