paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] stm32f4 discovery


From: Marius Pfeffer
Subject: Re: [Paparazzi-devel] stm32f4 discovery
Date: Wed, 11 Sep 2013 19:24:15 +0200




2013/9/11 Felix Ruess <address@hidden>
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.
ok

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.
Tanks, didn't know that, havent done anything with arm MCU yet ^^
I first thought SWD will work best, so i wrote the wiki artice.
 
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?
Chris said;
"A pcb companion for the stm32f4 discovery with all the needed hardware....
Anyway i think i can make a better companion-sensor pcb based on my flying experience :-)"
So i thoug he is working on something.

Cheers, Felix

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

cheers
Marius

reply via email to

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