daniel-sullivan / clion-embedded-esp32

OpenOCD + ESP32 support for CLion
Other
19 stars 7 forks source link

OpenOCD Home is invalid #4

Closed exislow closed 4 years ago

exislow commented 4 years ago

What I am doing wrong while trying to configure the OpenOCD home? Settings Tab

$ls -alh /Users/xxx/Documents/Workspace/esp32/espressif/tools
total 0
drwxr-xr-x  7 xxx  staff   224B Jan 10 21:52 ./
drwxr-xr-x  7 xxx  staff   224B Jan 10 21:52 ../
drwxr-xr-x  3 xxx  staff    96B Jan 10 21:52 esp32s2ulp-elf/
drwxr-xr-x  3 xxx  staff    96B Jan 10 21:52 esp32ulp-elf/
drwxr-xr-x  3 xxx  staff    96B Jan 10 21:52 openocd-esp32/
drwxr-xr-x  3 xxx  staff    96B Jan 10 21:51 xtensa-esp32-elf/
drwxr-xr-x  3 xxx  staff    96B Jan 10 21:52 xtensa-esp32s2-elf/

$ export
IDF_PATH=/Users/xxx/Documents/Workspace/esp32/espressif/esp-idf
IDF_PYTHON_ENV_PATH=/Users/xxx/Documents/Workspace/esp32/espressif/python_env/idf4.1_py2.7_env
IDF_TOOLS_EXPORT_CMD=/Users/xxx/Documents/Workspace/esp32/espressif/esp-idf/export.sh
IDF_TOOLS_INSTALL_CMD=/Users/xxx/Documents/Workspace/esp32/espressif/esp-idf/install.sh
IDF_TOOLS_PATH=/Users/xxx/Documents/Workspace/esp32/espressif/
OPENOCD_SCRIPTS=/Users/xxx/Documents/Workspace/esp32/espressif/tools/openocd-esp32/v0.10.0-esp32-20191114/openocd-esp32/share/openocd/scripts

macOS Catalina with current IDF master release (v4.x). CLion 2019.3.

exislow commented 4 years ago

Solved it. Path needs to be th real espressif openocd home, where you see there folders bin and share.