use Ardupilot library in chibios project

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

asdasd
Posts: 18
Joined: Wed May 01, 2019 8:54 am
Has thanked: 9 times

use Ardupilot library in chibios project

Postby asdasd » Tue Aug 27, 2019 3:14 pm

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

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: use Ardupilot library in chibios project

Postby Giovanni » Tue Aug 27, 2019 4:06 pm

Make sure to put .cpp files in the section for cpp files in the Makefile, do not mix with .c.

Giovanni

asdasd
Posts: 18
Joined: Wed May 01, 2019 8:54 am
Has thanked: 9 times

Re: use Ardupilot library in chibios project

Postby asdasd » Tue Sep 03, 2019 9:30 am

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?
Attachments
RT-STM32F407-DISCOVERY-G++.part2.rar
part2
(4.8 MiB) Downloaded 161 times
RT-STM32F407-DISCOVERY-G++.part1.rar
part1
(5.5 MiB) Downloaded 175 times


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 8 guests