git clone https://github.com/ntfreak/openocd pinetime_openocd
cd pinetime_openocd
./bootstrap
./configure --enable-cmsis-dap
make
- Create a config file:
cat > nrf52.cfg
source [find interface/stlink.cfg]
transport select hla_swd
source [find target/nrf52.cfg]
init
- start openocd
./src/openocd -s tcl -f nrf52.cfg
`
### Load software
- Use gdb as usual