paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] stm32f4 spi errors


From: Felix Ruess
Subject: Re: [Paparazzi-devel] stm32f4 spi errors
Date: Thu, 11 Jul 2013 18:46:29 +0200

There is no change regarding spi. That is still not ported. But the krooz imu drivers are there now, but they use i2c... so as long as you don't need spirit for other payload/sensors you can fly with it.

On Jul 11, 2013 2:57 PM, "Chris" <address@hidden> wrote:
Hi Felix
I get a lot of errors about the spi, what i do wrong (i have setup the spi subsystem type master)
Btw without the spi everything works fantastically well.

CC /home/hendrix/paparazzi/var/c182_krooz/ap/arch/stm32/mcu_periph/spi_arch.o
arch/stm32/mcu_periph/spi_arch.c: In function 'SpiSlaveUnselect':
arch/stm32/mcu_periph/spi_arch.c:133:16: error: 'SPI_SELECT_SLAVE0_PORT' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:133:16: note: each undeclared identifier is reported only once for each function it appears in
arch/stm32/mcu_periph/spi_arch.c:133:40: error: 'SPI_SELECT_SLAVE0_PIN' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: In function 'SpiSlaveSelect':
arch/stm32/mcu_periph/spi_arch.c:170:18: error: 'SPI_SELECT_SLAVE0_PORT' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:170:42: error: 'SPI_SELECT_SLAVE0_PIN' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: In function 'spi_init_slaves':
arch/stm32/mcu_periph/spi_arch.c:214:21: error: 'SPI_SELECT_SLAVE0_PORT' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:214:45: error: 'SPI_SELECT_SLAVE0_PIN' undeclared (first use in this function)
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: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 'spi1_arch_init':
arch/stm32/mcu_periph/spi_arch.c:624:22: error: 'DMA_CHANNEL2' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:625:22: error: 'DMA_CHANNEL3' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:626:26: error: 'NVIC_DMA1_CHANNEL2_IRQ' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:627:26: error: 'NVIC_DMA1_CHANNEL3_IRQ' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:649:3: warning: implicit declaration of function 'gpio_set_mode' [-Wimplicit-function-declaration]
arch/stm32/mcu_periph/spi_arch.c:649:3: warning: nested extern declaration of 'gpio_set_mode' [-Wnested-externs]
arch/stm32/mcu_periph/spi_arch.c:649:17: error: 'GPIO_BANK_SPI1_SCK' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:649:37: error: 'GPIO_MODE_OUTPUT_50_MHZ' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:650:17: error: 'GPIO_CNF_OUTPUT_ALTFN_PUSHPULL' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:651:17: error: 'GPIO_SPI1_SCK' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:651:33: error: 'GPIO_SPI1_MOSI' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:653:17: error: 'GPIO_BANK_SPI1_MISO' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:653:55: error: 'GPIO_CNF_INPUT_FLOAT' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:654:17: error: 'GPIO_SPI1_MISO' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:680:32: error: 'RCC_AHBENR' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:680:44: error: 'RCC_AHBENR_DMA1EN' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: At top level:
arch/stm32/mcu_periph/spi_arch.c:841:6: warning: no previous prototype for 'dma1_channel2_isr' [-Wmissing-prototypes]
arch/stm32/mcu_periph/spi_arch.c: In function 'dma1_channel2_isr':
arch/stm32/mcu_periph/spi_arch.c:843:8: error: 'DMA1_ISR' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:843:19: error: 'DMA_ISR_TCIF2' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:845:5: error: 'DMA1_IFCR' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:845:18: error: 'DMA_IFCR_CTCIF2' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c: At top level:
arch/stm32/mcu_periph/spi_arch.c:851:6: warning: no previous prototype for 'dma1_channel3_isr' [-Wmissing-prototypes]
arch/stm32/mcu_periph/spi_arch.c: In function 'dma1_channel3_isr':
arch/stm32/mcu_periph/spi_arch.c:853:8: error: 'DMA1_ISR' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:853:19: error: 'DMA_ISR_TCIF3' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:855:5: error: 'DMA1_IFCR' undeclared (first use in this function)
arch/stm32/mcu_periph/spi_arch.c:855:18: error: 'DMA_IFCR_CTCIF3' undeclared (first use in this function)
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)
make[1]: *** [/home/hendrix/paparazzi/var/c182_krooz/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'

On 07/11/2013 12:00 PM, paparazzi-devel-request@nongnu.org wrote:
Hi,

Everything needed for krooz is in master now.

Cheers, Felix


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

reply via email to

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