[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Paparazzi-devel] spi related errors during compile time
From: |
Chris |
Subject: |
Re: [Paparazzi-devel] spi related errors during compile time |
Date: |
Mon, 01 Jul 2013 13:46:20 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
On 07/01/2013 12:30 AM, address@hidden wrote:
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
Hi Felix.
I did tried with spi0, sp1 and spi2 and i always get those errors (now i
use spi1):
D /home/hendrix/paparazzi/var/Cessna_182/ap/ap.elf
/home/hendrix/paparazzi/var/Cessna_182/ap/mcu.o: In function `mcu_init':
mcu.c:(.text.mcu_init+0x98): undefined reference to `spi1_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.constprop.3':
max7456.c:(.text.osd_put_s.constprop.3+0x11c): undefined reference to
`spi_submit'
max7456.c:(.text.osd_put_s.constprop.3+0x148): undefined reference to `spi1'
/home/hendrix/paparazzi/var/Cessna_182/ap/modules/osd/max7456.o: In
function `max7456_init':
max7456.c:(.text.max7456_init+0x6c): undefined reference to `spi_submit'
max7456.c:(.text.max7456_init+0xd0): undefined reference to `spi_submit'
max7456.c:(.text.max7456_init+0xe4): undefined reference to `spi1'
/home/hendrix/paparazzi/var/Cessna_182/ap/modules/osd/max7456.o: In
function `max7456_put_s_trans_cb':
max7456.c:(.text.max7456_put_s_trans_cb+0xb0): undefined reference to
`spi_submit'
max7456.c:(.text.max7456_put_s_trans_cb+0x10c): undefined reference to
`spi_submit'
max7456.c:(.text.max7456_put_s_trans_cb+0x128): undefined reference to
`spi_submit'
max7456.c:(.text.max7456_put_s_trans_cb+0x1ac): undefined reference to
`spi1'
/home/hendrix/paparazzi/var/Cessna_182/ap/modules/osd/max7456.o: In
function `max7456_put_c_trans_cb':
max7456.c:(.text.max7456_put_c_trans_cb+0x58): undefined reference to
`spi_submit'
max7456.c:(.text.max7456_put_c_trans_cb+0x94): undefined reference to
`spi_submit'
max7456.c:(.text.max7456_put_c_trans_cb+0xd0): undefined reference to
`spi_submit'
max7456.c:(.text.max7456_put_c_trans_cb+0x124): undefined reference to
`spi1'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/hendrix/paparazzi/var/Cessna_182/ap/ap.elf] Error 1
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'
FAILED 'make -C /home/hendrix/paparazzi -f Makefile.ac
AIRCRAFT=Cessna_182 ap.compile' with code 2
Now if i add those lines in my airframe file's makefile section it
compiles fine:
ap_flags += -DUSE_SPI -DSPI_MASTER
ap.srcs += mcu_periph/spi.c $(SRC_ARCH)/mcu_periph/spi_arch.c
Btw i also needed the sprintf function for the OSD driver so i added
this line also:
LDFLAGS += -lnosys
Chris