My main question is, how to install the VS Code Espressif IDF extension on local Windows, not on WSL.
What i tried with WSL2: I attached the USB port with usbipd which worked. I was able to flash over the linux (WSL2) terminal.
But with VSCode it does not work.
I have the ESP32-H2-DevKitM-1.
As target I selected "esp32h2" and "builtin USB-JTAG". Not sure if this is correct.
Building the blink example project works.
Flashing the project does not work and brings the output:
Code: Select all
Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:41)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
/home/lorenz/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin/openocd
[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:41)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
[OpenOCD]
debug_level: 2
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
[OpenOCD]
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
[OpenOCD]
❌ Error: esp_usb_jtag: could not find or open device!
[OpenOCD]
❌ /home/lorenz/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "/home/lorenz/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9
[OpenOCD]
[Stopped] : OpenOCD Server
[ Flash ]
Can't perform JTag flash, because OpenOCD server is not running!
Code: Select all
# SPDX-License-Identifier: GPL-2.0-or-later
set EXPECTED_VER "v0.12.0-esp32-20230921"
The settings.json file is:
Code: Select all
{
"C_Cpp.intelliSenseEngine": "default",
"idf.adapterTargetName": "esp32h2",
"idf.openOcdConfigs": [
"board/esp32h2-builtin.cfg"
],
"idf.flashType": "JTAG"
}