Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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