This is firmware for a debug probe that solves the question what to choose - OpenOCD or Black Magic Probe. With this firmware you do not have to choose between OpenOCD and Black Magic Probe - it does both.
Use openocd or black magic probe.
For openocd, use cmsis-dap:
$ ./bin/openocd -f openocd/scripts/interface/cmsis-dap.cfg -f openocd/scripts/target/stm32f0x.cfg
...
Info : Listening on port 3333 for gdb connections
In another window:
~$ arm-none-eabi-gdb -q
(gdb) tar ext :3333
Remote debugging using :3333
For black magic probe, connect to the first of the two usb serials:
$ arm-none-eabi-gdb -q
(gdb) tar ext /dev/ttyACM0
Remote debugging using /dev/ttyACM0
Connect the second usb serial to the target console:
$ minicom -D /dev/ttyACM1
- at32f435 arm processor, 288MHz, 1024 kbyte flash, 512 kbyte ram.
- rt-thread open source real-time operating system
- CherryUSB open source usb stack
- Black Magic open source debug probe with built-in gdb server
- free-dap a free and open source implementation of the CMSIS-DAP debugger firmware.
SIGNAL | PIN |
---|---|
SWCLK | A4 |
SWDIO | A5 |
TDI | A6 |
TDO | A7 |
TXD | B10 |
RXD | B11 |
not truncated