Skip to content

iPAS/esp32-openocd-vscode-debugging

Repository files navigation

An Example for ESP32 Debugging via OpenOCD

Build OpenOCD from Source

  • Prepare:
sudo apt-get install build-essential automake autoconf texinfo cmake libtool pkg-config libusb-dev libusb-1.0.0-dev libftdi-dev
  • Call build.sh to build openocd-esp32_espressif from scratch.

Quick Start

  • Plug the BusBlaster adapter as the first usb device, and
  • Run openocd.sh as gdbserver, then
  • Use debug_esp32.sh as command-line debugger version, or
  • Use the debugging function in Vscode (please extract blink_lolin32_debugging.tar.gz and open the folder).

Quick Fix

Use fix_openocd-esp32_espressif_compile-error.patch for solving compilation error in openocd-esp32_espressif submodule. Just call patch.sh. Currently, it is called along with build.sh.

References

About

Scripts for using OpenOCD-ESP32 for debugging in command-line and Vscode (GUI).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published