Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active March 30, 2020 23:18
Show Gist options
  • Save tstellanova/e6911ad836cdf11c2e2d3e9bd8e3448a to your computer and use it in GitHub Desktop.
Save tstellanova/e6911ad836cdf11c2e2d3e9bd8e3448a to your computer and use it in GitHub Desktop.
Using openocd with pinetime smart watch (nrf52 based)

Setup a custom build of openocd:

git clone https://github.com/ntfreak/openocd pinetime_openocd
cd pinetime_openocd
./bootstrap
./configure --enable-cmsis-dap
make

Within the custom build directory:

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment