TIP: Hack for changing openocd version
Posted: Tue Oct 05, 2021 8:26 pm
I am trying to get JTAG debugging working for gdb from Ubuntu command line per instructions on espressif website. I have IDF 4.0 release and openocd 20190313. I wish to update openocd to a newer version, without changing any other parts of my toolchain. I am not sure which scripts need to be manually updated to change the paths. I have unzipped openocd 20210902 into a folder alongside the original 20190313 version.
My host system is Ubuntu 20.04.3 and my processor is ESP32-WROVER-E (3.3V flash).
This is currently part of my PATH env var:
And this is the current OPENOCD_SCRIPTS var
Those were set as part of the normal tools installation so I don't where they actually come from.
I want PATH and OPENOCD_SCRIPTS to both change to the newer version/location:
Which startup scripts need to be modified to change these? I have looked around but am not sure which ones actually set these vars.
My host system is Ubuntu 20.04.3 and my processor is ESP32-WROVER-E (3.3V flash).
This is currently part of my PATH env var:
Code: Select all
$IDF_TOOLS_PATH/tools/openocd-esp32/v0.10.0-esp32-20190313/openocd-esp32/bin
Code: Select all
$IDF_TOOLS_PATH/tools/openocd-esp32/v0.10.0-esp32-20190313/openocd-esp32/share/openocd/scripts
I want PATH and OPENOCD_SCRIPTS to both change to the newer version/location:
Code: Select all
$IDF_TOOLS_PATH/tools/openocd-esp32/v0.10.0-esp32-20210902/openocd-esp32/...