paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] stm32f4 discovery


From: Felix Ruess
Subject: Re: [Paparazzi-devel] stm32f4 discovery
Date: Wed, 11 Sep 2013 19:09:25 +0200

Hi Marius,

I tried a bit with the stm32f4 discovery board and saw some code i don't understand:
I'm working with kronaks excel sheet (http://kornakprotoblog.blogspot.co.at/2012/01/pinout-spreadsheet-for-stm32f4.html)

stm32f4_discovery.h

/*SPI*/
#define SPI_SELECT_SLAVE0_PORT GPIOB
#define SPI_SELECT_SLAVE0_PIN GPIO9

B 9 does not support SPI1 NSS, i think A 4 would be correct.

You can use any gpio pin as SlaveSelect output, as that is handled by the paparazzi driver via spi_enable_software_slave_management of libopencm3.

stm32f4_discover.makefile

# default flash mode is via usb dfu bootloader
# possibilities: DFU, SWD
FLASH_MODE ?= DFU
STLINK ?= n
DFU_UTIL ?= y

Is there a dfu bootloader ? I havent found one anywhere yet. If not, i would change this to stlink as default.

The STM32F4 already has a DFU bootloader integrated.
You can use the dfu_util to flash it (and this is what is used by default for this board if you press upload in the paparazzi center).
Holding BOOT0 high and BOOT1=PB2 low during reset, and keeping the USART and CAN lines quiescent, should bring up a DFU bootloader on the USB micro-AB port.
 
I would start to write a article in the wiki, would be nice if i can get the status of the "sensor addon board".
Can i add it directly to stm32f4 based board ? ( I would add it with the sensor board as "one" board)
 
Which sensor addon board do you mean?

Cheers, Felix

reply via email to

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