Set up OpenOCD for Windows


IDF Tools Installer

If you are using CMake build system and followed the Standard Setup of Toolchain for Windows (CMake) with the ESP-IDF Tools Installer V1.2 or newer, then by default you will already have openocd installed.

ESP-IDF Tools Installer adds openocd to the PATH so that it can be run from any directory.

Set up OpenOCD

OpenOCD for Windows is available for download from Github:

Download latest release archive with win32 in its name, for example

Extract the downloaded file in ~/esp/ directory.

cd ~/esp unzip /c/Users/<user>/Downloads/openocd-esp32-win32-<version>.zip

Next Steps

To carry on with debugging environment setup, proceed to section Configuring ESP32 Target.