Compiler - In MPLAB® XC16 v1.26 or higher, why do I get build errors in the .gld file?
The custom address values defined in IVT (in the .gld file) are not recognized starting with v1.26 of XC16 compiler, resulting in build error. How do you fix this?
The .gld format is slightly modified starting with version 1.26 of MPLAB® XC16 compiler.
The Sections from the .gld file of the first project must be modified in the following way:
/* ----- */ #if __XC16_VERSION = 1026 */ SECTIONS { .ivt __IVT_BASE : { LONG(ABSOLUTE(0x2000)); /* __ReservedTrap0 - custom value */ LONG(ABSOLUTE(0x2100)); /* __OscillatorFail - custom value */ … } >ivt } #endif /* __XC16_VERSION