Configure OpenOCD
The default OpenOCD configuration is set for CMSIS-DAP. ST-Link users need to modify openocd.cfg
.
Replace:
source [find interface/cmsis-dap.cfg] # CMSIS-DAP
With one of the following, depending on your ST-Link version:
source [find interface/stlink.cfg] # ST-Link V1
source [find interface/stlink-v2.cfg] # ST-Link V2
source [find interface/stlink-v3.cfg] # ST-Link V3