Param Aggarwal
Published © MIT

Converting An STM32F103 Board To A Black Magic Probe

Using the $2 (Blue Pill) STM32 board we can have a debugger that supports breakpoints. No need of OpenOCD, as it runs GDB on-chip.

IntermediateProtip1 hour3,827
Converting An STM32F103 Board To A Black Magic Probe

Things used in this project

Hardware components

STM32 Development Board (STM32F103C8T6 - Blue Pill)
×1
CP2104 Serial Converter (USB to UART/TTL)
×1

Software apps and online services

Arduino IDE
Arduino IDE
stm32loader (Python Script)
Black Magic Probe Firmware

Story

Read more

Schematics

Connections

These are the connections between your UART converter and the STM32 board while you upload the DFU boot-loader.

Code

Pin Connections on your new probe

Plain text
TARGET          DEBUGGER
GND             GND
SWDIO           PB14
SWCLK           PA5
POWER           3.3V

stm32loader (Python Script)

A Python script to upload code to STM32 using default boot loader via UART.

Black Magic Probe Firmware

Credits

Param Aggarwal

Param Aggarwal

2 projects • 7 followers
Living at the intersection of React & React Native based apps, along with Arduino and ESP8266 based hardware.

Comments