errors during the compilation of a simple project using MPLAB X IDE

Thread Starter

DavideIng

Joined Jan 19, 2018
2
Hello,
I am new about C and MPLAB X IDE. I am trying to compile a simple tutorial project got from www.e-puck.org, I am quite sure to have followed all the instruction of the tutorial but still I don't understand the errors during the compilation that I get.
 

Thread Starter

DavideIng

Joined Jan 19, 2018
2
The output is the following:

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/Davide/Desktop/tutorial'
make -f nbproject/Makefile-default.mk dist/default/production/tutorial.production.hex
make[2]: Entering directory 'C:/Users/Davide/Desktop/tutorial'
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" init_port.c -o build/default/production/init_port.o -c -mcpu=30F1010 -MMD -MF "build/default/production/init_port.o.d" -g -omf=elf -DXPRJ_default=default -legacy-libc -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.33\bin\xc16-gcc.exe" ledtest.c -o build/default/production/ledtest.o -c -mcpu=30F1010 -MMD -MF "build/default/production/ledtest.o.d" -g -omf=elf -DXPRJ_default=default -legacy-libc -O0 -msmart-io=1 -Wall -msfr-warn=off
In file included from epuck_ports.h:41:0,
from init_port.c:15:
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:38:2: error: #error "Include file does not match processor setting"
In file included from epuck_ports.h:41:0,
from init_port.h:34,
from ledtest.c:8:
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:38:2: error: #error "Include file does not match processor setting"
In file included from init_port.c:15:0:
epuck_ports.h:209:0: warning: "Nop" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9751:0: note: this is the location of the previous definition
epuck_ports.h:210:0: warning: "ClrWdt" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9752:0: note: this is the location of the previous definition
epuck_ports.h:211:0: warning: "Sleep" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9753:0: note: this is the location of the previous definition
epuck_ports.h:212:0: warning: "Idle" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9754:0: note: this is the location of the previous definition
In file included from init_port.h:34:0,
from ledtest.c:8:
epuck_ports.h:209:0: warning: "Nop" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9751:0: note: this is the location of the previous definition
epuck_ports.h:210:0: warning: "ClrWdt" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9752:0: note: this is the location of the previous definition
epuck_ports.h:211:0: warning: "Sleep" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9753:0: note: this is the location of the previous definition
epuck_ports.h:212:0: warning: "Idle" redefined
c:\program files (x86)\microchip\xc16\v1.33\bin\bin\../..\support\dsPIC30F\h/p30f6014.h:9754:0: note: this is the location of the previous definition
make[2]: *** [build/default/production/ledtest.o] Error 255
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [build/default/production/init_port.o] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
nbproject/Makefile-default.mk:113: recipe for target 'build/default/production/ledtest.o' failed
nbproject/Makefile-default.mk:120: recipe for target 'build/default/production/init_port.o' failed
make[2]: Leaving directory 'C:/Users/Davide/Desktop/tutorial'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/Davide/Desktop/tutorial'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 3s)

Does anyone could help me?
thanks in advance
 

be80be

Joined Jul 5, 2008
2,072
#error "Include file does not match processor setting"
You are not using the pic they was
there using a 30f6014
 
Last edited:
Top