- Code: Select all
__CONFIG(1, XINSTDIS&WDTDIS&STVREN&DEBUGDIS&UNPROTECT);
__CONFIG(2, HS&FCMDIS&IESODIS&WDTPS32K);
__CONFIG(3, ETHLEDEN&ECCPRE&CCP2RC1);
Also I have flag "configuration bits set in code" checked in Mplab options.
The problem is, every few builds, Mplab starts to build my project in "extended mode" (and also RC oscillator instead of HS), although I didn't changed __CONFIG() settings in my code.So I have to go into options, uncheck "configuration bits set in code", set flags properly, check this box again, and then project starts to compile normally, for some time. Is this normal behavour?
My MCU is pic18f87j60, compiler is Hitech C 9.52, Mplab 8.88