Legacy mode ( XINST = OFF ) won't be applied by XC8
Hello
I'm facing a compilation issue with XC8 v1.30 and PIC 18F2620
At the end of compilation process i get the following error, although i've set configuration bit XINST = OFF
The program file could not be loaded: com.microchip.mplab.mdbcore.loader.LoadException: The Extended CPU Mode configuration bit is enabled, but the program was not built using extended CPU instructions. This is my bit configuration :
#pragma config OSC=INTIO67,FCMEN=OFF, IESO=OFF // Use internal oscillator @ 8Mhz ( no crystal on the board, RA6 & RA7 are I/O )
#pragma config PWRT=ON, BOREN=OFF, BORV=3
#pragma config WDT=OFF, WDTPS=1
#pragma config CCP2MX=PORTBE, PBADEN=OFF, LPT1OSC=OFF, MCLRE=ON
#pragma config DEBUG=OFF, STVREN=ON, XINST=OFF, LVP=OFF
#pragma config CP0=OFF, CP1=OFF, CP2=OFF, CP3=OFF
#pragma config CPB=OFF, CPD=OFF
#pragma config WRT0=OFF, WRT1=OFF, WRT2=OFF, WRT3=OFF
#pragma config WRTC=OFF, WRTB=OFF, WRTD=OFF
#pragma config EBTR0=OFF, EBTR1=OFF, EBTR2=OFF, EBTR3=OFF
#pragma config EBTRB=OFF
I've tried to reset the "XC Linker" setting, but still no chance.
The option : "Program the device with default config word" is selected.
Many thanks for your help,