14 lines
395 B
Text
14 lines
395 B
Text
# OpenOCD script for using ST-Link v2 as SWD Programmer for nRF52
|
|
|
|
# VSCode debugger searches this folder for OpenOCD scripts
|
|
add_script_search_dir openocd/scripts
|
|
|
|
# Set OpenOCD logging
|
|
source [find scripts/flash-init.ocd]
|
|
|
|
# Select the ST-Link v2 interface (SWD transport)
|
|
source [find interface/stlink-v2.cfg]
|
|
transport select hla_swd
|
|
|
|
# Select nRF52 as target
|
|
source [find target/nrf52.cfg]
|