Building Firmware failed with MPLAB X

Here is the place for all your dsPic or autopilot questions.

Moderator: lukasz

Building Firmware failed with MPLAB X

Postby Rico21 » Wed Oct 17, 2012 9:02 am

Hi Tom,

After loading the latest version of Firmware (146) in MPLAB X using the function "open project", the build generates an error (see below).
Thank you to help me.

Regards
Eric

with MPLABX (v1.30), XC16 (V1.1) Fixed_wing

CLEAN SUCCESSFUL (total time: 103ms)
make -f nbproject/Makefile-fixed_wing.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
make -f nbproject/Makefile-fixed_wing.mk dist/fixed_wing/production/rtos_pilot.X.production.hex
make[2]: Entering directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
"C:\Program Files (x86)\Microchip\xc16\v1.10\bin\xc16-gcc.exe" ../../lib/FreeRTOS/croutine.c -o build/fixed_wing/production/_ext/1970174492/croutine.o -c -mcpu=33FJ256MC710 -MMD -MF "build/fixed_wing/production/_ext/1970174492/croutine.o.d" -g -omf=elf -mlarge-code -mlarge-data -O1 -I"..\..\lib\FreeRTOS" -I"..\..\lib" -I"..\..\lib\button" -I"..\..\lib\adc" -I".." -I"..\..\lib\i2c" -I"..\..\lib\bmp085" -I"..\..\lib\hmc5843" -I"..\..\lib\max7456" -I"..\..\lib\matrix" -I"..\..\lib\quaternion" -I"..\..\lib\pid" -I"..\..\lib\pwm_in" -I"..\..\lib\led" -I"..\..\lib\ppm_in" -I"..\..\lib\uart2" -I"..\..\lib\uart1_queue" -I"..\..\lib\servo" -I"..\..\lib\scp1000" -I"..\..\lib\microcontroller" -I"..\..\lib\gps" -I"..\..\lib\dataflash" -DMPLAB_DSPIC_PORT -msmart-io=1 -Wall -msfr-warn=off
In file included from ../../lib/FreeRTOS/FreeRTOS.h:83:0,
from ../../lib/FreeRTOS/croutine.c:67:
../../lib/FreeRTOS/portable.h:351:26: fatal error: mpu_wrappers.h: No such file or directory
compilation terminated.
make[2]: Leaving directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
make[1]: Leaving directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
make[2]: *** [build/fixed_wing/production/_ext/1970174492/croutine.o] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

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


with MPLAB X (v1.30) C30 (v3.31) fixed_wing

CLEAN SUCCESSFUL (total time: 156ms)
make -f nbproject/Makefile-fixed_wing.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
make -f nbproject/Makefile-fixed_wing.mk dist/fixed_wing/production/rtos_pilot.X.production.hex
make[2]: Entering directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
In file included from ../../lib/FreeRTOS/FreeRTOS.h:83,
from ../../lib/FreeRTOS/croutine.c:67:
../../lib/FreeRTOS/portable.h:351:26: error: mpu_wrappers.h: No such file or directory
In file included from ../../lib/FreeRTOS/FreeRTOS.h:83,
from ../../lib/FreeRTOS/croutine.c:67:
../../lib/FreeRTOS/portable.h:368: error: syntax error before 'PRIVILEGED_FUNCTION'
../../lib/FreeRTOS/portable.h:368: warning: type defaults to 'int' in declaration of 'PRIVILEGED_FUNCTION'

a lot of lines suppressed here


make[2]: *** [build/fixed_wing/production/_ext/1970174492/croutine.o] Error 1
make[1]: *** [.build-conf] Error 2
make[2]: Leaving directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
make[1]: Leaving directory `C:/Users/Eric/Mes Projets/Gluonpilot/test146/Firmware/rtos_pilot/rtos_pilot.X'
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 2s)
Rico21
 
Posts: 30
Joined: Fri Nov 27, 2009 5:06 pm
Location: France

Re: Building Firmware failed with MPLAB X

Postby Tom » Wed Oct 17, 2012 6:47 pm

I'm the latest freertos now, and I had forgotten to add the new files to the repo.

You can retry!
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Building Firmware failed with MPLAB X

Postby Rico21 » Wed Oct 17, 2012 7:22 pm

Hi Tom,

Thank you for the new release, there is just a little change to do: in gluonscript.c line 263 battery_voltage_10 should be change to battery1_voltage_10 according to the sensor_data structure, or vice versa.

Thank you

Regards

Eric
Rico21
 
Posts: 30
Joined: Fri Nov 27, 2009 5:06 pm
Location: France

Re: Building Firmware failed with MPLAB X

Postby Tom » Wed Oct 17, 2012 7:29 pm

Aha yes thank you :-)
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium


Return to Firmware

Who is online

Users browsing this forum: No registered users and 4 guests

cron