blackmagic/src/platforms/f4discovery
Piotr Esden-Tempski fcdd93e008 Removed BlackPillV2 platform variant from the f4 discovery.
Combined platforms make it hard to do build testing, it is better to
have duplicate code and be able test all variants.
2022-06-04 01:31:27 -04:00
..
Makefile.inc Removed BlackPillV2 platform variant from the f4 discovery. 2022-06-04 01:31:27 -04:00
Readme.md Removed BlackPillV2 platform variant from the f4 discovery. 2022-06-04 01:31:27 -04:00
platform.c Removed BlackPillV2 platform variant from the f4 discovery. 2022-06-04 01:31:27 -04:00
platform.h Removed BlackPillV2 platform variant from the f4 discovery. 2022-06-04 01:31:27 -04:00
usbdfu.c f4discovery: Compile time option to compile with ST bootloader 2020-11-27 22:26:48 +01:00

Readme.md

Firmware BMP for STM32F407 DISCO boards

Allows the use of the STM32F407 Discovery board main cpu as a Black Magic Probe. Historically it was used to program the on board built in debugger before ST-Link bootloader use was possible.

Connections:

PC2: TDI
PC4: TMS/SWDIO
PC5: TCK/SWCLK
PC6: TDO/TRACESWO

PC1: TRST
PC8: SRST

How to Flash with dfu

  • After build:
    1. apt install dfu-util
    1. Force the F4 into system bootloader mode by jumpering "BOOT0" to "3V3" and "PB2/BOOT1" to "GND" and reset (RESET button). System bootloader should appear.
    1. dfu-util -a 0 --dfuse-address 0x08000000 -D blackmagic.bin

To exit from dfu mode press a "key" and "reset", release reset. BMP firmware should appear

10 pin male from pins

PB3/TDO PB7/RX PB6/TX X PA1/TDI
PB4/SRST +3V3/PB8 SW PA13/SWDIO PA14/SWCLK GND

SWJ frequency setting

https://github.com/blackmagic-debug/blackmagic/pull/783#issue-529197718

mon freq 900k helps at most