paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] spi related errors during compile time


From: Martin Mueller
Subject: Re: [Paparazzi-devel] spi related errors during compile time
Date: Mon, 01 Jul 2013 17:05:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

Hi Felix,

just saying SPI0 is usable and used. No interrupts, no HAL

https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/arch/lpc21/efsl/src/interfaces/lpc2000_spi.c#L44

Martin

On 07/01/2013 01:15 PM, Felix Ruess wrote:
Hi Martin,

how/where is the spi0 ISR, etc. then defined in this logger firmware?
Does it use our mcu_periph/spi HAL?
If not, I would still add a more informative error message if you try to
use spi0 with mcu_periph/spi on the LPC.

Cheers, Felix


On Mon, Jul 1, 2013 at 12:46 PM, Martin Mueller <address@hidden
<mailto:address@hidden>> wrote:

    SPI0 is used in some derivates of the logger, though.

    Martin

     > Gautier Hattenberger <address@hidden
    <mailto:address@hidden>> hat am 1. Juli 2013 um
     > 11:45 geschrieben:
     >
     >
     > Yes, only SPI1 is implemented on LPC.
     > SPI0 works in a really different way (speaking about he
    configuration)
     > and is not efficient at all (no hardware buffer). So it is a lot
    of work
     > to get it work.
     > Also, SPI0 is not easily accessible on a twog anyway...
     >
     > Gautier
     >
     > Le 30/06/2013 22:20, Felix Ruess a écrit :
     > > Hi Chris,
     > >
     > > if I'm not mistaken, only SPI1 ( aka SSP ) is currently
    supported on
     > > the LPC.
     > > Gautier, please correct me if I'm wrong, otherwise I'll add a
    compile
     > > time error message for this...
     > >
     > > Cheers, Felix
     > >
     > >
     > > On Sun, Jun 30, 2013 at 9:46 PM, Chris <address@hidden
    <mailto:address@hidden>
     > > <mailto:address@hidden <mailto:address@hidden>>> wrote:
     > >
     > >     Hi.
     > >     It is probably something stupid i forgot but when i try to
    compile
     > >     my aircraft (ap=twog with the latest master version) which
     > >     includes an own max7456 module, i get those spi related errors:
     > >
     > >     /home/hendrix/paparazzi/var/Cessna_182/ap/mcu.o: In function
     > >     `mcu_init':
     > >     mcu.c:(.text.mcu_init+0x98): undefined reference to `spi0_init'
     > >     mcu.c:(.text.mcu_init+0x9c): undefined reference to
    `spi_init_slaves'
     > >
    /home/hendrix/paparazzi/var/Cessna_182/ap/modules/osd/max7456.o:
     > >     In function `osd_put_s':
     > >     max7456.c:(.text.osd_put_s+0x120): undefined reference to
    `spi_submit'
     > >     max7456.c:(.text.osd_put_s+0x14c): undefined reference to
    `spi0'
     > >
     > >     I have included the spi.h file (#include "mcu_periph/spi.h") in
     > >     the c file
     > >     and i have defined those values in the module's  xml file:
     > >
     > >     <define name="SPI_MASTER" value="1" />
     > >     <define name="USE_SPI" value="1" />
     > >     <define name="USE_SPI0" value="1" />
     > >     <define name="MAX7456_SPI_DEVICE" value="spi0" />
     > >     <define name="USE_SPI_SLAVE0" value="1" />
     > >     <define name="OSD_SPI_SLAVE_NUMBER" value="SPI_SLAVE0" />
     > >
     > >     Any ideas about what might cause those errors?
     > >     Chris
     > >
     > >
     > >     _______________________________________________
     > >     Paparazzi-devel mailing list
     > > address@hidden <mailto:address@hidden>
    <mailto:address@hidden <mailto:address@hidden>>
     > > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
     > >
     > >
     > >
     > >
     > > _______________________________________________
     > > Paparazzi-devel mailing list
     > > address@hidden <mailto:address@hidden>
     > > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
     > _______________________________________________
     > Paparazzi-devel mailing list
     > address@hidden <mailto:address@hidden>
     > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

    _______________________________________________
    Paparazzi-devel mailing list
    address@hidden <mailto:address@hidden>
    https://lists.nongnu.org/mailman/listinfo/paparazzi-devel






reply via email to

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