espressif / vscode-esp-idf-extension

Visual Studio Code extension for ESP-IDF projects
https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/
Apache License 2.0
1.08k stars 306 forks source link

Heap Tracing with Example is not working (VSC-951) #784

Closed mbrunnen closed 2 years ago

mbrunnen commented 2 years ago

OS

Linux

Operating System version

Debian GNU/Linux 11 (bullseye)

Visual Studio Code version

1.70.2

ESP-IDF version

4.4.2

Python version

3.9.2

Doctor command output

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS linux x64 5.10.0-16-amd64 
System environment variable IDF_PYTHON_ENV_PATH 
 undefined 
System environment variable PATH 
 /usr/local/mcuxpressoide/ide:/home/brmo/.local/opt/silabs/slc_cli/bin/slc-cli:/home/brmo/.local/opt/STM32CubeProgrammer/bin:/home/brmo/.local/opt/STM32CubeMX/STM32CubeMX:/home/brmo/.config/emacs/bin:/opt/jabref/bin:/home/brmo/.local/opt/perl5/lib:/home/brmo/.local/opt/perl5/bin:/home/brmo/.local/opt/go/bin:/home/brmo/.local/opt/cargo/bin:/home/brmo/.local/opt/npm/bin:/home/brmo/.local/opt/gem/bin:/home/brmo/.local/bin:/home/brmo/.local/opt/cabal/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games 
System environment variable PYTHON 
 undefined 
Visual Studio Code version 1.70.2 
Visual Studio Code language en 
Visual Studio Code shell /usr/bin/zsh 
ESP-IDF Extension version 1.5.0 
Workspace folder /home/brmo/projects/boxine/src/private/sysview_tracing_heap_log 
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) /home/brmo/.local/opt/espressif/esp-idf
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH}
Custom extra paths (idf.customExtraPaths) /home/brmo/.local/opt/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin:/home/brmo/.local/opt/espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin:/home/brmo/.local/opt/espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin:/home/brmo/.local/opt/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin:/home/brmo/.local/opt/espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/home/brmo/.local/opt/espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:/home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin:/home/brmo/.local/opt/espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin:/home/brmo/.local/opt/espressif/tools/ninja/1.10.2
Custom extra vars (idf.customExtraVars) {"OPENOCD_SCRIPTS":"/home/brmo/.local/opt/espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts"}
Virtual env Python Path (idf.pythonBinPath) /home/brmo/.local/opt/espressif/python_env/idf4.4_py3.9_env/bin/python
Serial port (idf.port) /dev/ttyUSB0
OpenOCD Configs (idf.openOcdConfigs) .vscode/esp32s3-jlink.cfg
ESP-IDF Tools Path (idf.toolsPath) /home/brmo/.local/opt/espressif
Git Path (idf.gitPath) /usr/bin/git
-------------------------------------------------------- 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 /home/brmo/.local/opt/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin: true
Access to /home/brmo/.local/opt/espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin: true
Access to /home/brmo/.local/opt/espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin: true
Access to /home/brmo/.local/opt/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin: true
Access to /home/brmo/.local/opt/espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin: true
Access to /home/brmo/.local/opt/espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin: true
Access to /home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin: false
Access to /home/brmo/.local/opt/espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin: true
Access to /home/brmo/.local/opt/espressif/tools/ninja/1.10.2: false
Access to Virtual env Python Path (idf.pythonBinPath) true
Access to CMake in environment PATH true
Access to Ninja in environment PATH true
Access to ESP-IDF Tools Path (idf.toolsPath) true
-------------------------------------------------------- Configurations has spaces -------------------------------------------------------------
Spaces in system environment Path false
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 /home/brmo/.local/opt/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin: false
Spaces in /home/brmo/.local/opt/espressif/tools/ninja/1.10.2: false
Spaces in Virtual env Python Path (idf.pythonBinPath) false
Spaces in ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version 2.30.2
ESP-IDF version 4.4.2
Python version 3.9.2
Python's pip version 22.1
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
bitstring version: 3.1.9
Brotli version: 1.0.9
certifi version: 2021.10.8
cffi version: 1.15.0
charset-normalizer version: 2.0.12
click version: 8.0.4
colorama version: 0.4.5
construct version: 2.10.54
contextlib2 version: 21.6.0
cryptography version: 37.0.2
ecdsa version: 0.17.0
Flask version: 0.12.5
Flask-Compress version: 1.12
Flask-SocketIO version: 2.9.6
future version: 0.18.2
gcovr version: 5.2
gdbgui version: 0.13.2.0
gevent version: 1.5.0
greenlet version: 1.1.2
idf-component-manager version: 1.1.4
idna version: 3.3
itsdangerous version: 2.0.1
Jinja2 version: 3.0.3
kconfiglib version: 13.7.1
lxml version: 4.9.1
MarkupSafe version: 2.1.1
msgpack version: 1.0.3
neovim version: 0.3.1
pip version: 22.1
protobuf version: 3.20.1
psutil version: 5.9.1
pycparser version: 2.21
pyelftools version: 0.28
pygdbmi version: 0.9.0.2
Pygments version: 2.12.0
pynvim version: 0.4.3
pyparsing version: 2.3.1
pyserial version: 3.5
python-engineio version: 3.14.2
python-socketio version: 4.6.1
python3-protobuf version: 2.5.0
PyYAML version: 6.0
reedsolo version: 1.5.4
requests version: 2.28.1
requests-toolbelt version: 0.9.1
schema version: 0.7.5
semantic-version version: 2.9.0
setuptools version: 65.1.0
six version: 1.16.0
tqdm version: 4.64.0
urllib3 version: 1.26.9
websocket-client version: 1.3.3
Werkzeug version: 0.16.1
wheel version: 0.37.1
xmlrunner version: 1.7.7
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Python requirements from /home/brmo/.local/opt/espressif/esp-idf/requirements.txt are satisfied.
---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
Check Extension Python packages Python requirements from /home/brmo/.vscode/extensions/espressif.esp-idf-extension-1.5.0/requirements.txt are satisfied.
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Python requirements from /home/brmo/.vscode/extensions/espressif.esp-idf-extension-1.5.0/esp_debug_adapter/requirements.txt 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": "/home/brmo/.local/opt/espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "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

{"message":"Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:30:44.580Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n❌ Error: JTAG scan chain interrogation failed: all ones\nError: Check JTAG interface, timings, target power, etc.\nError: Trying to use configured scan chain anyway...\nError: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n","stack":"Error: OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:40:00.551Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:45:26.334Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: couldn't bind telnet to socket on port 4444: Address already in use\n❌ Info : Listening on port 6666 for tcl connections\nError: couldn't bind telnet to socket on port 4444: Address already in use\n","stack":"Error: OpenOCD server failed to start because of Error: couldn't bind telnet to socket on port 4444: Address already in use\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:46:04.725Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n    at ChildProcess.<anonymous> (/dist/extension.js:1:101683)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:46:04.729Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:46:39.160Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: no device found\n❌ Error: no device found\nError: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'\n","stack":"Error: OpenOCD server failed to start because of Error: no device found\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:46:50.045Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: no device found\n❌ Error: no device found\nError: unable to open ftdi device with vid 0403, pid 6014, description '*', serial '*' at bus location '*'\n\nopenocd: ../src/jtag/core.c:343: jtag_checks: Assertion `jtag_trst == 0' failed.\n","stack":"Error: OpenOCD server failed to start because of Error: no device found\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:46:50.077Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Can't find config/esp32s3-jlink.cfg\n❌ Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\ndebug_level: 2\n\nembedded:startup.tcl:26: Error: Can't find config/esp32s3-jlink.cfg\nin procedure 'script' \nat file \"embedded:startup.tcl\", line 26\n","stack":"Error: OpenOCD server failed to start because of Error: Can't find config/esp32s3-jlink.cfg\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:52:34.690Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n    at ChildProcess.<anonymous> (/dist/extension.js:1:101683)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:52:34.696Z"}
{"user":true,"level":"warn","message":"Can't perform JTag flash, because OpenOCD server is not running!!","timestamp":"2022-08-19T12:52:35.683Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Can't find esp32s3-jlink.cfg\n❌ embedded:startup.tcl:26: Error: Can't find esp32s3-jlink.cfg\nin procedure 'script' \nat file \"embedded:startup.tcl\", line 26\n","stack":"Error: OpenOCD server failed to start because of Error: Can't find esp32s3-jlink.cfg\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:53:37.865Z"}
{"user":true,"message":"OpenOCD Exit with non-zero error code 1","stack":"Error: Spawn exit with non-zero1\n    at ChildProcess.<anonymous> (/dist/extension.js:1:101683)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:53:37.869Z"}
{"user":true,"level":"warn","message":"Can't perform JTag flash, because OpenOCD server is not running!!","timestamp":"2022-08-19T12:53:38.859Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n❌ Error: JTAG scan chain interrogation failed: all ones\nError: Check JTAG interface, timings, target power, etc.\nError: Trying to use configured scan chain anyway...\n","stack":"Error: OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:09.431Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n❌ Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\nWarn : Bypassing JTAG setup events due to errors\nWarn : target esp32s3.cpu0 examination failed\n","stack":"Error: OpenOCD server failed to start because of Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:09.433Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n❌ Error: JTAG scan chain interrogation failed: all ones\nError: Check JTAG interface, timings, target power, etc.\nError: Trying to use configured scan chain anyway...\n","stack":"Error: OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:10.421Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n❌ Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\nWarn : Bypassing JTAG setup events due to errors\n","stack":"Error: OpenOCD server failed to start because of Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:10.424Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Couldn't halt target before SoC reset\n❌ Error: Couldn't halt target before SoC reset\n","stack":"Error: OpenOCD server failed to start because of Error: Couldn't halt target before SoC reset\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:10.448Z"}
{"user":true,"message":"Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']","stack":"Error: JTAG_FLASH_FAILED\n    at /dist/extension.js:1:1196766\n    at Generator.throw (<anonymous>)\n    at a (/dist/extension.js:1:1195749)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T12:54:10.451Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n❌ Error: JTAG scan chain interrogation failed: all ones\nError: Check JTAG interface, timings, target power, etc.\nError: Trying to use configured scan chain anyway...\n","stack":"Error: OpenOCD server failed to start because of Error: JTAG scan chain interrogation failed: all ones\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:32.395Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n❌ Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\nWarn : Bypassing JTAG setup events due to errors\n","stack":"Error: OpenOCD server failed to start because of Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:insdkconfig.defaults.esp32s3ternal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:32.397Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Couldn't halt target before SoC reset\n❌ Error: Couldn't halt target before SoC reset\n","stack":"Error: OpenOCD server failed to start because of Error: Couldn't halt target before SoC reset\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:32.423Z"}
{"user":true,"message":"Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']","stack":"Error: JTAG_FLASH_FAILED\n    at /dist/extension.js:1:1196766\n    at Generator.throw (<anonymous>)\n    at a (/dist/extension.js:1:1195749)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T12:54:32.424Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Target not examined yet\n❌ Error: Target not examined yet\n","stack":"Error: OpenOCD server failed to start because of Error: Target not examined yet\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:39.158Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: \n❌ Error executing event gdb-attach on target esp32s3.cpu0:\nembedded:startup.tcl:530: Error: \nin procedure 'program_esp' called at file \"/home/brmo/.local/opt/espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts/target/esp_common.cfg\", line 220\nin procedure 'program_error' called at file \"/home/brmo/.local/opt/espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts/target/esp_common.cfg\", line 93\nat file \"embedded:startup.tcl\", line 530\nWarn : No symbols for FreeRTOS!\nError: Target not halted\nError: auto_probe failed\nError: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.\nError: attempted 'gdb' connection rejected\n","stack":"Error: OpenOCD server failed to start because of Error: \n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:54:39.160Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T12:56:32.905Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Not enough args! Need 2 trace data destinations!\n❌ Error: Not enough args! Need 2 trace data destinations!\nError: Failed to init cmd ctx (-4)!\n\n","stack":"Error: OpenOCD server failed to start because of Error: Not enough args! Need 2 trace data destinations!\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T12:59:32.163Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:03:26.848Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:03:39.770Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:03:43.919Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:04:02.203Z"}
{"message":"WARNING: There was an error checking the latest version of pip.\n","stack":"Error: WARNING: There was an error checking the latest version of pip.\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)","level":"error","timestamp":"2022-08-19T13:05:11.533Z"}
{"message":"WARNING: There was an error checking the latest version of pip.\n","stack":"Error: WARNING: There was an error checking the latest version of pip.\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)","level":"error","timestamp":"2022-08-19T13:06:44.496Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Not enough args! Need 2 trace data destinations!\n❌ Error: Not enough args! Need 2 trace data destinations!\nError: Failed to init cmd ctx (-4)!\n\n","stack":"Error: OpenOCD server failed to start because of Error: Not enough args! Need 2 trace data destinations!\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T13:07:14.461Z"}
{"user":true,"message":"OpenOCD server failed to start because of Error: Not enough args! Need 2 trace data destinations!\n❌ Error: Not enough args! Need 2 trace data destinations!\nError: Failed to init cmd ctx (-4)!\n\n","stack":"Error: OpenOCD server failed to start because of Error: Not enough args! Need 2 trace data destinations!\n    at Socket.<anonymous> (/dist/extension.js:1:101204)\n    at Socket.emit (node:events:390:28)\n    at addChunk (node:internal/streams/readable:315:12)\n    at readableAddChunk (node:internal/streams/readable:289:9)\n    at Socket.Readable.push (node:internal/streams/readable:228:10)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-08-19T13:15:23.413Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:21:10.932Z"}
{"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:ADF_PATH}'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1136503\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:21:21.451Z"}
{"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:MDF_PATH}'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1136699\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:21:21.452Z"}
{"message":"Cannot access filePath: ${env:ESP_MATTER_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:ESP_MATTER_PATH}'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1136800\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:21:21.457Z"}
{"message":"Cannot access filePath: /home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin","stack":"Error: ENOENT: no such file or directory, access '/home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1137232\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:21:21.459Z"}
{"message":"Cannot access filePath: /home/brmo/.local/opt/espressif/tools/ninja/1.10.2","stack":"Error: ENOENT: no such file or directory, access '/home/brmo/.local/opt/espressif/tools/ninja/1.10.2'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1137232\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:21:21.462Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:21:23.117Z"}
{"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:ADF_PATH}'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1136503\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:22:17.074Z"}
{"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:MDF_PATH}'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1136699\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:22:17.077Z"}
{"message":"Cannot access filePath: ${env:ESP_MATTER_PATH}","stack":"Error: ENOENT: no such file or directory, access '${env:ESP_MATTER_PATH}'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1136800\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:22:17.078Z"}
{"message":"Cannot access filePath: /home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin","stack":"Error: ENOENT: no such file or directory, access '/home/brmo/.local/opt/espressif/tools/cmake/3.23.1/bin'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1137232\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:22:17.080Z"}
{"message":"Cannot access filePath: /home/brmo/.local/opt/espressif/tools/ninja/1.10.2","stack":"Error: ENOENT: no such file or directory, access '/home/brmo/.local/opt/espressif/tools/ninja/1.10.2'\n    at Object.accessSync (node:fs:250:3)\n    at Object.e.accessSync (node:electron/js2c/asar_bundle:5:8277)\n    at k (/dist/extension.js:1:6201)\n    at /dist/extension.js:1:1137232\n    at Generator.next (<anonymous>)\n    at /dist/extension.js:1:1131077\n    at new Promise (<anonymous>)\n    at l (/dist/extension.js:1:1130822)\n    at /dist/extension.js:1:1136326\n    at /dist/extension.js:1:1137510\n    at Generator.next (<anonymous>)\n    at s (/dist/extension.js:1:1134750)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","level":"error","timestamp":"2022-08-19T13:22:17.082Z"}
{"message":"Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n","stack":"Error: Open On-Chip Debugger  v0.11.0-esp32-20220411 (2022-04-11-08:47)\nLicensed under GNU GPL v2\nFor bug reports, read\n\thttp://openocd.org/doc/doxygen/bugs.html\n\n    at /dist/extension.js:1:9233\n    at ChildProcess.exithandler (node:child_process:397:7)\n    at ChildProcess.emit (node:events:390:28)\n    at maybeClose (node:internal/child_process:1064:16)\n    at Socket.<anonymous> (node:internal/child_process:450:11)\n    at Socket.emit (node:events:390:28)\n    at Pipe.<anonymous> (node:net:687:12)","level":"error","timestamp":"2022-08-19T13:22:18.690Z"}

Description

I could not run the example system/sysview_tracing_heap_log as described in https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/heap_tracing.md.

The only change I have made, is to use the ESP32S3, hence I added a file sdkconfig.defaults.esp32s3 with the content: CONFIG_HEAP_TRACING_STACK_DEPTH=10

After I press "Start Heap Trace", I get an openocd error, but the UI-Symbol suggests, that the tracing is running. When I stop, I do not have any trace archive.

Debug Message

[OpenOCD]
Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection
[OpenOCD]
Info : accepting 'gdb' connection on tcp/3333
[OpenOCD]
Info : esp32s3.cpu0: Target halted, PC=0x42016092, debug_reason=00000000
[OpenOCD]
Info : Set GDB target to 'esp32s3.cpu0'
[OpenOCD]
Info : esp32s3.cpu1: Target halted, PC=0x40043A40, debug_reason=00000000
[OpenOCD]
Info : New GDB Connection: 1, Target esp32s3.cpu0, state: halted
[OpenOCD]
Info : JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
[OpenOCD]
Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
[OpenOCD]
Info : esp32s3.cpu0: Debug controller was reset.
[OpenOCD]
Info : esp32s3.cpu0: Core was reset.
[OpenOCD]
Info : esp32s3.cpu0: Target halted, PC=0x500000EF, debug_reason=00000000
[OpenOCD]
Info : esp32s3.cpu0: Core was reset.
[OpenOCD]
Info : esp32s3.cpu0: Target halted, PC=0x40000400, debug_reason=00000000
[OpenOCD]
Info : esp32s3.cpu1: Debug controller was reset.
Info : esp32s3.cpu1: Core was reset.
[OpenOCD]
Info : esp32s3.cpu1: Target halted, PC=0x40000400, debug_reason=00000000
[OpenOCD]
Info : esp32s3.cpu0: Target halted, PC=0x42005098, debug_reason=00000001
[OpenOCD]
Info : Set GDB target to 'esp32s3.cpu0'
[OpenOCD]
Info : esp32s3.cpu1: Target halted, PC=0x40043A3E, debug_reason=00000000
[OpenOCD]
Info : Total trace memory: 16384 bytes
[OpenOCD]
❌ Error: Not enough args! Need 2 trace data destinations!
Error: Failed to init cmd ctx (-4)!

Other Steps to Reproduce

No response

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

mbrunnen commented 2 years ago

The error disappeared, when I changed gdbinit from mon esp sysview start file:///tmp/heap_log.svdat to mon esp sysview start file:///tmp/heap_log.cpu0.svdat file:///tmp/heap_log.cpu1.svdat

But I still can't start and analyse it within the vscode extension.

radurentea commented 2 years ago

Hi @mbrunnen,

Thank you for the report!

I've looked into it and fixed the issue on my local, however, there is another issue regarding heap tracing coming from the ESP-IDF, which will be fixed with the ESP-IDF 5.1 release. Until the release there is no workaround I'm afraid for the ESP32-S3 chip.

mbrunnen commented 2 years ago

Hi @radurentea, these are good news, thank you! Do you have a reference for the issue in IDF?

radurentea commented 2 years ago

Hi @mbrunnen,

So it seems that the fix for the issue I've mentioned is already out if you are using the master version of IDF. However, I still had issues with S3 tracing. There is someone already looking into it and when I will have more info I will come back to you.

This is the commit I was mentioning before on IDF v 5.1:

Regarding the modification needed on the VSCode Extension, I've created this PR

mbrunnen commented 2 years ago

Hi @radurentea, thank you for that information! Unfortunately this commit seems to be released in v5.1: image

github-actions[bot] commented 2 years ago

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

mickeyl commented 8 months ago

May I ask about the current status here? I tried with ESP-IDF 5.2.1 and the latest version of the extension (1.7.1 as of today) and it doesn't work here. My example hangs on the ESP32S3 in heap_trace_start() and does not continue.

OpenOCD debugging in general works though.

0xjmux commented 7 months ago

I'm also interested in the status of this.

I was able to get the program to execute (nominally) by modifying gdbinit like mbrunned mentioned in this reply.

GDB Log:

xtensa-esp32-elf-gdb -x gdbinit build/sysview_tracing_heap_log.elf
GNU gdb (esp-gdb) 12.1_20231023
...

Reading symbols from build/sysview_tracing_heap_log.elf...
0x4037a416 in esp_cpu_wait_for_intr () at /home/jmux/Documents/esp/v5.2.1/esp-idf/components/esp_hw_support/cpu.c:145
145     }
JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
[esp32s3.cpu0] requesting target halt and executing a soft reset
[esp32s3.cpu0] Debug controller was reset.
[esp32s3.cpu0] Core was reset.
[esp32s3.cpu0] Target halted, PC=0x500000EF, debug_reason=00000000
[esp32s3.cpu0] Reset cause (3) - (Software core reset)
[esp32s3.cpu1] requesting target halt and executing a soft reset
[esp32s3.cpu0] Core was reset.
[esp32s3.cpu0] Target halted, PC=0x40000400, debug_reason=00000000
[esp32s3.cpu1] Debug controller was reset.
[esp32s3.cpu1] Core was reset.
[esp32s3.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
[esp32s3.cpu1] Reset cause (3) - (Software core reset)
[esp32s3.cpu0] Reset cause (3) - (Software core reset)
Temporary breakpoint 1 at 0x42006040: file /home/jmux/Documents/esp/v5.2.1/esp-idf/components/app_trace/heap_trace_tohost.c, line 36.
Note: automatically using hardware breakpoints for read-only addresses.
Temporary breakpoint 2 at 0x42006058: file /home/jmux/Documents/esp/v5.2.1/esp-idf/components/app_trace/heap_trace_tohost.c, line 48.
[esp32s3.cpu0] Target halted, PC=0x42006040, debug_reason=00000001
Set GDB target to 'esp32s3.cpu0'
[esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
[New Thread 1070178928]
[New Thread 1070182088]
[New Thread 1070174276]
[Switching to Thread 1070178928]

Thread 2 "main" hit Temporary breakpoint 1, heap_trace_start (mode_param=(HEAP_TRACE_LEAKS | unknown: 0x2)) at /home/jmux/Documents/esp/v5.2.1/esp-idf/components/app_trace/heap_trace_tohost.c:36
36      {
Total trace memory: 16384 bytes
Open file /tmp/heap_log.cpu0.svdat
Open file /tmp/heap_log.cpu1.svdat
App trace params: from 2 cores, size 4294967295 bytes, stop_tmo -1 s, poll period 0 ms, wait_rst 0, skip 0 bytes
Connect targets...
Targets connected.
[esp32s3.cpu0] Target halted, PC=0x42006058, debug_reason=00000001
Set GDB target to 'esp32s3.cpu0'
[esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
[New Thread 1070197012]
[New Thread 1070191164]
[New Thread 1070185316]
[New Thread 1070199984]
[New Thread 1070194136]
[New Thread 1070188288]

Thread 2 "main" hit Temporary breakpoint 2, heap_trace_stop () at /home/jmux/Documents/esp/v5.2.1/esp-idf/components/app_trace/heap_trace_tohost.c:48
48      {
Resume targets
16500 
16753 
16996 
17072 
Disconnect targets...
[esp32s3.cpu0] Target halted, PC=0x4038046F, debug_reason=00000000
Set GDB target to 'esp32s3.cpu0'
[esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
Targets disconnected.
Tracing is STOPPED. Size is 17072 of -1 @ 76.483856 (73.379166) KiB/s
Data: blocks incomplete 0, lost bytes: 0
Block read time [126.265007..126.265007] ms
Block proc time [0.082000..0.082000] ms
(gdb)

Following along with the steps in the example, I then open it in Systemview - but when opening either heap log in Systemview the program hangs and refuses to read it. image

I have two questions:

  1. Is the reason for this incompatibility known, and is there a fix for it? I've tried copying SYSVIEW_FreeRTOS.txt to /opt/SEGGER/SystemView_vX, but it didn't help; the heap log being produced seems to be incompatible with Systemview, but all of Segger's examples load fine on my machine.
  2. Are there plans to make the GUI buttons for these tools in the VSCode dev environment actually work? So far, basically every debugging tool in ESP-IDF I've tried only works when running it from the CLI. The VSCode extension looks very nice, but at this point I'm spending more time banging my head against my desk trying to get it to work than actually writing code.

Thanks.