Closed ihouses closed 3 years ago
Yes the thing is, some changes were implemented on openOCD to allow Visual Studio Code to perform JTAG flashing from this version.
If you want to replace openOCD, just get one of the latest openOCD releases and replace c:\\esp\\tools\\.espressif\\tools\\openocd-esp32\\v0.10.0-esp32-20200709\\openocd-esp32\\bin
in your idf.customExtraPaths
for the bin directory of your chosen release version, for example c:\\esp\\tools\\.espressif\\tools\\openocd-esp32\\v0.10.0-esp32-20201202\\openocd-esp32\\bin
if you extract this version on your .espressif/tools
directory.
Also update idf.customExtraVars
OPENOCD_SCRIPTS to new OpenOCD Scripts folder path.
I'm closing this issue since answer to question is provided. Please comment here if this solution doesn't fix your issue.
Newb question regarding "replace XXX with YYY in your idf.customExtraPaths" - what is the file name that has to be edited ? Same question for "Also update idf.customExtraVars OPENOCD_SCRIPTS to new OpenOCD Scripts folder path.". And where is it/are they located ? Thanks
@jmporter34
Command Palette (F1 or View Menu -> Command Palette) and type Preferences: Open Settings (UI) or Command Palette (F1 or View Menu -> Command Palette) and type Preferences: Open Settings (JSON) or in your project .vscode/settings.json
.
This is described in SETUP JSON Manual Configuration documentation.
Hi, I had the same issue. I updated OpenOCD to v0.10.0-esp32-20210902 and I still have the issue: Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling" Info : clock speed 20000 kHz Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : esp32: Target halted, PC=0x4008FBA3, debug_reason=00000001 Info : Listening on port 3333 for gdb connections Info : accepting 'tcl' connection on tcp/6666 Info : dropped 'tcl' connection Info : accepting 'tcl' connection on tcp/6666 invalid command name "program_esp_bins" Info : accepting 'tcl' connection on tcp/6666 Info : dropped 'tcl' connection Info : accepting 'tcl' connection on tcp/6666 invalid command name "program_esp_bins"
I have downloaded the tool chain and everything with the visual studio extension. I can compile and flash with no problem with the UART but if I try to flash with the JTAG I get this meesage:
Minimum OpenOCD version v0.10.0-esp32-20201125 is required while you have v0.10.0-esp32-20200709 version installed
The version that the tool installed is the v0.10.0-esp32-20200709 stored in C:\esp\tools.espressif\tools\openocd-esp32
How can I change or update the OpenOCD version??
OS Name & Version: Windows 10 VSCode Version: 1.52.1 ESP-IDF Version: 0.6.0 Python Version: 3.9.0
Content of the JSON config file: