User Tools

Site Tools


hacks:boards:openocd

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.

hacks/boards/openocd.txt · Last modified: 2017/03/20 04:50 by tdwebste

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki