Skip to content

Instantly share code, notes, and snippets.

@gojimmypi
Last active May 27, 2017 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gojimmypi/c2f65d468573028908c3ad87ff1aca9c to your computer and use it in GitHub Desktop.
Save gojimmypi/c2f65d468573028908c3ad87ff1aca9c to your computer and use it in GitHub Desktop.
ESP32 IDF OpenOCD
#!/bin/bash
# assumes git clone started in ~\workspace for openocd-esp32
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
export IDF_PATH=~/esp/esp-idf
cd  ~/workspace/openocd-esp32/tcl
sudo openocd -f interface/ftdi/olimex-arm-usb-ocd-h-1MHz.cfg -c "transport select jtag"  -f target/esp32.cfg
#sudo openocd -f interface/jlink.cfg -f target/esp32.cfg
# or
#sudo openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/esp32.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment