This is an old thread, FWIW I’ve switched to J-link base compact long time ago, I use it to debug the ST F4, F7, H7, nRF/CM4 etc…using their gdb server something like this:
# Run Jlink GDB server
JLinkGDBServer -if swd -halt -strict -cpu cortex-m -device STM32H743VI
# Connect with GDB
arm-none-eabi-gdb -ex "target remote localhost:2331" build/bin/firmware.elf
It works really great, I had no issues at all when debugging our firmware…Keep in mind you need to start with a clean build (make clean) and pass DEBUG=1 when building… for example:
make -j8 TARGET=OPENMV4 DEBUG=1