paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Lisa/M Compilation Error


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Lisa/M Compilation Error
Date: Sat, 21 Jan 2012 22:22:48 +0100

Chris,

no worries...
You don't have to add the flag anywhere... but I thought you might
have wrote your own subsystem makefile....

The problem was that the imu_analog was only added to the sources in
case of the LPC21 arch, and didn't complain when trying to use it on
STM32 (lisa).
Now it will abort with an error, although that should be really easy
to check and possibly implement what else might needed for imu with
only analog inputs on the stm32.

But since you have a Lisa/M with Aspirin, you should just use the
appropriate aspirin subsystem:
<subsystem name="imu" type="aspirin_v1.0"/> (for any aspirin imu up to 1.4)
or <subsystem name="imu" type="aspirin_v1.5"/>

Cheers, Felix

On Sat, Jan 21, 2012 at 9:53 PM, Chris Wozny <address@hidden> wrote:
> Felix,
>
> My apologies on not replying to the mailing list instead the first
> time. We are using the Aspirin IMU with Lisa/M 1.0. Here is the XML we
> are using (it's adapted from the example tiny analog imu):
>
> http://code.google.com/p/lisa-m-team4938/source/browse/paparazzi/conf/airframes/lisa_m.xml
>
> I'm unsure as to where to put the flag USE_IMU in the airframe file
> after consulting the wiki and the AHRS subsystem wiki.
>
> - Chris
>
> On Sat, Jan 21, 2012 at 1:20 PM, Felix Ruess <hidden> wrote:
>> Hi Chris,
>>
>> what configuration do you have? Are you using an imu, if yes, what subsystem?
>> Sounds like you are using an imu where USE_IMU is not defined...
>>
>> Best to post the relevant sections of your airframe config (or put the
>> whole thing on pastebin or something like that).
>>
>> Otherwise it is just guesswork....
>>
>> Cheers, Felix
>>
>> On Sat, Jan 21, 2012 at 12:54 AM, Chris Wozny <address@hidden> wrote:
>>> All,
>>>
>>> I'm currently building the code for the lisa_m_1.0 board and every
>>> time I build I get this error (which shows up in red):
>>>
>>> *** Using multilib ***
>>> --------------------------------------
>>> LD /home/mav/lisa-m-team4938/paparazzi/var/ECE_2012/ap/ap.elf
>>> /home/mav/lisa-m-team4938/paparazzi/var/ECE_2012/ap/firmwares/fixedwing/main_ap.o:
>>> In function `event_task_ap':
>>> /home/mav/lisa-m-team4938/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:622:
>>> undefined reference to `AhrsEvent'
>>> collect2: ld returned 1 exit status
>>> make[1]: *** [/home/mav/lisa-m-team4938/paparazzi/var/ECE_2012/ap/ap.elf]
>>> Error 1
>>> make[1]: Leaving directory `/home/mav/lisa-m-team4938/paparazzi/sw/airborne'
>>> make: *** [ap.compile] Error 2
>>> make: Leaving directory `/home/mav/lisa-m-team4938/paparazzi'
>>>
>>> These were the warnings that came up before this:
>>>
>>> arch/stm32/mcu_arch.c:50: warning: #warning Info: Using external clock
>>> arch/stm32/mcu_periph/i2c_arch.c:11: warning: 'i2c_hard_reset' used
>>> but never defined
>>> arch/stm32/mcu_periph/i2c_arch.c:12: warning: 'i2c_reset_init'
>>> declared 'static' but never defined
>>> firmwares/fixedwing/main_fbw.c:159: warning: array subscript is above
>>> array bounds
>>> firmwares/fixedwing/main_ap.c:622: warning: implicit declaration of
>>> function 'AhrsEvent'
>>> firmwares/fixedwing/main_ap.c:622: warning: nested extern declaration
>>> of 'AhrsEvent'
>>>
>>> Just to make sure it wasn't an error with the version of GCC I'm
>>> using, I compiled the code against the example_twog_analogimu.xml file
>>> and it built properly. Has anyone bumped into this with Lisa/M?
>>>
>>> Thanks,
>>> Chris
>>> ----
>>> University of Arizona MAV
>>>
>>> _______________________________________________
>>> Paparazzi-devel mailing list
>>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
>
> --
> Chris Wozny
> ASUA Safe Ride
> Administrative Director
> Email: address@hidden
> Office: 520-621-7233
> Cell: 617-921-5679
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]