EmbDev.net

Forum: Off Topic MPLAB X IDE error during compilation c file


von Davide M. (Company: Università) (davideing)


Attached files:

Rate this post
useful
not useful
Hello,
 I am new about microcontrollers programming and MPLAB X IDE.
I was trying to compile a tutorial code get from www.e-puck.org but when 
I try to compile ledtest.c file I get the following errors:

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

The whole 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:3 
8: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:3 
8: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:9 
751: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:9 
752: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:9 
753: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:9 
754: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:9 
751: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:9 
752: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:9 
753: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:9 
754: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)

von Nadeem U. (nadeem_ullah)


Rate this post
useful
not useful
I'm waiting for the response from some expert also!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.