Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JTAG debugging failure (VSC-1328) #1164

Closed
1 task done
mukymuk opened this issue Mar 19, 2024 · 5 comments · Fixed by #1131
Closed
1 task done

JTAG debugging failure (VSC-1328) #1164

mukymuk opened this issue Mar 19, 2024 · 5 comments · Fixed by #1131
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) stale Stale PR or Issue

Comments

@mukymuk
Copy link

mukymuk commented Mar 19, 2024

OS

Windows

Operating System version

Windows 10

Visual Studio Code version

1.87.2

ESP-IDF version

5.1.2

Python version

3.11.2

Doctor command output

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19045
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PATH
C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\MATLAB\R2023b\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\System32\OpenSSH;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Nmap
System environment variable PYTHON
undefined
Visual Studio Code version 1.87.2
Visual Studio Code language en
Visual Studio Code shell C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
ESP-IDF Extension version 1.7.0
Workspace folder c:\project\bh\asv\fw\asv\hello_world
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) C:\Espressif\frameworks\esp-idf-v5.1.2
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH}
Custom extra paths (idf.customExtraPaths) C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin;C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin;C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin;C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin;C:\Espressif\tools\ninja\1.10.2;C:\Espressif\tools\idf-exe\1.0.3;C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\tools\esp-rom-elfs\20230320
Custom extra vars (idf.customExtraVars)
OPENOCD_SCRIPTS: C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts
IDF_CCACHE_ENABLE: 1
ESP_ROM_ELF_DIR: C:\Espressif\tools\esp-rom-elfs\20230320/
Virtual env Python Path (idf.pythonBinPath) C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe
Serial port (idf.port) COM1
OpenOCD Configs (idf.openOcdConfigs) board/esp32c2-ftdi.cfg
ESP-IDF Tools Path (idf.toolsPath) C:\Espressif
Git Path (idf.gitPath) C:\Espressif\tools\idf-git\2.39.2\cmd\git.exe
Notification Mode (idf.notificationMode) All
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.espAdfPath) false
Access to ESP-IDF Path (idf.espIdfPath) true
Access to ESP-MDF Path (idf.espMdfPath) false
Access to ESP-Matter Path (idf.espMatterPath) false
Access to ESP-IDF Custom extra paths
Access to C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin: true
Access to C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin: true
Access to C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin: true
Access to C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: true
Access to C:\Espressif\tools\cmake\3.24.0\bin: true
Access to C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin: true
Access to C:\Espressif\tools\ninja\1.10.2: true
Access to C:\Espressif\tools\idf-exe\1.0.3: true
Access to C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: true
Access to C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: true
Access to C:\Espressif\tools\esp-rom-elfs\20230320: true
Access to Virtual env Python Path (idf.pythonBinPath) true
Access to CMake in environment PATH undefined
Access to Ninja in environment PATH undefined
Access to ESP-IDF Tools Path (idf.toolsPath) true
-------------------------------------------------------- Configurations has spaces -------------------------------------------------------------
Spaces in system environment Path true
Spaces in ESP-ADF Path (idf.espAdfPath) false
Spaces in ESP-IDF Path (idf.espIdfPath) false
Spaces in ESP-MDF Path (idf.espMdfPath) false
Spaces in ESP-Matter Path (idf.espMatterPath) false
Spaces in ESP-IDF Custom extra paths
Spaces in C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20221002\xtensa-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20221002\riscv32-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin: false
Spaces in C:\Espressif\tools\xtensa-esp32s2-elf\esp-12.2.0_20230208\xtensa-esp32s2-elf\bin: false
Spaces in C:\Espressif\tools\xtensa-esp32s3-elf\esp-12.2.0_20230208\xtensa-esp32s3-elf\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin: false
Spaces in C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: false
Spaces in C:\Espressif\tools\cmake\3.24.0\bin: false
Spaces in C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin: false
Spaces in C:\Espressif\tools\ninja\1.10.2: false
Spaces in C:\Espressif\tools\idf-exe\1.0.3: false
Spaces in C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: false
Spaces in C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: false
Spaces in C:\Espressif\tools\esp-rom-elfs\20230320: false
Spaces in Virtual env Python Path (idf.pythonBinPath) false
Spaces in ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version 2.39.2.windows.1
ESP-IDF version 5.1.2
Python version 3.11.2
Python's pip version 23.3.2
-------------------------------------------------- Project configuration settings ----------------------------------------------------------
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
bitarray version: 2.8.3
bitstring version: 4.1.3
CacheControl version: 0.13.1
certifi version: 2023.11.17
cffi version: 1.16.0
charset-normalizer version: 3.3.2
click version: 8.0.4
colorama version: 0.4.6
configparser version: 6.0.0
construct version: 2.10.69
contextlib2 version: 21.6.0
cryptography version: 39.0.2
ecdsa version: 0.18.0
esp-coredump version: 1.10.0
esp-debug-backend version: 1.0.3
esp-idf-kconfig version: 1.4.2
esp-idf-monitor version: 1.3.4
esp-idf-panic-decoder version: 1.0.1
esp-idf-size version: 1.0.3
esptool version: 4.7.0
filelock version: 3.13.1
freertos-gdb version: 1.0.2
future version: 0.18.2
gcovr version: 6.0
gdbfrontend version: 0.11.3
idf-component-manager version: 1.4.1
idna version: 3.6
intelhex version: 2.3.0
Jinja2 version: 3.0.3
kconfiglib version: 14.1.0
lxml version: 5.1.0
markdown-it-py version: 3.0.0
MarkupSafe version: 2.1.3
mdurl version: 0.1.2
msgpack version: 1.0.7
packaging version: 23.2
pip version: 23.3.2
pycparser version: 2.21
pycryptodome version: 3.15.0
pyelftools version: 0.29
pygdbmi version: 0.9.0.2
Pygments version: 2.17.2
pyparsing version: 3.0.9
pyserial version: 3.5
pywin32 version: 306
PyYAML version: 6.0.1
reedsolo version: 1.7.0
requests version: 2.31.0
requests-file version: 1.5.1
requests-toolbelt version: 1.0.0
rich version: 13.7.0
schema version: 0.7.5
setuptools version: 69.0.3
six version: 1.16.0
tqdm version: 4.66.1
urllib3 version: 1.26.18
websocket-client version: 1.7.0
windows-curses version: 2.3.2
xlrd version: 2.0.1
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Python requirements are satisfied.
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Python requirements are satisfied.
---------------------------------------------------- Visual Studio Code launch.json --------------------------------------------------------
{
"version": "0.2.0",
"configurations": [
{
"type": "espidf",
"name": "Launch",
"request": "launch"
}
]
}
---------------------------------------------------- Visual Studio Code c_cpp_properties.json ----------------------------------------------
{
"configurations": [
{
"name": "ESP-IDF",
"compilerPath": "${config:idf.toolsPathWin}\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"includePath": [
"${config:idf.espIdfPath}/components/",
"${config:idf.espIdfPathWin}/components/
",
"${config:idf.espAdfPath}/components/",
"${config:idf.espAdfPathWin}/components/
",
"${workspaceFolder}/"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${config:idf.espAdfPath}/components/
",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": false
}
}
],
"version": 4
}


Extension

esp_idf_vsc_ext.log

Description

Flashing hello_world via Jtag works. Hit F5 and debug break at app_main(). F10 and it errors out.

Debug Message

esp32
esp32s2
esp32c3
esp32s3
esp32c2
esp32c6
esp32h2

esp32
esp32s2
esp32c3
esp32s3
esp32c2
esp32c6
esp32h2
linux

esp32
esp32s2
esp32c3
esp32s3
esp32c2
esp32c6
esp32h2

esp32
esp32s2
esp32c3
esp32s3
esp32c2
esp32c6
esp32h2
linux

Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\Users\mukym\project\bh\asv\fw\asv\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c2, new sdkconfig will be created.
Running cmake in directory C:\Users\mukym\project\bh\asv\fw\asv\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32c2 -DCCACHE_ENABLE=0 C:\Users\mukym\project\bh\asv\fw\asv\hello_world"...
-- Found Git: C:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") 

C:\Espressif\tools\cmake\3.24.0\bin\cmake.exe


C:\Espressif\tools\ninja\1.10.2\ninja.exe


-- The C compiler identification is GNU 12.2.0

-- The CXX compiler identification is GNU 12.2.0

-- The ASM compiler identification is GNU

-- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: C:/Espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Building ESP-IDF components for target esp32c2

-- Project sdkconfig file C:/Users/mukym/project/bh/asv/fw/asv/hello_world/sdkconfig

-- Looking for sys/types.h

-- Looking for sys/types.h - found

-- Looking for stdint.h

-- Looking for stdint.h - found

-- Looking for stddef.h

-- Looking for stddef.h - found

-- Check size of time_t

-- Check size of time_t - done

-- Found Python3: C:/Espressif/python_env/idf5.1_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter 

-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS

-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success

-- App "hello_world" version: c98cc07-dirty

-- Adding linker script C:/Users/mukym/project/bh/asv/fw/asv/hello_world/build/esp-idf/esp_system/ld/memory.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system/ld/esp32c2/sections.ld.in

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.api.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.rvfp.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.version.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.mbedtls.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib-nano.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.heap.ld

-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/esp32c2/ld/esp32c2.peripherals.ld

-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant

-- Component paths: C:/Espressif/frameworks/esp-idf-v5.1.2/components/app_trace C:/Espressif/frameworks/esp-idf-v5.1.2/components/app_update C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/bt C:/Espressif/frameworks/esp-idf-v5.1.2/components/cmock C:/Espressif/frameworks/esp-idf-v5.1.2/components/console C:/Espressif/frameworks/esp-idf-v5.1.2/components/cxx C:/Espressif/frameworks/esp-idf-v5.1.2/components/driver C:/Espressif/frameworks/esp-idf-v5.1.2/components/efuse C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp-tls C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_adc C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_app_format C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_coex C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_common C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_eth C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_event C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_gdbstub C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hid C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_http_client C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_http_server C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_https_ota C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_https_server C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_lcd C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_local_ctrl C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_mm C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_netif C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_netif_stack C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_partition C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_phy C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_pm C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_psram C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_ringbuf C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_timer C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_wifi C:/Espressif/frameworks/esp-idf-v5.1.2/components/espcoredump C:/Espressif/frameworks/esp-idf-v5.1.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v5.1.2/components/fatfs C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos C:/Espressif/frameworks/esp-idf-v5.1.2/components/hal C:/Espressif/frameworks/esp-idf-v5.1.2/components/heap C:/Espressif/frameworks/esp-idf-v5.1.2/components/http_parser C:/Espressif/frameworks/esp-idf-v5.1.2/components/idf_test C:/Espressif/frameworks/esp-idf-v5.1.2/components/ieee802154 C:/Espressif/frameworks/esp-idf-v5.1.2/components/json C:/Espressif/frameworks/esp-idf-v5.1.2/components/log C:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip C:/Users/mukym/project/bh/asv/fw/asv/hello_world/main C:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls C:/Espressif/frameworks/esp-idf-v5.1.2/components/mqtt C:/Espressif/frameworks/esp-idf-v5.1.2/components/newlib C:/Espressif/frameworks/esp-idf-v5.1.2/components/nvs_flash C:/Espressif/frameworks/esp-idf-v5.1.2/components/openthread C:/Espressif/frameworks/esp-idf-v5.1.2/components/partition_table C:/Espressif/frameworks/esp-idf-v5.1.2/components/protobuf-c C:/Espressif/frameworks/esp-idf-v5.1.2/components/protocomm C:/Espressif/frameworks/esp-idf-v5.1.2/components/pthread C:/Espressif/frameworks/esp-idf-v5.1.2/components/riscv C:/Espressif/frameworks/esp-idf-v5.1.2/components/sdmmc C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc C:/Espressif/frameworks/esp-idf-v5.1.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v5.1.2/components/spiffs C:/Espressif/frameworks/esp-idf-v5.1.2/components/tcp_transport C:/Espressif/frameworks/esp-idf-v5.1.2/components/ulp C:/Espressif/frameworks/esp-idf-v5.1.2/components/unity C:/Espressif/frameworks/esp-idf-v5.1.2/components/usb C:/Espressif/frameworks/esp-idf-v5.1.2/components/vfs C:/Espressif/frameworks/esp-idf-v5.1.2/components/wear_levelling C:/Espressif/frameworks/esp-idf-v5.1.2/components/wifi_provisioning C:/Espressif/frameworks/esp-idf-v5.1.2/components/wpa_supplicant

-- Configuring done

-- Generating done

-- Build files have been written to: C:/Users/mukym/project/bh/asv/fw/asv/hello_world/build

Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\Users\mukym\project\bh\asv\fw\asv\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c2, new sdkconfig will be created.
Running cmake in directory C:\Users\mukym\project\bh\asv\fw\asv\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32c2 -DCCACHE_ENABLE=0 C:\Users\mukym\project\bh\asv\fw\asv\hello_world"...
-- Found Git: C:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c2
-- Project sdkconfig file C:/Users/mukym/project/bh/asv/fw/asv/hello_world/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: C:/Espressif/python_env/idf5.1_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "hello_world" version: c98cc07-dirty
-- Adding linker script C:/Users/mukym/project/bh/asv/fw/asv/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system/ld/esp32c2/sections.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.rvfp.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.version.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.mbedtls.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.newlib-nano.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom/esp32c2/ld/esp32c2.rom.heap.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc/esp32c2/ld/esp32c2.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: C:/Espressif/frameworks/esp-idf-v5.1.2/components/app_trace C:/Espressif/frameworks/esp-idf-v5.1.2/components/app_update C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader C:/Espressif/frameworks/esp-idf-v5.1.2/components/bootloader_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/bt C:/Espressif/frameworks/esp-idf-v5.1.2/components/cmock C:/Espressif/frameworks/esp-idf-v5.1.2/components/console C:/Espressif/frameworks/esp-idf-v5.1.2/components/cxx C:/Espressif/frameworks/esp-idf-v5.1.2/components/driver C:/Espressif/frameworks/esp-idf-v5.1.2/components/efuse C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp-tls C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_adc C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_app_format C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_coex C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_common C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_eth C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_event C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_gdbstub C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hid C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_http_client C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_http_server C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_https_ota C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_https_server C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_lcd C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_local_ctrl C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_mm C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_netif C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_netif_stack C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_partition C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_phy C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_pm C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_psram C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_ringbuf C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_rom C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_timer C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_wifi C:/Espressif/frameworks/esp-idf-v5.1.2/components/espcoredump C:/Espressif/frameworks/esp-idf-v5.1.2/components/esptool_py C:/Espressif/frameworks/esp-idf-v5.1.2/components/fatfs C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos C:/Espressif/frameworks/esp-idf-v5.1.2/components/hal C:/Espressif/frameworks/esp-idf-v5.1.2/components/heap C:/Espressif/frameworks/esp-idf-v5.1.2/components/http_parser C:/Espressif/frameworks/esp-idf-v5.1.2/components/idf_test C:/Espressif/frameworks/esp-idf-v5.1.2/components/ieee802154 C:/Espressif/frameworks/esp-idf-v5.1.2/components/json C:/Espressif/frameworks/esp-idf-v5.1.2/components/log C:/Espressif/frameworks/esp-idf-v5.1.2/components/lwip C:/Users/mukym/project/bh/asv/fw/asv/hello_world/main C:/Espressif/frameworks/esp-idf-v5.1.2/components/mbedtls C:/Espressif/frameworks/esp-idf-v5.1.2/components/mqtt C:/Espressif/frameworks/esp-idf-v5.1.2/components/newlib C:/Espressif/frameworks/esp-idf-v5.1.2/components/nvs_flash C:/Espressif/frameworks/esp-idf-v5.1.2/components/openthread C:/Espressif/frameworks/esp-idf-v5.1.2/components/partition_table C:/Espressif/frameworks/esp-idf-v5.1.2/components/protobuf-c C:/Espressif/frameworks/esp-idf-v5.1.2/components/protocomm C:/Espressif/frameworks/esp-idf-v5.1.2/components/pthread C:/Espressif/frameworks/esp-idf-v5.1.2/components/riscv C:/Espressif/frameworks/esp-idf-v5.1.2/components/sdmmc C:/Espressif/frameworks/esp-idf-v5.1.2/components/soc C:/Espressif/frameworks/esp-idf-v5.1.2/components/spi_flash C:/Espressif/frameworks/esp-idf-v5.1.2/components/spiffs C:/Espressif/frameworks/esp-idf-v5.1.2/components/tcp_transport C:/Espressif/frameworks/esp-idf-v5.1.2/components/ulp C:/Espressif/frameworks/esp-idf-v5.1.2/components/unity C:/Espressif/frameworks/esp-idf-v5.1.2/components/usb C:/Espressif/frameworks/esp-idf-v5.1.2/components/vfs C:/Espressif/frameworks/esp-idf-v5.1.2/components/wear_levelling C:/Espressif/frameworks/esp-idf-v5.1.2/components/wifi_provisioning C:/Espressif/frameworks/esp-idf-v5.1.2/components/wpa_supplicant
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mukym/project/bh/asv/fw/asv/hello_world/build
C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin\riscv32-esp-elf-gcc.exe


Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html

C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin\openocd.exe


[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html

[OpenOCD]
debug_level: 2

C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin\openocd.exe

[OpenOCD]
Info : auto-selecting first availabl
[OpenOCD]
e session transport "jtag". To override use 'transport select <transport>'.

[OpenOCD]
Info : Listening on port 6666 for tcl connections

[OpenOCD]
Info : Listening on port 4444 for telnet connections

[OpenOCD]
Info : ftdi: if you experience proble
[OpenOCD]
ms at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz

[OpenOCD]
Info : JTAG tap: esp32c2.cpu tap/device found: 0x0000cc25 (mfg: 0x612 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] datacount=2 progbu
[OpenOCD]
fsize=16

[OpenOCD]
Info : [esp32c2] Examined RISC-V core; found 1 harts
[OpenOCD]

Info : [esp32c2]  XLEN=32, misa=0x40101104
Info : starting gdb server for esp32c2 on 3333

[OpenOCD]
Info : Listening on port 3333 for gdb connections

[OpenOCD]
Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection

[OpenOCD]
Info : accepting 'tcl' con
[OpenOCD]
nection on tcp/6666

[OpenOCD]
Flashing "c:/Users/mukym/project/bh/asv/fw/asv/hello_world/build/bootloader/bootloader.bin" at 0x0
** program_esp input args <0x0 verify> **

[OpenOCD]
Info : JTAG tap: esp32c2.cpu tap/device found: 0x0000cc25 (mfg: 0x612
[OpenOCD]
 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] Reset cause (24) - (JTAG
[OpenOCD]
 CPU reset)

[OpenOCD]
Info : [esp32c2] Found 2 triggers.

[OpenOCD]
Warn : Empty flash mapping!
Warn : Failed 
[OpenOCD]
to get flash mappings (0)!

[OpenOCD]
Info : Auto-detected flash bank 'esp32c2.f
[OpenOCD]
lash' size 4096 KB
Info : Using flash bank 'esp32c2.flash' size 4096 KB
** Programming Started **

[OpenOCD]
Info : PROF: Erased 20480 bytes in 294.999
[OpenOCD]
 ms

[OpenOCD]
Info : PROF: Data transferred i
[OpenOCD]
n 95 ms @ 210.526 KB/s

[OpenOCD]
Info : PROF: Wrote 20480 bytes in 418.218
[OpenOCD]
 ms (data transfer time included)
** Programming Finished in 1150 ms **
** Verify Started **

[OpenOCD]
Info : PROF: Flash verified in 111.999 ms 

[OpenOCD]
** Verify OK **
** Flashing done for bootloader/bootloader.bin in 1263 ms **
Flashing "c:/Users/mukym/project/bh/asv/fw/asv/hello_world/build/hello_world.bin" at 0x10000

[OpenOCD]
** program_esp input args <0x10000 verify> **
Info : JTAG tap: esp32c2.cpu tap/device found: 0x0000cc25 (
[OpenOCD]
mfg: 0x612 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] Reset cause (24) - (
[OpenOCD]
JTAG CPU reset)

[OpenOCD]
** Programming Started **

[OpenOCD]
Info : PROF: Erased 114688 bytes in 1186.02 ms

[OpenOCD]
Info : PROF: Data transferred in 475.927
[OpenOCD]
 ms @ 235.33 KB/s

[OpenOCD]
Info : PROF: Wrote 114688 bytes in 886.309 ms
[OpenOCD]
 (data transfer time included)
** Programming Finished in 2215 ms **
** Verify Started **

[OpenOCD]
Info : PROF: Flash verified in 203.999 ms
[OpenOCD]
 
** Verify OK **
** Flashing done for hello_world.bin in 2422 ms **
Flashing "c:/Users/mukym/project/bh/asv/fw/asv/hello_world/build/partition_table/par
[OpenOCD]
tition-table.bin" at 0x8000
** program_esp input args <0x8000 verify> **

[OpenOCD]
Info : JTAG tap: esp32c2.cpu tap/device found: 0x0000cc25 (mfg: 0x612 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] Reset cause (24) - (
[OpenOCD]
JTAG CPU reset)

[OpenOCD]
** Programming Started **

[OpenOCD]
Info : PROF: Erased 4096 bytes in 131.003 
[OpenOCD]
ms

[OpenOCD]
Info : PROF: Data transferred in 32 ms @
[OpenOCD]
 125 KB/s

[OpenOCD]
Info : PROF: Wrote 4096 bytes in 332.305 m
[OpenOCD]
s (data transfer time included)
** Programming Finished in 617 ms **
** Verify Started **

[OpenOCD]
Info : PROF: Flash verified in 95.998 ms 

[OpenOCD]
** Verify OK **
** Flashing done for partition_table/partition-table.bin in 714 ms **
** Total programming time 4400 ms **
** Resetting Target **

[OpenOCD]
Info : JTAG tap: esp32c2.cpu tap/device found: 0x0000cc25 (mfg: 0x612 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] Reset cause (24) - (JT
[OpenOCD]
AG CPU reset)

[OpenOCD]
0

[Flash]
⚡️ Flashed Successfully (JTag)
C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin\openocd.exe


[Debug Adapter]
DEBUG_ADAPTER_STARTED
2024-03-18 21:41:47,102 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED

[Debug Adapter]
DEBUG_ADAPTER_READY2CONNECT
2024-03-18 21:41:47,106 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT

[OpenOCD]
Info : accepting 'gdb' connection on
[OpenOCD]
 tcp/3333

[OpenOCD]
Warn : No symbols for FreeRTOS!

[OpenOCD]
Info : Flash mapping 0: 0x10020 -> 0x3c0100
[OpenOCD]
20, 27 KB
Info : Flash mapping 1: 0x18020 -> 0x42000020, 43 KB
Info : Using flash bank 'esp32c2.irom' size 44 KB

[OpenOCD]
Info : Flash mapping 0: 0x10020 -> 0x3c010020, 
[OpenOCD]
27 KB
Info : Flash mapping 1: 0x18020 -> 0x42000020, 43 KB
Info : Using flash bank 'esp32c2.drom' size 28 KB

[OpenOCD]
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"

[OpenOCD]
Info : Detected FreeRTOS version:
[OpenOCD]
 (10.4.3)

[OpenOCD]
Info : JTAG tap: esp32c2.cpu tap/device foun
[OpenOCD]
d: 0x0000cc25 (mfg: 0x612 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] Reset cause (24) - (JTAG CPU
[OpenOCD]
 reset)

[OpenOCD]
Info : Flash mapping 0: 0x10020 -> 0x3c01002
[OpenOCD]
0, 27 KB
Info : Flash mapping 1: 0x18020 -> 0x42000020, 43 KB
Info : Using flash bank 'esp32c2.irom' size 44 KB

[OpenOCD]
Info : Flash mapping 0: 0x10020 -> 0x3c010020
[OpenOCD]
, 27 KB
Info : Flash mapping 1: 0x18020 -> 0x42000020, 43 KB
Info : Using flash bank 'esp32c2.drom' size 28 KB

[OpenOCD]
Info : dropped 'gdb' connection

[OpenOCD]
Info : accepting 'gdb' conn
[OpenOCD]
ection on tcp/3333

[OpenOCD]
Info : Detected FreeRTOS version: (10.4.3)

[OpenOCD]
Warn : [esp32c2] Could not set a trigger tha
[OpenOCD]
t will match a whole address range. As a fallback, this trigger (and maybe others) will only match against the first address of the range.

[Debug Adapter]
Exception in thread Thread-7 (_readerthread):
Traceback (most recent call last):
  File "threading.py", line 1038, in _bootstrap_inner

[Debug Adapter]
Exception in thread Thread-8 (_readerthread):
Traceback (most recent call last):
  File "threading.py", line 1038, in _bootstrap_inner
  File "threading.py", line 975, in run
  File "threading.py", line 975, in run
  File "subprocess.py", line 1552, in _readerthread
  File "subprocess.py", line 1552, in _readerthread
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument

[Debug Adapter]
0x3fcad8f4
0x3fcad8f0
0x3fcad8f4
0x3fcad8f0
DEBUG_ADAPTER_STOPPED
2024-03-18 21:42:51,389 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED

[OpenOCD]
Info : dropped 'gdb' connection

[Stopped] : ESP-IDF Debug Adapter
C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin\openocd.exe


[Debug Adapter]
DEBUG_ADAPTER_STARTED
2024-03-18 21:42:55,916 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED

[Debug Adapter]
DEBUG_ADAPTER_READY2CONNECT
2024-03-18 21:42:55,919 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT

[OpenOCD]
Info : accepting 'gdb' connection on tcp/333
[OpenOCD]
3

[OpenOCD]
Info : JTAG tap: esp32c2.cpu tap/device f
[OpenOCD]
ound: 0x0000cc25 (mfg: 0x612 (Espressif Systems), part: 0x000c, ver: 0x0)

[OpenOCD]
Info : [esp32c2] Reset cause (
[OpenOCD]
24) - (JTAG CPU reset)

[OpenOCD]
Info : Flash mapping 0: 0x10020 -> 0x3c01002
[OpenOCD]
0, 27 KB
Info : Flash mapping 1: 0x18020 -> 0x42000020, 43 KB
Info : Using flash bank 'esp32c2.irom' size 44 KB

[OpenOCD]
Info : Flash mapping 0: 0x10020 -> 0x3c
[OpenOCD]
010020, 27 KB
Info : Flash mapping 1: 0x18020 -> 0x42000020, 43 KB
Info : Using flash bank 'esp32c2.drom' size 28 KB

[OpenOCD]
Info : dropped 'gdb' con
[OpenOCD]
nection

[OpenOCD]
Info : accepting 'gdb'
[OpenOCD]
 connection on tcp/3333

[OpenOCD]
Info : Detected FreeRTOS version: (10.4.3)

[OpenOCD]
Info : dropped 'gdb' connection

[Debug Adapter]
Exception in thread Thread-1 (_readerthread):
Traceback (most recent call last):

[Debug Adapter]
  File "threading.py", line 1038, in _bootstrap_inner
Exception in thread Thread-2 (_readerthread):
Traceback (most recent call last):
  File "threading.py", line 1038, in _bootstrap_inner
  File "threading.py", line 975, in run

[Debug Adapter]
  File "threading.py", line 975, in run
  File "subprocess.py", line 1552, in _readerthread
OSError: [Errno 22] Invalid argument
  File "subprocess.py", line 1552, in _readerthread
OSError: [Errno 22] Invalid argument

[Debug Adapter]
0x3fcad8f4
0x3fcad8f0
0x3fcad8f4
0x3fcad8f0
DEBUG_ADAPTER_STOPPED
2024-03-18 21:43:46,749 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED

[Stopped] : ESP-IDF Debug Adapter

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@mukymuk mukymuk added the bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) label Mar 19, 2024
@github-actions github-actions bot changed the title JTAG debugging failure JTAG debugging failure (VSC-1328) Mar 19, 2024
@brianignacio5
Copy link
Collaborator

We are working on migrating to a new debug adapter that is more stable that our current python one in this PR:

#1131

You are welcome to test it with the PR vsix installer if you like.

@mukymuk
Copy link
Author

mukymuk commented Mar 22, 2024

I tried the vsix and got an error during install the first attempt. Second attempt seemed to install, but nothing new showed up in the extensions list so I don't know if it's installed or not. Various debugging errors remain. JTAG Debugging seems so utterly broken in vscode and in eclipse that it's amazing to me that you can even get it to pass basic functional tests at all.

@brianignacio5
Copy link
Collaborator

Did you tried the new launch.json configuration ? Maybe you are still using the old debug adapter if you don't update the launch.json content. Something like this. (was also updated in docs in the PR)

{
   "configurations": [
     {
       "type": "gdbtarget",
       "request": "attach",
       "name": "Eclipse CDT Remote",
       "program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf",
       "initCommands": [
         "set remote hardware-watchpoint-limit 2",
         "mon reset halt",
         "maintenance flush register-cache",
         "thb app_main",
       ],
       "gdb": "${command:espIdf.getXtensaGdb}",
       "target": {
         "port": "3333"
       },
     }
   ]
 }

@mukymuk
Copy link
Author

mukymuk commented Mar 22, 2024

That was the problem. Thanks! There's still some errors here and there, but I have basic debug functionality now.

Copy link

github-actions bot commented Apr 7, 2024

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) stale Stale PR or Issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants