[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Paparazzi-devel] stm32f4 spi errors
From: |
Chris |
Subject: |
[Paparazzi-devel] stm32f4 spi errors |
Date: |
Fri, 05 Jul 2013 15:46:21 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
I almost succeded in compiling code for the krooz autopilot using the
latest paparazzi master
but i hit a more generic problem so i would like an advice before i try
something my self.
While i was searching of ways to write a suitable for the krooz board.h
file, i noticed that the apogee_0.99.h also uses the STM32F4 cpu so i
followed this bord file and adjusted it for the krooz
but in the end i failed with those errors:
(Btw the airframe is really simple without any modules or fancy stuff)
arch/stm32/mcu_periph/spi_arch.c: In function 'spi_configure_dma':
arch/stm32/mcu_periph/spi_arch.c:442:3: warning: implicit declaration of
function 'dma_channel_reset' [-Wimplicit-function-declaration]
arch/stm32/mcu_periph/spi_arch.c:442:3: warning: nested extern
declaration of 'dma_channel_reset' [-Wnested-externs]
arch/stm32/mcu_periph/spi_arch.c:449:40: error: 'DMA_CCR_PSIZE_8BIT'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:449:40: note: each undeclared
identifier is reported only once for each function it appears in
arch/stm32/mcu_periph/spi_arch.c:450:36: error: 'DMA_CCR_MSIZE_8BIT'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:452:40: error: 'DMA_CCR_PSIZE_16BIT'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:453:36: error: 'DMA_CCR_MSIZE_16BIT'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: In function 'spi_start_dma_transaction':
arch/stm32/mcu_periph/spi_arch.c:569:3: warning: implicit declaration of
function 'dma_set_read_from_peripheral' [-Wimplicit-function-declaration]
arch/stm32/mcu_periph/spi_arch.c:569:3: warning: nested extern
declaration of 'dma_set_read_from_peripheral' [-Wnested-externs]
arch/stm32/mcu_periph/spi_arch.c:570:44: error: 'DMA_CCR_PL_VERY_HIGH'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:594:3: warning: implicit declaration of
function 'dma_set_read_from_memory' [-Wimplicit-function-declaration]
arch/stm32/mcu_periph/spi_arch.c:594:3: warning: nested extern
declaration of 'dma_set_read_from_memory' [-Wnested-externs]
arch/stm32/mcu_periph/spi_arch.c:595:44: error: 'DMA_CCR_PL_MEDIUM'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:603:3: warning: implicit declaration of
function 'dma_enable_channel' [-Wimplicit-function-declaration]
arch/stm32/mcu_periph/spi_arch.c:603:3: warning: nested extern
declaration of 'dma_enable_channel' [-Wnested-externs]
arch/stm32/mcu_periph/spi_arch.c: In function 'process_rx_dma_interrupt':
arch/stm32/mcu_periph/spi_arch.c:920:3: warning: implicit declaration of
function 'dma_disable_channel' [-Wimplicit-function-declaration]
arch/stm32/mcu_periph/spi_arch.c:920:3: warning: nested extern
declaration of 'dma_disable_channel' [-Wnested-externs]
arch/stm32/mcu_periph/spi_arch.c:939:46: error: 'DMA_CCR_PL_HIGH'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: In function 'process_tx_dma_interrupt':
arch/stm32/mcu_periph/spi_arch.c:1000:46: error: 'DMA_CCR_PL_MEDIUM'
undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: At top level:
arch/stm32/mcu_periph/spi_arch.c:909:6: warning:
'process_rx_dma_interrupt' defined but not used [-Wunused-function]
arch/stm32/mcu_periph/spi_arch.c:971:6: warning:
'process_tx_dma_interrupt' defined but not used [-Wunused-function]
arch/stm32/mcu_periph/spi_arch.c:312:13: warning:
'set_default_comm_config' defined but not used [-Wunused-function]
arch/stm32/mcu_periph/spi_arch.c:325:16: warning: 'get_comm_signature'
defined but not used [-Wunused-function]
make[1]: ***
[/home/hendrix/paparazzi/var/krooz_fixed_wing/ap/arch/stm32/mcu_periph/spi_arch.o]
Error 1
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'
Then just to be sure i changed the autopilot type from "krooz_1.0" to
"apogee_0.99"
type autopilot which is included by default but i got the same errors so
this problem is more like stm32f4 specific.
Is there any work in progress for fixing this or i should go ahead and
edit some files my self?
I am asking because i am trying to use code compatible with the standard
paparazzi.
Chris
- [Paparazzi-devel] stm32f4 spi errors,
Chris <=
- Re: [Paparazzi-devel] stm32f4 spi errors, Chris, 2013/07/05
- Re: [Paparazzi-devel] stm32f4 spi errors, Chris, 2013/07/05
- Re: [Paparazzi-devel] stm32f4 spi errors, Sergey Krukowski, 2013/07/05
- Re: [Paparazzi-devel] stm32f4 spi errors, Sergey Krukowski, 2013/07/08
- Re: [Paparazzi-devel] stm32f4 spi errors, Chris, 2013/07/11
- Re: [Paparazzi-devel] stm32f4 spi errors, Sergey Krukowski, 2013/07/11