OpenOCD

OpenOCD

This is often bundled as part of a build tools suite.

Build Tool Suites which include OpenOCD

There is a debian package for OpenOCD, but it is unfortunately out of date.

The other option is to build OpenOCD from source

Use openocd and gdb

  • first shell window, below is an example
    • openocd -f ~/src/ChibiOS/ChibiStudio/tools/openocd/scripts/board/st_nucleo_f4.cfg
  • second shell window, open gdb or ddd
    • arm-none-eabi-gdb
      • monitor reset halt
      • target remote localhost:3333
      • file build/ch.elf
      • continue

For more details on how to use gdb, Read the manual. I prefer ddd, which is the graphical interface to gdb.

wiki/hacks/boards/openocd.txt · Last modified: 2017/03/19 21:50

facebook | instagram

Copyright © 2025 Vancouver Hack Space Society | VHS acknowledges that it is situated on the unceded traditional territories of the xʷməθkʷəy̓əm (Musqueam), Sḵwx̱wú7mesh (Squamish), and səlilwətaɬ (Tsleil-Waututh) Nations, on whose territories we hack, work, make, learn, live and play.

CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International