- 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.
- 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).
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.