MPLAB C30 v3.00 MIGRATIONWith the release of the new version 3.00 of the MPLAB C30 compiler I have received reports from various readers of a few migration issues.
Some of these issues are due to enhancements to the compiler and new features being added, other are related to an update of the device specific include files (p24fj128ga010.h).
With your help, I will try to document them and offer available work arounds/fixes.
Chapter 5: The _IP bit field, part of the SR register, has been renamed _IPL.
In file "interrupt.c" replace line 53:
_IP = 0; // this is the default value anywayWith:
_IPL = 0; // this is the default value anyway
Or comment the line out (0 is the default value at power on)
Also a warning related to the "auto_psw" attribute of the interrupt service routine is now being generated by the compiler. You will learn more about the PSV reading chapter6.
You can safely ignore the warning for now as the default compiler behaviour is safe.
Chapter 9: The PMPEN register has been renamed PMAEN.
This was done to eliminate a naming conflict with the PMPEN bit defined within the PMCON register. The name change will hopefully be reflected in the next revision of the datasheet.
In the file "liquid.c" replace:
PMPEN = 0x0001; // PMA0 enabled
PMAEN = 0x0001; // PMA0 enabled