Using Generic STM32F1 Series, Bluepill Debugging works with Jlink(OCDVM).
Using STlink+OCD it compiles but it does not break.
Debuf output:
openocd: Open On-Chip Debugger 0.10.0+dev-01058-g853a05287 (2020-02-13-16:41)
openocd: Licensed under GNU GPL v2
openocd: For bug reports, read
openocd:
http://openocd.org/doc/doxygen/bugs.html openocd: debug_level: 2
openocd:
=thread-group-added,id="i1"
GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140228-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>.
=cmd-param-changed,param="pagination",value="off"
Note: automatically using hardware breakpoints for read-only addresses.
Micro Build output:
Compiling 'Blinkmicro1' for 'Generic STM32F1 series'
Program size: 9'264 bytes (used 7% of a 131'072 byte maximum) (10.30 secs)
Minimum Memory Usage: 580 bytes (3% of a 20480 byte maximum)
Uploading 'Blinkmicro1' to 'Generic STM32F1 series' using 'USB'
Open On-Chip Debugger 0.10.0+dev-01058-g853a05287 (2020-02-13-16:41)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html debug_level: 0
****[vMicro]**** Uploading ELF :target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1ffff020 msp: 0x200001fc
** Programming Started **
** Programming Finished **
** Resetting Target **
shutdown command invoked
The upload process has finished.
How to fix that?