Difference between revisions of "STM32F4 Discovery"

From PaparazziUAV
Jump to navigation Jump to search
Line 43: Line 43:
**required hardware: usb to mini usb cable
**required hardware: usb to mini usb cable
**required software: st_flash and st_util
**required software: st_flash and st_util
**more information: [[Serial_Wire_Debug|Serial Wire Debug Page]]
**more information: [[STLink]] page






[[Category:Autopilots]]
[[Category:Autopilots]]

Revision as of 06:55, 30 September 2013

Stm32f4-discovery.jpg

Overview (Discovery Board only)

  • STMicroelectronics STM32F4VGT6 Cortex M4 MCU, up to 168Mhz with floating point unit (FPU), 192 KB RAM, 1024KB Flash
  • on-board stlinkv2 with SWD header (capeable of programming itself or a external MCU)
  • ob-board power regulator for the MCU (3V or 5V Input) 3v input possible at vdd?
  • 1 x user push button
  • 4 x LED (orange, green, blue, red)
  • 4 x UART (UART1, UART2, UART4, UART6)
  • 1 x SPI
  • 3 x I2c (I2C1, I2c2, I2c3)
  • 1 x PPM input
  • 4 x ADC input, which one is used for bat voltage
  • 97 x 66 mm PCB
  • 4 x status LED (USB OTG, stlink red, stlink green, USB power)
  • CS43L22 audio codec with 3,5mm jack
  • LIS302DL MEMS 3 axis accelerometer

Features of the addon board

Pinout

The Discovery has a male 100 pin (2x25pin on each side) pinout in 2,54mm on both sides of the board.

Jumper

pin jumper

  • JP1 current consumption of the MCU can be measured here
  • CN3 set: stlinkv2 is connected to onboard MCU, unset: stlinkv2 is connected to SWD header to program external MCU

solder jumper

  • SB17 bypass for JP1



Firmware Flashing

FLASH_MODE=DFU is set as default
stm32f4-discovery can be programmed in two different ways:

  • with the MCU native (embedded in rom) DFU USB bootloader over the micro usb ab connector
    • required hardware: usb to micro and usb to mini usb cable
    • required software: dfu_util tool (present
    • put MCU in DFU mode: connect mini and usb to pc, connect pin BOOT0 with 3V, press reset button(LED LD7 should light up now), disconnect BOOT0 to 3V
  • with onboard stlinkv2 over SWD
    • required hardware: usb to mini usb cable
    • required software: st_flash and st_util
    • more information: STLink page