What happens if you do a clean & build?
I've seen a similar thing, and if I remember right, it sorts itself out for the duration of the session after a build when it's parsed all the definitions / includes etc.
If I do a clean and build the errors stay away. If I insert a block rem in the ISR and do clean and build the errors return - but it still compiles fine. There doesn't seem to be any logic to it. Very frustrating.
It's saying there are no definitions for those variables in your program or includes.
XC8 understands them as it has them separately defined.
It's really an XC8 integration bug, rather than a problem with MPLab - if you comment out a definition that is needed in a program, strictly speaking it should not be valid and not compile!
Thanks Terry, Just tried that and no matter how many times I press "unlock" it stays locked.
Mike.
Edit, seems microchip don't bother with giving you feedback - "Cannot unlock in debug mode" instead they expect you to read every bit of the page to find the information (note the title bar). BTW, it wasn't in debug mode as it failed to find the PK4. Note also, the Unlock button IS ENABLED Grrrrrrrrrrrr.
Managed to unlock the properties (see edit above) and put the correct path in - no change. Seems this bug has been around forever and Microchip don't give a rats about it. Don't expect a fix anytime. Deliberately left out the word soon as that would be incorrect.
Just installed MPLAB V6.00 and still the same!!!! How can you have a major release and still have such a glaring error?
So I tried switching to the latest version of XC8 - V2.32 - problem not fixed and loads of warnings added like,
Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "C:/Program Files/Microchip/MPLABX/v6.00/packs/Microchip/PIC16F1xxxx_DFP/1.9.163/xc8\pic\dat\ini\16f18854.ini" at line 186
Non line specific message::: warning: (1020) unknown attribute "IDLOCPROG" in chipinfo file "C:/Program Files/Microchip/MPLABX/v6.00/packs/Microchip/PIC16F1xxxx_DFP/1.9.163/xc8\pic\dat\ini\16f18854.ini" at line 195
These are bugs in Microchip files. They need to sort out these bugs.
Not 100% sure ,, have a look for some stray comments either /* */ or // i had a string of 40 odd //////////////////////////////// MP didnt like that ? 5.45 still has a wobble of red squiggles now and then , just loaded MPLABX 6.00 maybe its fixed , not holding breath
Not 100% sure ,, have a look for some stray comments either /* */ or // i had a string of 40 odd //////////////////////////////// MP didnt like that ? 5.45 still has a wobble of red squiggles now and then , just loaded MPLABX 6.00 maybe its fixed , not holding breath