Page 1 of 1

use Ardupilot library in chibios project

Posted: Tue Aug 27, 2019 3:14 pm
by asdasd
Hi all ,
what is the best way to include ardupilot librarys in anther different project?
For example how can stm32 read GPS\imu via GPS\imu Ardupilot library.

Following are the steps that i went through:
1) I used c++ compiler to compile chibios with stm32 .
2) I copied the AP_HAL, AP_HAL_CHIBIOS and AP_Common that are existed in Ardupilot library to project in step 1.
3) I created make file to compile the files in step 2 on the project, however, I faced some problems as following:
a).....target 'build/obj/sumd.cpp' doesn't match the target patterned :?:
b).....target 'build/obj/Device.o' given more than once in the same rule :?:
c) arm-none-eabi-gcc:fetal error :no input files :?:

or :
I should use waf to build like Ardupilot. :!:

Best regards
ASD ASD

Re: use Ardupilot library in chibios project

Posted: Tue Aug 27, 2019 4:06 pm
by Giovanni
Make sure to put .cpp files in the section for cpp files in the Makefile, do not mix with .c.

Giovanni

Re: use Ardupilot library in chibios project

Posted: Tue Sep 03, 2019 9:30 am
by asdasd
Giovanni wrote:Make sure to put .cpp files in the section for cpp files in the Makefile, do not mix with .c.

Giovanni


this is the project i think i performed your note, however it does not work. could you please have a look at the project?