---
title: "<code class=\"docutils literal notranslate\"><span class=\"pre\">pbl</span> <span class=\"pre\">openocd</span></code>"
canonical_url: https://developer.repebble.com/pebbleos/docs/pbl/openocd/
last_updated: 2026-10-21
sdk_version: 4.33.1
---
# <code class="docutils literal notranslate"><span class="pre">pbl</span> <span class="pre">openocd</span></code>

Source: https://developer.repebble.com/pebbleos/docs/pbl/openocd/

Start an OpenOCD debug server and leave it running, resetting the board first to improve the chances of attaching. Use it to attach a debugger of your own instead of [pbl debug](https://developer.repebble.com/pebbleos/docs/pbl/debug.md).

```
pbl openocd
```

## Options

```
pbl openocd [-h] [-b DIR] [--dry-run] [-r {nrfutil,openocd,sftool}]
            [--tty TTY]
```

`-r, --runner {nrfutil,openocd,sftool}`

Override the board’s runner

`--tty TTY`

Serial port for the sftool runner

Generated from PebbleOS [3a7b71785](https://github.com/coredevices/pebbleos/commit/3a7b71785fd439666c4a8bc116f561140e8dec01). This page is maintained in the pebbleos repository: [docs/pbl/openocd.md](https://github.com/coredevices/pebbleos/blob/3a7b71785fd439666c4a8bc116f561140e8dec01/docs/pbl/openocd.md).
