Page 1 of 1

Extended mode turns on by itself every few builds

PostPosted: Tue Jun 24, 2014 11:07 am
by Stri
Hello. I have some legacy project for Mplab 8. This project consist few *.c files. In "init.c" file I have section with config bits:

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

Re: Extended mode turns on by itself every few builds

PostPosted: Tue Jun 24, 2014 4:39 pm
by Ian.M
No. Possibly a corrupted workspace - MPLAB caches a lot of binary data in the workspace file.