Working with the CJMCU-232H JTAG debugger in esp-idf


To use this utility, an esp-idf environment must be installed (see Installing ESP-IDF).

Example of work

After installing esp-idf the required version of openocd with support for ESP32 microcontrollers is already installed in the directory .espressif/tools/openocd-esp32/.


  • The example shows the version of esp-idf at the time this article was written. Actual versions may differ.

  • The example shows a board based on ESP32-WROVER-KIT. For other boards, you will need to use the appropriate configuration file.

Running openocd:

cd ~/esp
. $HOME/esp/esp-idf/
openocd -f board/esp32-wrover-kit-3.3v.cfg

Possible problems

When connecting a debugger, openocd does not detect it

You need to add the correct vendor/product ID pair 0x0403 0x6014 to the first place in the configuration file:

cd ~/esp
nano $HOME/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg

Make changes to the file:

interface ftdi
ftdi_vid_pid 0x0403 0x6014