Unable to launch debug in VSCode ESP-IDF ext with system-installed openocd
Posted: Mon Oct 12, 2020 2:40 pm
Hi! I am facing the following problem:
I have installed ESP-IDF extension for VSCode with downloading all tools. It successfully installed, but in last step on checking tools was some error with openocd not found. I checked - it exist in .espressif/tools/openocd-esp32/v0.10.0-esp32-20191114 directory (I use Linux). This is first sign about some troubles.. But problem in other and previous fact is consequence of it:
I have already installed openocd in my system for other work purposes. It installed globally in system. So main problem is that when I start debug session ESP-IDF extension tries to launch system openocd version but not openocd-esp32. I tried add OPENOCD_BIN path variable in extension settings "Custom Extra Vars" section but have no result.
Could somebody help me to with it? How I can "tell" ESP-IDF extension to use its own openocd but not system version?
Thanks in advance, Michael.
I have installed ESP-IDF extension for VSCode with downloading all tools. It successfully installed, but in last step on checking tools was some error with openocd not found. I checked - it exist in .espressif/tools/openocd-esp32/v0.10.0-esp32-20191114 directory (I use Linux). This is first sign about some troubles.. But problem in other and previous fact is consequence of it:
I have already installed openocd in my system for other work purposes. It installed globally in system. So main problem is that when I start debug session ESP-IDF extension tries to launch system openocd version but not openocd-esp32. I tried add OPENOCD_BIN path variable in extension settings "Custom Extra Vars" section but have no result.
Could somebody help me to with it? How I can "tell" ESP-IDF extension to use its own openocd but not system version?
Thanks in advance, Michael.