STM32F4 Discovery
Revision as of 13:08, 4 October 2013 by NeoFromMatrix (talk | contribs)
This is for the STM32F4 Discovery board with STM32F407VGT6, a familiar board is available with STM32F401VCT6 but this is NOT exactly the same ! Do not use the other board with files build for this one !!!
Overview
- 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
Pinout
The Discovery has a male 100 pin (2x25pin on each side) pinout in 2,54mm on both sides of the board.
LED
LED_3 PD13 orange, above LIS302DL
LED_4 PD12 green, left of LIS302DL
LED_5 PD14 red, right of LIS302DL
LED_6 PD15 blue, below LIS302DL
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