Binary images for reprogramming firmware applications UM1467
9/46 Doc ID 022172 Rev 1
4 Binary images for reprogramming firmware
applications
This section describes how to use the provided binary images to reprogram the firmware
applications. The STM32F4DISCOVERY firmware package contains binary images (*.hex
and *.dfu) of the provided applications which allow to use the STM32F4xx's embedded
Bootloader or any in-system programming tool to reprogram these applications easily.
Below are the steps to follow:
● Using “in-system programming tool”
– Connect the STM32F4DISCOVERY board to a PC with a 'USB type A to Mini-B'
cable through USB connector CN1 to power the board.
– Make sure that the embedded ST-LINK/V2 is configured for in-system
programming (both CN3 jumpers ON).
– Use *.hex binary (for example,
\Project\Demonstration\Binary\STM32F4-Discovery_Demonstration_V1.0.0.hex)
with your preferred in-system programming tool to reprogram the demonstration
firmware (ex. STM32 ST-LINK Utility, available for download from www.st.com).
● Using “Bootloader (USB FS Device in DFU mode)”
– Configure the STM32F4DISCOVERY board to boot from “System Memory” (boot
pins BOOT0:1 / BOOT1:0)
– Set BOOT0 pin to high level: on the male header P2 place a jumper between
BOOT0 pin and VDD pin
– Set BOOT1(PB2) pin to low level: on the male header P1 place a jumper between
PB2 pin and GND pin
– Connect a 'USB type A to Mini-B' cable between PC and USB connector CN1 to
power the board.
– Connect a 'USB type A to Micro-B' cable between PC and USB connector CN5,
the board will be detected as USB device.
– Use *.dfu binary (for example,
\Project\Demonstration\Binary\STM32F4-Discovery_Demonstration_V1.0.0.dfu)
with “DFUse\DFUse Demonstration" tool (available for download from
www.st.com) to reprogram the demonstration firmware.