MatrixPilot 4.0 / UDB5 Compile Errors

256 views
Skip to first unread message

texr...@gmail.com

unread,
Nov 9, 2015, 3:16:42 AM11/9/15
to uavdevboard
Hi All,
I need some help to resolve the missing files for compiling UDB5 projects.

- I have MPLab X IDE V3.10 and xc16 complier installed in my PC
- I downloaded the entire code and the folders through TortoiseSVN for all UDB5 projects and files.

After I loaded LedTest-udb5.mcp to MPLab X IDE and built the project, I got the following errors:

==================================================================================================================================================================
"C:\Program Files (x86)\Microchip\xc16\v1.25\bin\xc16-gcc.exe"   ../../../libUDB/libUDB.c  -o build/default/production/_ext/1159519357/libUDB.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/libUDB.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
../../../libUDB/heartbeat.c: In function 'heartbeat_pulse':
../../../libUDB/heartbeat.c:120:2: warning: implicit declaration of function 'udb_callback_read_sensors'
"C:\Program Files (x86)\Microchip\xc16\v1.25\bin\xc16-gcc.exe"   ../../../libUDB/magnetometer.c  -o build/default/production/_ext/1159519357/magnetometer.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/magnetometer.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.25\bin\xc16-gcc.exe"   ../../../libUDB/mcu.c  -o build/default/production/_ext/1159519357/mcu.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/mcu.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.25\bin\xc16-gcc.exe"   ../../../libUDB/mpu6000.c  -o build/default/production/_ext/1159519357/mpu6000.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/mpu6000.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.25\bin\xc16-gcc.exe"   ../../../libUDB/mpu_spi.c  -o build/default/production/_ext/1159519357/mpu_spi.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/mpu_spi.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
../../../libUDB/mpu6000.c:35:17: fatal error: spi.h: No such file or directory
compilation terminated.
../../../libUDB/mcu.c: In function 'init_pll':
../../../libUDB/mcu.c:325:2: warning: #warning 16 MIPS selected
make[2]: *** [build/default/production/_ext/1159519357/mpu6000.o] Error 255
make[2]: *** Waiting for unfinished jobs....
nbproject/Makefile-default.mk:647: recipe for target 'build/default/production/_ext/1159519357/mpu6000.o' failed
nbproject/Makefile-default.mk:654: recipe for target 'build/default/production/_ext/1159519357/mpu_spi.o' failed
../../../libUDB/mpu_spi.c:29:19: fatal error: delay.h: No such file or directory
compilation terminated.
==================================================================================================================================================================

It seems spi.h and delay.h (and .c) files are missing. When I tried to build MatrixPilot-udb5, I got the same errors. Does anyone know where I can get these files (.h/.c) for UDB5 projects

Any help will be appreciated.



David

Peter Hollands

unread,
Nov 9, 2015, 5:05:37 AM11/9/15
to uavdevboard
Hi David,

With regard to the errors that you are getting when compiling the LED Test suite (the most basic test of the gyros, accelerometers and PWM outputs):-

I can replicate your error with the gcc v1.25 compiler, but the error does not occur with the version 1.24 compiler. That is rather strange. Here is some detail below.

The project is no longer using Subversion (svn), so Tortoise svn is no longer the correct tool for up to date code. We are now using the git system on github.
The change was made because Google was shutting down the googlecode svn system that we used for the last 5 or so years. Git and github seems to be the mainstream choice of developers these days.

I am using a Mac, but essentially the git terminal commands are similar on most operating systems for git. (If you want a GUI tool for git I recommend source tree).
Here is how I retrieve a complete version of the repository using git:-

Peters-iMac:~ phollands$ mkdir david_test

Peters-iMac:~ phollands$ cd david_test

Peters-iMac:david_test phollands$ git clone git://github.com/MatrixPilot/MatrixPilot

Cloning into 'MatrixPilot'...

remote: Counting objects: 31255, done.

remote: Total 31255 (delta 0), reused 0 (delta 0), pack-reused 31255

Receiving objects: 100% (31255/31255), 37.62 MiB | 1.43 MiB/s, done.

Resolving deltas: 100% (23171/23171), done.

Peters-iMac:david_test phollands$ ls

MatrixPilot

Peters-iMac:david_test phollands$ cd MatrixPilot/

Peters-iMac:MatrixPilot phollands$ ls

Config MAVLink Microchip RollPitchYaw build-all.bat display.bat libDCM libSTM libVectorMatrix

Doxyfile MatrixPilot README.md Tools build-all.sh gensvnlog.bat libFlashFS libUDB makefile

Peters-iMac:MatrixPilot phollands$ git status

# On branch master

nothing to commit, working directory clean

Peters-iMac:MatrixPilot phollands$ 

I can then run up the MPLAB-X Ide. I am using a similar but slightly older version 3.00 (I don't think that will make a difference to this issue).
My compiler is the same (version 1.25).

I open the project in MPLAB-X as follows in the screenshot below:-

Inline images 1


I do get a few warnings such as:-
warning: Configuration "default" refers to file "/Users/phollands/david_test/MatrixPilot/libFlashFS/FSconfig.h" which does not exist in the disk. The make process might not build correctly.

But anyway, if I go ahead can hit the button in MPLAB-X ide to compile and and make the code ....

Inline images 4

CLEAN SUCCESSFUL (total time: 51ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'
make  -f nbproject/Makefile-default.mk dist/default/production/LedTest-udb5.X.production.hex
make[2]: Entering directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'
"/Applications/microchip/xc16/v1.25/bin/xc16-gcc"   ../../../libFlashFS/AT45D_DMA.c  -o build/default/production/_ext/1495309177/AT45D_DMA.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1495309177/AT45D_DMA.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off

[Edited out lots of successful compiler lines]

"/Applications/microchip/xc16/v1.25/bin/xc16-gcc"   ../../../libUDB/mpu6000.c  -o build/default/production/_ext/1159519357/mpu6000.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/mpu6000.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"/Applications/microchip/xc16/v1.25/bin/xc16-gcc"   ../../../libUDB/mpu_spi.c  -o build/default/production/_ext/1159519357/mpu_spi.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/mpu_spi.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
../../../libUDB/mpu6000.c:35:17: fatal error: spi.h: No such file or directory
"/Applications/microchip/xc16/v1.25/bin/xc16-gcc"   ../../../libUDB/osd.c  -o build/default/production/_ext/1159519357/osd.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/1159519357/osd.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
compilation terminated.
nbproject/Makefile-default.mk:647: recipe for target 'build/default/production/_ext/1159519357/mpu6000.o' failed
make[2]: *** [build/default/production/_ext/1159519357/mpu6000.o] Error 255
make[2]: *** Waiting for unfinished jobs....
nbproject/Makefile-default.mk:654: recipe for target 'build/default/production/_ext/1159519357/mpu_spi.o' failed
../../../libUDB/mpu_spi.c:29:19: fatal error: delay.h: No such file or directory
compilation terminated.
make[2]: *** [build/default/production/_ext/1159519357/mpu_spi.o] Error 255
make[1]: *** [.build-conf] Error 2
make[2]: Leaving directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'
make: *** [.build-impl] Error 2
nbproject/Makefile-default.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

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

However, if I then switch back to use version 1.24 compiler as follows:-

Inline images 2

Inline images 3

I get a clean compile:-

Here is the final output of my compile with the version 1.25 compiler.
........
build/default/production/_ext/2083786842/io_test_udb4.o build/default/production/_ext/2083786842/io_test_udb5.o build/default/production/_ext/2083786842/main.o      -mcpu=33FJ256GP710A        -omf=elf -legacy-libc -Wl,,--defsym=__MPLAB_BUILD=1,,--script=p33FJ256GP710A.gld,--heap=256,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/LedTest-UDB5.X.production.map" 
"/Applications/microchip/xc16/v1.24/bin"/xc16-bin2hex dist/default/production/LedTest-udb5.X.production.elf -a  -omf=elf  
make[2]: Leaving directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'
make[1]: Leaving directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'

BUILD SUCCESSFUL (total time: 8s)
Loading code from /Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X/dist/default/production/LedTest-udb5.X.production.hex...
Loading completed

I'm out of time to look into this further just now. May be the above description will allow Robert to make a comment, as he is the current expert on the build process and the scheme for using .h files.

Best wishes, Pete

--
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Hollands

unread,
Nov 9, 2015, 12:26:08 PM11/9/15
to uavdevboard
David,

In Version 1.25 of the XC16 compiler, the peripherals library for dspic chip series is no longer included with the compiler. It would appear that you have to download the peripherals library separately now,
and install it in the correct location.

This issue is mentioned in the XC16 compiler v1.25 README.txt. I have included the relevant excerpt below.

The files that you were looking for (spi.h and delay.h) are not in the MatrixPilot project library, but come from the Microchip installation.
When upgrading to version 1.25, from anything earlier, they are no longer in the usual place in the compiler's tree of files. They have to be manually downloaded.

I have not yet got the separate peripherals library download to work on my machine yet; but I'll let you know when I succeed.

Best wishes, Pete


  1. What's New in this Release.

  2. Follows is a summary of new features with each release. Please be sure to check for migration notes or new documentation in the relevant sections of this file.

    v1.25

    We have made some significant code-size improvements.

    We are now using the MPLAB C30 C library. If you wish to continue to use the C library shipped with MPLAB XC16 prior to XC16 v1.25, you may use the option -no-legacy-libc on the command line.

    We have added several new compiler builtin functions. Please see Documentation Updates for complete details.

    Part support version information is now part of the device specific header files as a manifest constant. Please see Documentation Updates for complete details.

    The peripheral libraries are no longer shipped with the compiler package. These may be downloaded separately from the MPLAB XC download page.

    The compiler is smarter about picking the default data memory model. Please see Documentation Updates for complete details.

    This release also contains part support updates.

Peter Hollands

unread,
Nov 9, 2015, 3:05:01 PM11/9/15
to uavdevboard
David,

I now have the LED test working correctly. I had to set the MPLAB-X IDE main preferences to use the v1.25 compiler with the peripheral support library installed.
(I made sure that both the main preferences and the project preferences were showing use of the v1.25 compiler with peripheral support library installed).

I'll take you through the details below: Good Luck. I hope this fixes this issue for you and everyone else as they upgrade their compilers.

Best wishes, Pete


I will first show a screenshot showing both the v1.24 and v1.25 folders for the XC16 compiler, and the fact that the peripheral support files were not in v1.25.

Inline images 1

I then went to this location in the Microchip web site and downloaded the link highlighted in blue below:-

Inline images 2
I installed that library, and told it the location to install was in the v1.25 folder....

Inline images 3

After accepting the licence agreement, I had to specify which folder to install in.
I chose the v1.25 folder as shown in screenshot below:-

Inline images 4

The implication of this, is that I will need to install the Peripherals library every time I upgrade the compiler in the future.
e.g. for 1.26 as well.

Once the peripherals library is installed I can see the exact files are now in place....

Inline images 5

It was then just a matter of making sure that both the MPLAB properties and the project Properties were pointing at the XC16 version 1.25 compiler....

First I made sure that all my active projects in MPLAB-X were closed. ( I did not want them open while I changed the default compiler settings).

Then Select MPLAB / Preferences from the main menu ...

Inline images 6 

(BTW: Along the way I upgrade my IDE from version 3.0 to 3.15)

From the preferences window, click on the Embedded Icon, then on XC16(v1.25) .... then click on the button called "Default" (I missed that initially).
Then click on Apply. Then OK.  That should be enough for your projects to then use the V1.25 compiler.

Inline images 7

I was then able to compile the LED test for the UDB5 without further issues.


"/Applications/microchip/xc16/v1.25/bin/xc16-gcc"   ../../../Tools/LedTest/main.c  -o build/default/production/_ext/2083786842/main.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ext/2083786842/main.o.d"        -g -omf=elf -legacy-libc  -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off  
"/Applications/microchip/xc16/v1.25/bin/xc16-gcc"   -o dist/default/production/LedTest-udb5.X.production.elf  build/default/production/_ext/1495309177/AT45D.o build/default/production/_ext/1495309177/AT45D_DMA.o build/default/production/_ext/1495309177/AT45D_FS.o build/default/production/_ext/1495309177/EEPROM.o build/default/production/_ext/1495309177/EEPROM_FS.o build/default/production/_ext/1495309177/filesys.o build/default/production/_ext/1495309177/MDD_AT45D.o build/default/production/_ext/1495309177/MDD_EEPROM.o build/default/production/_ext/1495309177/usb.o build/default/production/_ext/1495309177/usb_cdc.o build/default/production/_ext/1495309177/usb_descriptors.o build/default/production/_ext/1495309177/usb_msd.o build/default/production/_ext/1159519357/24LC256.o build/default/production/_ext/1159519357/ADchannel.o build/default/production/_ext/1159519357/analog2digital_auav3.o build/default/production/_ext/1159519357/analog2digital_udb4.o build/default/production/_ext/1159519357/analog2digital_udb5.o build/default/production/_ext/1159519357/analogs.o build/default/production/_ext/1159519357/background.o build/default/production/_ext/1159519357/barometer.o build/default/production/_ext/1159519357/eeprom_udb4.o build/default/production/_ext/1159519357/events.o build/default/production/_ext/1159519357/fbcl.o build/default/production/_ext/1159519357/heartbeat.o build/default/production/_ext/1159519357/I2C1.o build/default/production/_ext/1159519357/I2C2.o build/default/production/_ext/1159519357/libUDB.o build/default/production/_ext/1159519357/magnetometer.o build/default/production/_ext/1159519357/mcu.o build/default/production/_ext/1159519357/mpu6000.o build/default/production/_ext/1159519357/mpu_spi.o build/default/production/_ext/1159519357/osd.o build/default/production/_ext/1159519357/osd_bit.o build/default/production/_ext/1159519357/osd_spi.o build/default/production/_ext/1159519357/radioIn.o build/default/production/_ext/1159519357/read.o build/default/production/_ext/1159519357/serialIO.o build/default/production/_ext/1159519357/servoOut.o build/default/production/_ext/1159519357/sonarIn.o build/default/production/_ext/1159519357/traps.o build/default/production/_ext/1159519357/traps_asm.o build/default/production/_ext/1159519357/uart.o build/default/production/_ext/1159519357/write.o build/default/production/_ext/658034010/madd.o build/default/production/_ext/658034010/mmul.o build/default/production/_ext/658034010/mscl.o build/default/production/_ext/658034010/msub.o build/default/production/_ext/658034010/mtrp.o build/default/production/_ext/658034010/vadd.o build/default/production/_ext/658034010/vcon.o build/default/production/_ext/658034010/vcopy.o build/default/production/_ext/658034010/vcor.o build/default/production/_ext/658034010/vdot.o build/default/production/_ext/658034010/vmax.o build/default/production/_ext/658034010/vmin.o build/default/production/_ext/658034010/vmul.o build/default/production/_ext/658034010/vneg.o build/default/production/_ext/658034010/vpow.o build/default/production/_ext/658034010/vscl.o build/default/production/_ext/658034010/vsub.o build/default/production/_ext/658034010/vzpad.o build/default/production/_ext/1457663406/FSIO.o build/default/production/_ext/1457663406/SD-SPI.o build/default/production/_ext/288147067/usb_function_cdc.o build/default/production/_ext/919151401/usb_function_msd.o build/default/production/_ext/549097302/usb_device.o build/default/production/_ext/549097302/usb_hal_dspic33e.o build/default/production/_ext/2083786842/io_test.o build/default/production/_ext/2083786842/io_test_auav3.o build/default/production/_ext/2083786842/io_test_udb4.o build/default/production/_ext/2083786842/io_test_udb5.o build/default/production/_ext/2083786842/main.o      -mcpu=33FJ256GP710A        -omf=elf -legacy-libc  -Wl,,--defsym=__MPLAB_BUILD=1,,--script=p33FJ256GP710A.gld,--heap=256,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/LedTest-UDB5.X.production.map",--memorysummary,dist/default/production/memoryfile.xml 
"/Applications/microchip/xc16/v1.25/bin"/xc16-bin2hex dist/default/production/LedTest-udb5.X.production.elf -a  -omf=elf  
make[2]: Leaving directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'
make[1]: Leaving directory '/Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X'

BUILD SUCCESSFUL (total time: 9s)
Loading code from /Users/phollands/david_test/MatrixPilot/Tools/LedTest/LedTest-udb5.X/dist/default/production/LedTest-udb5.X.production.hex...
Loading completed

texr...@gmail.com

unread,
Nov 13, 2015, 2:51:46 AM11/13/15
to uavdevboard
Hi Pete,
Thank you so much for helping me.
I got the two issues (the latest code and the compile error) resolved: 
- I found the way to get the code from https://github.com/MatrixPilot/MatrixPilot
- I also downloaded the library files from Microchip, and I'm able to compile both projects

Your kindness, time and effort are greatly appreciated !

David

J. Roby

unread,
Nov 13, 2015, 6:14:58 PM11/13/15
to uavde...@googlegroups.com
Pete,
Dido --thank you! The code compiles now for the UDB5.
Thank you
Jeff 

 

From: "texr...@gmail.com" <texr...@gmail.com>
To: uavdevboard <uavde...@googlegroups.com>
Sent: Friday, November 13, 2015 2:51 AM
Subject: Re: MatrixPilot 4.0 / UDB5 Compile Errors

Hi Pete,
Thank you so much for helping me.
I got the two issues (the latest code and the compile error) resolved: 
- I found the way to get the code from https://github.com/MatrixPilot/MatrixPilot
- I also downloaded the library files from Microchip, and I'm able to compile both projects

Your kindness, time and effort are greatly appreciated !

David

On Monday, November 9, 2015 at 12:16:42 AM UTC-8, texr...@gmail.com wrote:
Hi All,
I need some help to resolve the missing files for compiling UDB5 projects.

- I have MPLab X IDE V3.10 and xc16 complier installed in my PC
- I downloaded the entire code and the folders through TortoiseSVN for all UDB5 projects and files.

After I loaded LedTest-udb5.mcp to MPLab X IDE and built the project, I got the following errors:

============================== ============================== ============================== ============================== ============================== ============
"C:\Program Files (x86)\Microchip\xc16\v1.25\ bin\xc16-gcc.exe"   ../../../libUDB/libUDB.c  -o build/default/production/_ext/ 1159519357/libUDB.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ ext/1159519357/libUDB.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/ Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
../../../libUDB/heartbeat.c: In function 'heartbeat_pulse':
../../../libUDB/heartbeat.c: 120:2: warning: implicit declaration of function 'udb_callback_read_sensors'
"C:\Program Files (x86)\Microchip\xc16\v1.25\ bin\xc16-gcc.exe"   ../../../libUDB/magnetometer.c  -o build/default/production/_ext/ 1159519357/magnetometer.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ ext/1159519357/magnetometer.o. d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/ Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.25\ bin\xc16-gcc.exe"   ../../../libUDB/mcu.c  -o build/default/production/_ext/ 1159519357/mcu.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ ext/1159519357/mcu.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/ Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.25\ bin\xc16-gcc.exe"   ../../../libUDB/mpu6000.c  -o build/default/production/_ext/ 1159519357/mpu6000.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ ext/1159519357/mpu6000.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/ Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.25\ bin\xc16-gcc.exe"   ../../../libUDB/mpu_spi.c  -o build/default/production/_ext/ 1159519357/mpu_spi.o  -c -mcpu=33FJ256GP710A  -MMD -MF "build/default/production/_ ext/1159519357/mpu_spi.o.d"        -g -omf=elf -legacy-libc -mlarge-code -mlarge-data -O0 -I"../../../Tools/LedTest/ Config" -I"../../../" -I"../../../Microchip" -I"../../../Microchip/Include" -I"../../../libVectorMatrix" -DUDB5 -msmart-io=1 -Wall -msfr-warn=off
../../../libUDB/mpu6000.c:35: 17: fatal error: spi.h: No such file or directory
compilation terminated.
../../../libUDB/mcu.c: In function 'init_pll':
../../../libUDB/mcu.c:325:2: warning: #warning 16 MIPS selected
make[2]: *** [build/default/production/_ ext/1159519357/mpu6000.o] Error 255
make[2]: *** Waiting for unfinished jobs....
nbproject/Makefile-default.mk: 647: recipe for target 'build/default/production/_ ext/1159519357/mpu6000.o' failed
nbproject/Makefile-default.mk: 654: recipe for target 'build/default/production/_ ext/1159519357/mpu_spi.o' failed
../../../libUDB/mpu_spi.c:29: 19: fatal error: delay.h: No such file or directory
compilation terminated.
============================== ============================== ============================== ============================== ============================== ============

It seems spi.h and delay.h (and .c) files are missing. When I tried to build MatrixPilot-udb5, I got the same errors. Does anyone know where I can get these files (.h/.c) for UDB5 projects

Any help will be appreciated.



David
--

Mark Ingle

unread,
Nov 26, 2015, 8:29:32 AM11/26/15
to uavdevboard
Pete

Thanks for taking the time to post this information!  I just joined this group so this info is timely for me to build my dev environment.....looks like a lot of fun waiting on me!!!!
Reply all
Reply to author
Forward
0 new messages