The low cost bluepill board can be converted into a blackmagic probe, which supports JTAG/SWD debugging of many targets.
To do this DFU/blackmagic.bin is needed, can be programmed onto the stm32 using serial bootloader or with an STLINK. I've added the zip as compiling it can be a bit of work, target=STLINK. Pins are as follows:
Pinout (SWD, 6 pin):
Pinout (JTAG):
Pinout (serial), provided by jonnyw2k:
stlink platform github: https://github.com/blacksphere/blackmagic/blob/master/src/platforms/stlink/platform.h
Dimensions I used are specific to my board, so I'm not sure how well other boards will fit. Pin header retention didn't print to well, but seemed to work OK, glue would help.
I managed to "kill" a SAMD21 using the debugger, still trying to figure out how to recover it. But otherwise it worked well to load .hex bootloader and code.
Printer:
Anycubic
Rafts:
No
Supports:
No
Resolution:
0.2mm
Infill:
100%
Category: ElectronicsThe author marked this model as their own original creation. Imported from Thingiverse.