Skip to content

Instantly share code, notes, and snippets.

@KenVanHoeylandt
Last active May 25, 2025 12:36
Show Gist options
  • Save KenVanHoeylandt/7493baff8722720891ab992f80700708 to your computer and use it in GitHub Desktop.
Save KenVanHoeylandt/7493baff8722720891ab992f80700708 to your computer and use it in GitHub Desktop.
OpenOCD ESP32 setup for CLion
  • Use plugin named OpenOCD + ESP32 Support for embedded development from Nico Mexis (link)
  • Ensure that you run the flash task at least once, so the bootloader and partition bin files are created
  • In the task config, ensure the bin paths are correct. For example: cmake-build-debug-esp-idf-54/bootloader/bootloader.bin versus cmake-build-esp-idf-54/bootloader/bootloader.bin
  • Use the settings as-is, so with program_esp and not program_esp32
  • Install the linux rules from ~/.espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/share/openocd/contrib in /etc/udev/rules.d
  • Reload the rules: udevadm control --reload-rules && udevadm trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment