Do you have any idea how to debug a CMSIS-DAP firmware? Something must be wrong with my implementation since I am getting RDDI-DAP errors in SWD modes but proper JTAG bus scans in JTAG mode against a STM32F407 target. As of actually programming and debugging that is another can of worms I have yet to open.
With another debugger?
I have only got my toes wet adding support for
Texas MSP432 and
NXP Kinetis KE04 (not yet merged) to Black Magic Probe, but all the SWD infrastructure was already in place.
I'm not promising anything, but if I have time I might try to clone your repo and flash it on a Nucleo F042, to see what happens.