Great, thanks. That seems to get past that error. It now compiles OK:
CLEAN SUCCESSFUL (total time: 53ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory '/Users/keith/MPLABXProjects/Timer1_LED.X'
make -f nbproject/Makefile-default.mk dist/default/production/Timer1_LED.X.production.hex
make[2]: Entering directory '/Users/keith/MPLABXProjects/Timer1_LED.X'
"/Applications/microchip/xc8/v2.20/bin/xc8-cc" -mcpu=16F877A -c -mdfp="/Applications/microchip/mplabx/v5.40/packs/Microchip/PIC16Fxxx_DFP/1.2.33/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/main.p1 main.c
::: advisory: (2049) C99 compliant libraries are currently not available for baseline or mid-range devices, or for enhanced mid-range devices using a reentrant stack; using C90 libraries
"/Applications/microchip/xc8/v2.20/bin/xc8-cc" -mcpu=16F877A -Wl,-Map=dist/default/production/Timer1_LED.X.production.map -DXPRJ_default=default -Wl,--defsym=__MPLAB_BUILD=1 -mdfp="/Applications/microchip/mplabx/v5.40/packs/Microchip/PIC16Fxxx_DFP/1.2.33/xc8" -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -Wl,--memorysummary,dist/default/production/memoryfile.xml -o dist/default/production/Timer1_LED.X.production.elf build/default/production/main.p1
::: advisory: (2049) C99 compliant libraries are currently not available for baseline or mid-range devices, or for enhanced mid-range devices using a reentrant stack; using C90 libraries
Memory Summary:
Program space used 48h ( 72) of 2000h words ( 0.9%)
Data space used 4h ( 4) of 170h bytes ( 1.1%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 1h ( 1) of 1h word (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
make[2]: Leaving directory '/Users/keith/MPLABXProjects/Timer1_LED.X'
make[1]: Leaving directory '/Users/keith/MPLABXProjects/Timer1_LED.X'
BUILD SUCCESSFUL (total time: 674ms)
Loading code from /Users/keith/MPLABXProjects/Timer1_LED.X/dist/default/production/Timer1_LED.X.production.hex...
Program loaded with pack,PIC16Fxxx_DFP,1.2.33,Microchip
Loading completed
When I try and run 'make and program device' it comes back with an error:
*****************************************************
Connecting to MPLAB PICkit 4...
Currently loaded versions:
Application version............00.05.89
Boot version...................01.00.00
Script version.................00.03.77
Script build number............648e375535
Tool pack version .............1.1.774
Connecting to MPLAB PICkit 4...
Currently loaded versions:
Boot version...................01.00.00
Updating firmware application...
Connecting to MPLAB PICkit 4...
Currently loaded versions:
Application version............00.06.08
Boot version...................01.00.00
Script version.................00.03.77
Script build number............648e375535
Tool pack version .............1.1.774
Target voltage detected
Target device PIC16F877A found.
Device Revision Id = 0x8
Calculating memory ranges for operation...
Erasing...
Verify failed. [config mem] 0x2007, expected 0x2fcf, got 0xecf
Programming did not complete.