paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] mag_micromag_fw module build errors


From: Felix Ruess
Subject: Re: [Paparazzi-devel] mag_micromag_fw module build errors
Date: Fri, 10 Dec 2010 20:17:41 +0100

Hi Stephen,

I think you are missing the
<subsystem name="spi"/>

Cheers, Felix

On Fri, Dec 10, 2010 at 6:10 AM, Stephen L Hulme <address@hidden> wrote:
> Hi Martin (I Guess)
>
> I am having trouble building the mag_micromag_fw module in ap mode.
>
> I get the following message in the paparazzi centre
>
> CC
> /home/stephen/paparazzi/var/FJSR/ap/arch/lpc21/modules/sensors/mag_micromag_fw_hw.o
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c: In function `SSP_ISR':
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c:22: warning: implicit
> declaration of function `SpiClearRti'
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c:22: warning: nested
> extern declaration of `SpiClearRti'
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c:22: warning: implicit
> declaration of function `SpiDisableRti'
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c:22: warning: nested
> extern declaration of `SpiDisableRti'
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c:22: warning: implicit
> declaration of function `SpiDisable'
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.c:22: warning: nested
> extern declaration of `SpiDisable'
> arch/lpc21/modules/sensors/mag_micromag_fw_hw.
>
> The relevant section of my airframe.xml file is:
>
> airframe name="Funjet 3sw Tiny 2.11">
>
>   <firmware name="fixedwing">
>     <target name="ap"                  board="tiny_2.11">
>       <define name="AGR_CLIMB"/>
>       <define name="LOITER_TRIM"/>
>       <define name="ALT_KALMAN"/>
>       <define name="WIND_INFO"/>
>       <define name="WIND_INFO_RET"/>
>       <define name="STRONG_WIND"/>
>       <define name="USE_I2C0"/>
>       <define name="USE_MAG_MICROMAG_FW"/>
>       <define name="MAG_MICROMAG_FW_DRDY_VIC_SLOT" value="9"/>
>       <define name="SSP_VIC_SLOT" value="11"/>
>       <define name="SENSOR_SYNC_SEND"/>
>     </target>
>
>     <target name="sim"                 board="pc">
>       <define name="AGR_CLIMB"/>
>       <define name="LOITER_TRIM"/>
>       <define name="ALT_KALMAN"/>
>       <define name="WIND_INFO"/>
>       <define name="WIND_INFO_RET"/>
>     </target>
>
>        <!-- RC -->
>     <subsystem name="radio_control"    type="ppm"/>
>     <!-- Communication -->
>     <subsystem name="telemetry"        type="transparent">
>       <param name="MODEM_BAUD"         value="B9600"/>
>     </subsystem>
>     <!-- Actuators are automatically chosen according to board-->
>     <subsystem name="control"/>
>     <!-- Sensors -->
>     <subsystem name="attitude"         type="infrared"/>
>     <subsystem name="gps"              type="ublox_lea4p">
>       <param name="GPS_BAUD"           value="B38400"/>
>     </subsystem>
>     <!-- Nav -->
>     <subsystem name="navigation"/>
>     <!-- Interfaces -->
>     <subsystem name="i2c"/>
>   </firmware>
>
>   <firmware name="setup">
>     <target name="tunnel"              board="tiny_2.11"/>
>     <target name="usb_tunnel_0"        board="tiny_2.11"/>
>     <target name="usb_tunnel_1"        board="tiny_2.11"/>
>     <target name="setup_actuators"     board="tiny_2.11"/>
>   </firmware>
>
>   <!-- modules -->
>   <modules>
>     <load name="mag_micromag_fw.xml"/>
>     <load name="baro_scp_i2c.xml"/>
>     <load name="digital_camo.xml"/>
>   </modules>
>
>
>  <section name="MAG_MICROMAG">
>
>     <define name="MM_SS_PIN" value="20"/>
>     <define name="MM_SS_IODIR" value="IO0DIR"/>
>     <define name="MM_SS_IOSET" value="IO0SET"/>
>     <define name="MM_SS_IOCLR" value="IO0CLR"/>
>
>     <define name="MM_RESET_PIN" value="29"/>
>     <define name="MM_RESET_IODIR" value="IO0DIR"/>
>     <define name="MM_RESET_IOSET" value="IO0SET"/>
>     <define name="MM_RESET_IOCLR" value="IO0CLR"/>
>
>     <define name="MM_DRDY_PINSEL" value="PINSEL1"/>
>     <define name="MM_DRDY_PINSEL_BIT" value="0"/>
>     <define name="MM_DRDY_PINSEL_VAL" value="1"/>
>     <define name="MM_DRDY_EINT" value="0"/>
>     <define name="MM_DRDY_VIC_IT" value="VIC_EINT0"/>
>   </section>
>
>
> Any help appreciated.
>
> Regards
>
> Stephen
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>



reply via email to

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