|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] spi related errors during compile time |
Date: | Mon, 1 Jul 2013 13:12:30 +0200 |
On 07/01/2013 12:30 AM, paparazzi-devel-request@nongnu.org wrote:Hi Felix.
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
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'/home/hendrix/paparazzi/var/Cessna_182/ap/modules/osd/max7456.o: In function `osd_put_s.constprop.3':
mcu.c:(.text.mcu_init+0x9c): undefined reference to `spi_init_slaves'
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
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |