* Different description of the interrupt function.
In the version v1.34, the description of interrupt function is void interrupt ISR(void), but in v2.00 or later version, the description is void __interrupt() ISR(void).Note: "interrupt" is preceded by two underscores.
If using void __interrupt() ISR(void) in v1.34, the following warning message appears after compilation: warning: (1429) attribute “interrupt” is not understood by the compiler; this attribute will be ignored.
If using void interrupt ISR(void) in v2.00 or later, the following error message appears after compilation: error: variable has incomplete type ‘void’ void interrupt ISR(void) and error: expected ‘;’ after top level declarator void interrupt ISR(void).
* The same source program will generate different hex files in different versions of xc8 compiler.
* How to solve this problem?
The compiler version information can be viewed in the configurations.xml file in the MPLAB project folder nbproject. In the files, Languagetoolchain is the compiler name and languagetoolchainversion is the compiler version. Before recompilation, select the correct compiler and version by viewing the project properties.
You can download the corresponding version on microchip official website. https://www.microchip.com/development-tools/pic-and-dspic-downloads-archive.
Enter your email address and password