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

Cannot debug at all. Very discouraged: please help. (IDFGH-9253) #10638

Closed
3 tasks done
ChrisJones79 opened this issue Jan 28, 2023 · 11 comments
Closed
3 tasks done

Cannot debug at all. Very discouraged: please help. (IDFGH-9253) #10638

ChrisJones79 opened this issue Jan 28, 2023 · 11 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@ChrisJones79
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I am using IDFv5.0 in vscode on Win10x64. The device I'm using is the esp32-s3 n32r8.

Just to try and get debugging, I opened the cdc_acm_vcp example and built it. I checked the boxes in config so that both the bootloader and application had th -Og debug flag.

After flashing, I went to the vscode sidebar and clicked launch arrow
image

All that is in launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "espidf",
      "name": "Launch",
      "request": "launch"
    }
  ]
}

I currently have both USB ports connected to the desktop, as seen here:
image
I put a copy of the esp32s3 svd file in my project directory, where the main folder is.
I've reset in to the bootloader and saw different messages, they are below.

I really don't know what to do. I've always used printf messages and never really had very large programs. So just using them worked enough. But I have convinced my employer to use ESP32 for upcoming projects and my first project is pretty big, many source files and printf isn't enough to make steady progress.

I really need help getting debugging working. Thank you in advance for any help!

I will copy everything that was printed during the build and debug start attempts here:

    Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
    Executing action: fullclean
    Build directory 'c:\users\cjone\code\esp-idf\simpledebug\build' not found. Nothing to clean.
    Executing action: set-target
    Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
    Running cmake in directory c:\users\cjone\code\esp-idf\simpledebug\build
    Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 c:\users\cjone\code\esp-idf\simpledebug"...
    -- Found Git: C:/Users/cjone/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") 
    -- The C compiler identification is GNU 11.2.0
    -- The CXX compiler identification is GNU 11.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/Users/cjone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: C:/Users/cjone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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:/Users/cjone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
    -- Building ESP-IDF components for target esp32s3
    Solving dependencies requirements
    
    .......Updating lock file at C:/Users/cjone/code/esp-idf/SimpleDebug\dependencies.lock
    
    Processing 2 dependencies:
    
    [1/2] espressif/usb_host_cdc_acm (1.0.4)
    
    [2/2] idf (5.0.0)
    
    -- Project sdkconfig file C:/Users/cjone/code/esp-idf/SimpleDebug/sdkconfig
    Loading defaults file C:/Users/cjone/code/esp-idf/SimpleDebug/sdkconfig.defaults...
    
    -- 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:/Users/cjone/.espressif/python_env/idf5.0_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter 
    -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
    -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
    -- App "SimpleDebug" version: 1
    -- Adding linker script C:/Users/cjone/code/esp-idf/SimpleDebug/build/esp-idf/esp_system/ld/memory.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
    -- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format 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_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump espressif__usb_host_cdc_acm esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
    -- Component paths: <removed>
    
    [SDK Configuration Editor]
    -- Configuring done
    
    [SDK Configuration Editor]
    -- Generating done
    
    [SDK Configuration Editor]
    -- Build files have been written to: C:/Users/cjone/code/esp-idf/SimpleDebug/build
    
    [SDK Configuration Editor]
    Running ninja in directory c:\users\cjone\code\esp-idf\simpledebug\build
    Executing "ninja confserver"...
    [0/1] cmd.exe /C "cd /D C:\Users\cjone\code\esp-idf\SimpleDebug\build && C:\Users\cjone\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:/Users/cjone/espV5/esp-idf/tools/kconfig_new/prepare_kconfig_files.py --list-separator=semicolon --env-file C:/Users/cjone/code/esp-idf/SimpleDebug/build/config.env && C:\Users\cjone\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:/Users/cjone/espV5/esp-idf/tools/kconfig_new/confserver.py --env-file C:/Users/cjone/code/esp-idf/SimpleDebug/build/config.env --kconfig C:/Users/cjone/espV5/esp-idf/Kconfig --sdkconfig-rename C:/Users/cjone/espV5/esp-idf/sdkconfig.rename --config C:/Users/cjone/code/esp-idf/SimpleDebug/sdkconfig"
    
    
    [SDK Configuration Editor]
    <removed>
    
    
    [SDK Configuration Editor]
    
    
    
    [SDK Configuration Editor]
    {"version":2,"load":"c:\\Users\\cjone\\code\\esp-idf\\SimpleDebug\\sdkconfig"}
    [SDK Configuration Editor]
    {"version": 2, "values": {}, "ranges": {}, "visible": {}}
    
    
    
    
    [SDK Configuration Editor]
    {"version": 2, "set": { "BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG": true }}
    
    [SDK Configuration Editor]
    Set BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG
    
    {"version": 2, "values": {"BOOTLOADER_COMPILER_OPTIMIZATION_SIZE": false, "BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG": true}, "ranges": {}, "visible": {}}
    
    
    
    
    [SDK Configuration Editor]
    {"version": 2, "set": { "BOOTLOADER_LOG_LEVEL_DEBUG": true }}
    
    [SDK Configuration Editor]
    Set BOOTLOADER_LOG_LEVEL_DEBUG
    
    {"version": 2, "values": {"BOOTLOADER_LOG_LEVEL_INFO": false, "BOOTLOADER_LOG_LEVEL_DEBUG": true, "BOOTLOADER_LOG_LEVEL": 4}, "ranges": {}, "visible": {}}
    
    
    
    
    [SDK Configuration Editor]
    {"version": 2, "set": { "ESPTOOLPY_OCT_FLASH": true }}
    
    [SDK Configuration Editor]
    Set ESPTOOLPY_OCT_FLASH
    
    {"version": 2, "values": {"ESPTOOLPY_OCT_FLASH": true, "ESPTOOLPY_FLASHMODE_OPI": true, "ESPTOOLPY_FLASH_SAMPLE_MODE_DTR": false, "ESPTOOLPY_FLASHMODE": "dout"}, "ranges": {}, "visible": {"ESPTOOLPY_FLASHMODE_QIO": false, "ESPTOOLPY_FLASHMODE_QOUT": false, "ESPTOOLPY_FLASHMODE_DIO": false, "ESPTOOLPY_FLASHMODE_DOUT": false, "ESPTOOLPY_FLASHMODE_OPI": true, "ESPTOOLPY_FLASH_SAMPLE_MODE_DTR": true}}
    
    
    
    
    [SDK Configuration Editor]
    {"version": 2, "set": { "ESPTOOLPY_FLASHSIZE_32MB": true }}
    
    [SDK Configuration Editor]
    Set ESPTOOLPY_FLASHSIZE_32MB
    
    {"version": 2, "values": {"ESPTOOLPY_FLASHSIZE_2MB": false, "ESPTOOLPY_FLASHSIZE_32MB": true, "ESPTOOLPY_FLASHSIZE": "32MB"}, "ranges": {}, "visible": {}}
    
    
    
    
    [SDK Configuration Editor]
    {"version": 2, "set": { "ESP_DEFAULT_CPU_FREQ_MHZ_240": true }}
    
    [SDK Configuration Editor]
    Set ESP_DEFAULT_CPU_FREQ_MHZ_240
    
    {"version": 2, "values": {"ESP_DEFAULT_CPU_FREQ_MHZ_160": false, "ESP_DEFAULT_CPU_FREQ_MHZ_240": true, "ESP_DEFAULT_CPU_FREQ_MHZ": 240}, "ranges": {}, "visible": {}}
    
    
    
    
    [SDK Configuration Editor]
    {"version":2,"save":"c:\\Users\\cjone\\code\\esp-idf\\SimpleDebug\\sdkconfig"}
    [SDK Configuration Editor]
    {"version": 2, "values": {}, "ranges": {}, "visible": {}}
    
    
    
    
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : on[OpenOCD]
    ly one transport option; autoselect 'jtag'
    [OpenOCD]
    Info : esp_[OpenOCD]
    usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Transport "jtag" was already selected
    [OpenOCD]
    Info : Listening on por[OpenOCD]
    t 6666 for tcl connections
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not [OpenOCD]
    find or open device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [Debug Adapter]
    DEBUG_ADAPTER_STARTED
    2023-01-28 13:55:30,338 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
    [Debug Adapter]
    DEBUG_ADAPTER_READY2CONNECT
    2023-01-28 13:55:30,342 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
    [Debug Adapter]
    DEBUG_ADAPTER_STOPPED
    2023-01-28 13:55:43,112 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
    [Stopped] : ESP-IDF Debug Adapter
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only[OpenOCD]
     one transport option; autoselect 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    [OpenOCD]
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set [OpenOCD]
    to 9
    [OpenOCD]
    Warn : Transport "jtag" was already selecte[OpenOCD]
    d
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: [OpenOCD]
    2
    
    [OpenOCD]
    Info : only one transport option; autose[OpenOCD]
    lect 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Trans[OpenOCD]
    port "jtag" was already selected
    [OpenOCD]
    Info : Listenin[OpenOCD]
    g on port 6666 for tcl connections
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jtag'
    [OpenOCD]
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    Warn : Transport "jtag" was alre[OpenOCD]
    ady selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connection[OpenOCD]
    s
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open[OpenOCD]
     device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2[OpenOCD]
    
    
    [OpenOCD]
    Info : only [OpenOCD]
    one transport option; autoselect 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID t[OpenOCD]
    o 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip [OpenOCD]
    id set to 9
    [OpenOCD]
    Warn : Tran[OpenOCD]
    sport "jtag" was already selected
    [OpenOCD]
    Info : Listeni[OpenOCD]
    ng on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open devi[OpenOCD]
    ce!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jtag'
    Info : esp_usb_jtag:[OpenOCD]
     VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Tran[OpenOCD]
    sport "jtag" was already selected
    [OpenOCD]
    Info : Listenin[OpenOCD]
    g on port 6666 for tcl connections
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: [OpenOCD]
    could not find or open device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [Debug Adapter]
    DEBUG_ADAPTER_STARTED
    2023-01-28 13:58:30,938 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
    [Debug Adapter]
    DEBUG_ADAPTER_READY2CONNECT
    2023-01-28 13:58:30,941 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
    [Debug Adapter]
    DEBUG_ADAPTER_STOPPED
    2023-01-28 13:58:43,477 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
    [Stopped] : ESP-IDF Debug Adapter
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jtag'
    [OpenOCD]
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jta[OpenOCD]
    g: target chip id set to 9
    [OpenOCD]
    Warn : Transport "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connectio[OpenOCD]
    ns
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autosele[OpenOCD]
    ct 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Inf[OpenOCD]
    o : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Transport "j[OpenOCD]
    tag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could no[OpenOCD]
    t find or open device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [Debug Adapter]
    DEBUG_ADAPTER_STARTED
    2023-01-28 13:59:31,729 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
    [Debug Adapter]
    DEBUG_ADAPTER_READY2CONNECT
    2023-01-28 13:59:31,732 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
    [Debug Adapter]
    DEBUG_ADAPTER_STOPPED
    2023-01-28 13:59:44,281 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
    [Stopped] : ESP-IDF Debug Adapter
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jtag'
    [OpenOCD]
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Trans[OpenOCD]
    port "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jtag'
    [OpenOCD]
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Transport "jtag" was already sele[OpenOCD]
    cted
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [Debug Adapter]
    DEBUG_ADAPTER_STARTED
    2023-01-28 14:01:23,835 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
    [Debug Adapter]
    DEBUG_ADAPTER_READY2CONNECT
    2023-01-28 14:01:23,838 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
    [Debug Adapter]
    DEBUG_ADAPTER_STOPPED
    2023-01-28 14:01:36,393 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
    [Stopped] : ESP-IDF Debug Adapter
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jta[OpenOCD]
    g'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_[OpenOCD]
    usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Transport "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jt[OpenOCD]
    ag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag:[OpenOCD]
     target chip id set to 9
    [OpenOCD]
    Warn : Transpo[OpenOCD]
    rt "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    [OpenOCD]
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level[OpenOCD]
    : 2
    
    [OpenOCD]
    Info : only o[OpenOCD]
    ne transport option; autoselect 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp[OpenOCD]
    _usb_jtag: capabilities descriptor set to 0x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Trans[OpenOCD]
    port "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [Debug Adapter]
    DEBUG_ADAPTER_STARTED
    2023-01-28 14:03:03,654 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
    [Debug Adapter]
    DEBUG_ADAPTER_READY2CONNECT
    2023-01-28 14:03:03,657 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
    [Debug Adapter]
    DEBUG_ADAPTER_STOPPED
    2023-01-28 14:03:16,243 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
    [Stopped] : ESP-IDF Debug Adapter
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect '[OpenOCD]
    jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0[OpenOCD]
    x30a
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Transport "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connecti[OpenOCD]
    ons
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not find or open device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; auto[OpenOCD]
    select 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
    Info : esp_usb_jtag: capabilities descriptor set to 0x30a
    [OpenOCD]
    Info : esp_usb_jtag: target chip id set to 9
    [OpenOCD]
    Warn : Transport "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl conne[OpenOCD]
    ctions
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: esp_usb_jtag: could not [OpenOCD]
    find or open device!
    
    [OpenOCD]
    [Stopped] : OpenOCD Server
    [SDK Configuration Editor]
    Server running, waiting for requests on stdin...
    
    
    [SDK Configuration Editor]
    Loading config from c:\Users\cjone\code\esp-idf\SimpleDebug\sdkconfig...
    
    Saving config to c:\Users\cjone\code\esp-idf\SimpleDebug\sdkconfig...
    
    
    Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
    Executing action: fullclean
    Executing action: set-target
    Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
    Running cmake in directory c:\users\cjone\code\esp-idf\simpledebug\build
    Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 c:\users\cjone\code\esp-idf\simpledebug"...
    -- Found Git: C:/Users/cjone/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") 
    -- The C compiler identification is GNU 11.2.0
    -- The CXX compiler identification is GNU 11.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/Users/cjone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: C:/Users/cjone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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:/Users/cjone/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
    -- Building ESP-IDF components for target esp32s3
    Processing 2 dependencies:
    
    [1/2] espressif/usb_host_cdc_acm (1.0.4)
    
    [2/2] idf (5.0.0)
    
    -- Project sdkconfig file C:/Users/cjone/code/esp-idf/SimpleDebug/sdkconfig
    Loading defaults file C:/Users/cjone/code/esp-idf/SimpleDebug/sdkconfig.defaults...
    
    -- 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:/Users/cjone/.espressif/python_env/idf5.0_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter 
    -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
    -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
    -- App "SimpleDebug" version: 1
    -- Adding linker script C:/Users/cjone/code/esp-idf/SimpleDebug/build/esp-idf/esp_system/ld/memory.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
    -- Adding linker script C:/Users/cjone/espV5/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
    -- Components:<removed>
    -- Component paths:<removed>
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/cjone/code/esp-idf/SimpleDebug/build
    [OpenOCD]
    Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
    Licensed under GNU GPL v2
    For bug reports, read
	    http://openocd.org/doc/doxygen/bugs.html
    [OpenOCD]
    debug_level: 2
    
    [OpenOCD]
    Info : only one transport option; autoselect 'jtag'
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
    Info : esp_usb_jtag: capabilities descriptor set to 0x2000
    Warn : Transport "jtag" was already selected
    [OpenOCD]
    Info : Listening on port 6666 for tcl connections
    [OpenOCD]
    Info : Listening on port 4444 for telnet connections
    [OpenOCD]
    ❌ Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
    [OpenOCD]
    Info : esp_usb_jtag: serial (68:B6:B3:3B:B0:34)
    Info : esp_usb_jtag: Device found. Bas[OpenOCD]
    e speed 40000KHz, div range 1 to 255
    [OpenOCD]
    Info : clock speed 4[OpenOCD]
    0000 kHz
    [OpenOCD]
    Info : JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e[OpenOCD]
    5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    [OpenOCD]
    Info : [esp32s3.cpu0] Debug controller was res[OpenOCD]
    et.
    Info : [esp32s3.cp[OpenOCD]
    u0] Core was reset.
    [OpenOCD]
    ❌ Error: Unexpected OCD_ID = 00000000
    [OpenOCD]
    ❌ Error: Unexpect[OpenOCD]
    ed OCD_ID = 00000000
    [OpenOCD]
    ❌ Error: Unexpected OCD_ID = 00000000
    [OpenOCD]
    ❌ Error: Unexpect[OpenOCD]
    ed OCD_ID = 00000000
    Warn : target esp32s3.cpu1 examination failed
    [OpenOCD]
    ❌ Error: Unexpe[OpenOCD]
    cted OCD_ID = 00000000
    [OpenOCD]
    ❌ Error: Unexpected OCD_ID = 00000000[OpenOCD]
    
    [OpenOCD]
    Info : starting gdb server for esp32s3[OpenOCD]
    .cpu0 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' connection on tcp/6666
    [OpenOCD]
    Flashing c:/Users/cjone/code/esp-idf/SimpleDebug/build/bootloader/bootloader.bin at [OpenOCD]
    0x0
    [OpenOCD]
    Info : JTAG tap[OpenOCD]
    : esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    [OpenOCD]
    ❌ Error: Unexpected OCD_ID = 00000000
    [OpenOCD]
    Info : [esp32s3.cpu0] requesting target halt and executing a soft reset
    [OpenOCD]
    Info : [esp32s3.cpu0] T[OpenOCD]
    arget halted, PC=0x40041A7C, debug_reason=00000000
    [OpenOCD]
    Info : Set G[OpenOCD]
    DB target to 'esp32s3.cpu0'
    [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.cpu1] requesting target halt and executing a soft reset
    Error: Target not examined yet
    [OpenOCD]
    Info : [esp32[OpenOCD]
    s3.cpu0] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x40000400, debug_reason=00000000
    [OpenOCD]
    Info : [esp32s3.cpu1] Debug controller was reset.
    [OpenOCD]
    Info : [esp32s3.cpu1] Core was reset.
    [OpenOCD]
    Info : [esp3[OpenOCD]
    2s3.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_r[OpenOCD]
    eason=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    Info : Flash mapping 1: 0x20020 ->[OpenOCD]
     0x42000020, 146 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_rea[OpenOCD]
    son=00000001
    [OpenOCD]
    Info : Auto-detected flash bank 'esp32s3.cpu0.fl[OpenOCD]
    ash' size 32768 KB
    Info : Using flash bank 'esp32s3.cpu0.flash' size 32768 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_reason=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    Info : Flash mapping 1: 0x20020 -> 0x420[OpenOCD]
    00020, 146 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, d[OpenOCD]
    ebug_reason=00000001
    [OpenOCD]
    Info : Auto-detected flash bank 'esp32s3.cpu1.flash' size 32768 KB
    Info : Using flash bank[OpenOCD]
     'esp32s3.cpu1.flash' size 32768 KB
    [OpenOCD]
    ** Programming Started **
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, d[OpenOCD]
    ebug_reason=00000001
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug[OpenOCD]
    _reason=00000001
    [OpenOCD]
    Info : PROF: Erased 24576 bytes in 280 ms
    [OpenOCD]
    Info : PROF: Data tran[OpenOCD]
    sferred in 191 ms @ 125.654 KB/s
    [OpenOCD]
    Info : [esp32s3.[OpenOCD]
    cpu0] Target halted, PC=0x403B2482, debug_reason=00000001
    [OpenOCD]
    Info : PROF: Wrote 24576 bytes in 521 ms (data transfer time included)
    [OpenOCD]
    ** Programming [OpenOCD]
    Finished in 1796 ms **
    [OpenOCD]
    ** Verify Started **
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_[OpenOCD]
    reason=00000001
    [OpenOCD]
    Info : PROF: Flash verified in 151 ms 
    [OpenOCD]
    ** Verify OK **
    [OpenOCD]
    ** Flashing done for bootloader/bootloader.bin in 1966 ms **
    [OpenOCD]
    Flashing c:/Users/cjone/code/esp-idf/SimpleDeb[OpenOCD]
    ug/build/SimpleDebug.bin at 0x10000
    [OpenOCD]
    Info : JTAG tap: e[OpenOCD]
    sp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    [OpenOCD]
    Info : [esp32s3.cpu0] requesting target halt and executing a soft reset
    [OpenOCD]
    Info : [esp32s3.cpu0] De[OpenOCD]
    bug controller was reset.
    Info : [esp32s3.cp[OpenOCD]
    u0] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x500000EF, debug_reason=00000000
    [OpenOCD]
    Info : [esp32s3.cpu1] requesting target halt and executing a soft reset
    [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.
    [OpenOCD]
    Info : [esp32s3.cpu1] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu1] Target halted, PC=0x40000400, debug_reason=000[OpenOCD]
    00000
    [OpenOCD]
    ** Programming Started **
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_reaso[OpenOCD]
    n=00000001
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_rea[OpenOCD]
    son=00000001
    [OpenOCD]
    Info : PROF: Erased 274432 bytes in 1305.02 ms
    [OpenOCD]
    Info : PROF: Data transferred in 2123.03 ms @ 126.234 KB/s
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_re[OpenOCD]
    ason=00000001
    [OpenOCD]
    Info : PROF: Wrote 274432 bytes in 2504.54 ms (data [OpenOCD]
    transfer time included)
    [OpenOCD]
    ** Programming Finished in 4214 ms **
    [OpenOCD]
    ** Verify Started **
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_reason=[OpenOCD]
    00000001
    [OpenOCD]
    Info : PROF: Flash verified in 287 ms 
    [OpenOCD]
    ** Verify OK **
    [OpenOCD]
    ** Flashing done for SimpleDebug.bin in 4523 ms **[OpenOCD]
    
    [OpenOCD]
    Flashing c:/Users/cjone/code/esp-idf/SimpleDebug/build/partition_table/partition-tabl[OpenOCD]
    e.bin at 0x8000
    [OpenOCD]
    Info : JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    [OpenOCD]
    Info : [esp32s3.cpu0] requesting tar[OpenOCD]
    get halt and executing a soft reset
    [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.cpu1] requesting target halt and e[OpenOCD]
    xecuting a soft reset
    [OpenOCD]
    Info : [esp32s3.cpu0] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu[OpenOCD]
    0] Target halted, PC=0x40000400, debug_reason=00000000
    [OpenOCD]
    Info : [esp32s3.cpu1] Debug controller w[OpenOCD]
    as reset.
    Info : [esp32s3.c[OpenOCD]
    pu1] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
    [OpenOCD]
    ** Programming Started **
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_rea[OpenOCD]
    son=00000001
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_r[OpenOCD]
    eason=00000001
    [OpenOCD]
    Info : PROF: Erased 4096 bytes in 163 ms
    [OpenOCD]
    Info : PROF: Data transferred in 33 ms @ 121.212 KB/s
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_reason=00000001
    [OpenOCD]
    Info : PROF: Wrote 4096 bytes in 352 ms (da[OpenOCD]
    ta transfer time included)
    [OpenOCD]
    ** Programming [OpenOCD]
    Finished in 908 ms **
    [OpenOCD]
    ** Verify Start[OpenOCD]
    ed **
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_r[OpenOCD]
    eason=00000001
    [OpenOCD]
    Info : PROF: Flash verified in 140 ms 
    [OpenOCD]
    ** Verify OK **
    [OpenOCD]
    ** Flashing done for partition_table/partition-table.bin in 1069 ms **
    [OpenOCD]
    ** Total programming time 7568 ms **
    [OpenOCD]
    ** Resetting Target **
    [OpenOCD]
    Info : JTAG tap: esp32s3.cpu0 tap/d[OpenOCD]
    evice found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    [OpenOCD]
    Info : [esp32s3.cpu0] requesting target halt and executing a soft reset
    [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.cpu1] requesting target halt and exec[OpenOCD]
    uting a soft reset
    [OpenOCD]
    Info : [esp32s3.cpu0] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu1] Debug controller was reset.
    [OpenOCD]
    Info : [esp32[OpenOCD]
    s3.cpu1] Core was reset.
    [OpenOCD]
    0
    [Debug Adapter]
    DEBUG_ADAPTER_STARTED
    2023-01-28 14:10:33,740 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
    [Debug Adapter]
    DEBUG_ADAPTER_READY2CONNECT
    2023-01-28 14:10:33,743 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_READY2CONNECT
    [OpenOCD]
    Info : accepting 'gdb' connection on tcp/3333
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x40041A76, debug_reason=00000000
    [OpenOCD]
    Info : [esp32s3.cpu1] Target halted, PC=0x40043A3B, debug_reason=00000000
    [OpenOCD]
    Warn : No symbols for FreeRTOS!
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_reaso[OpenOCD]
    n=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    [OpenOCD]
    Info : Flash mapping 1: 0x20020 -> 0x42000020, 146 KB
    Info : Using flash bank 'esp32s3.cpu0.irom' size 148 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403[OpenOCD]
    B2482, debug_reason=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    Info : Flash mapping 1: 0x2002[OpenOCD]
    0 -> 0x42000020, 146 KB
    Info : Using flash bank 'esp32s3.cpu0.drom' size 56 KB
    Info : New GDB Connection: 1, Target esp32s3.cpu0, state: halted
    [OpenOCD]
    Warn : Prefer GDB command "target extended-remote :3333" instead of "[OpenOCD]
    target remote :3333"
    [OpenOCD]
    ❌ Error: FreeRTOS: uxTopUsedPriority is not de[OpenOCD]
    fined, consult the OpenOCD manual for a work-around!
    [OpenOCD]
    Info : JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
    [OpenOCD]
    Info : [esp32s[OpenOCD]
    3.cpu0] requesting target halt and executing a soft reset
    [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.cpu1] requesting target halt and executing a soft reset
    [OpenOCD]
    Info : [esp32s3.cpu0] Core was reset.
    [OpenOCD]
    Info : [esp32s3.c[OpenOCD]
    pu0] Target halted, PC=0x40000400, debug_reason=00000000
    [OpenOCD]
    Info : [esp32[OpenOCD]
    s3.cpu1] Debug controller was reset.
    [OpenOCD]
    Info : [esp32s3.cpu1] Core was reset.
    [OpenOCD]
    Info : [esp32s3.cpu1] Target halted, PC=0x40000400, debug_reason=00000000
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug[OpenOCD]
    _reason=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    [OpenOCD]
    Info : Flash mapping 1: 0x20020 -> 0x42000020, 146 KB
    Info : Using flash bank 'esp32s3.cpu0.irom' size 148 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_reaso[OpenOCD]
    n=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    [OpenOCD]
    Info : Flash mapping 1: 0x20020 -> 0x42000020, 146 KB
    Info : Using flash bank 'esp32s3.cpu0.drom' size 56 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] T[OpenOCD]
    arget halted, PC=0x403B2482, debug_reason=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB[OpenOCD]
    
    Info : Flash mapping 1: 0x20020 -> 0x42000020, 146 KB
    Info : Using flash bank 'esp32s3.cpu1.irom' size 148 KB
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x403B2482, debug_[OpenOCD]
    reason=00000001
    [OpenOCD]
    Info : Flash mapping 0: 0x10020 -> 0x3c030020, 52 KB
    [OpenOCD]
    Info : Flash mapping 1: 0x20020 -> 0x42000020, 146 KB
    Info : Using flash bank 'esp32s3.cpu1.drom' size 56 KB
    [OpenOCD]
    Info : droppe[OpenOCD]
    d 'gdb' connection
    [OpenOCD]
    Info : accepting 'gdb' connection on tc[OpenOCD]
    p/3333
    [OpenOCD]
    ❌ Error: FreeRTOS: uxTopUsedPriority is not defined, consult the OpenOCD[OpenOCD]
     manual for a work-around!
    Info : New GDB Connection: 1, Target esp32s3.cpu0, state: halted
    [OpenOCD]
    ❌ Error: FreeRTOS: uxTopUsedPriority is not defined, consu[OpenOCD]
    lt the OpenOCD manual for a work-around!
    [Debug Adapter]
    Exception in thread Thread-1:
    Traceback (most recent call last):
      File "threading.py", line 932, in _bootstrap_inner
    Exception in thread Thread-2:
    Traceback (most recent call last):
      File "threading.py", line 932, in _bootstrap_inner
      File "threading.py", line 870, in run
      File "threading.py", line 870, in run
      File "subprocess.py", line 1366, in _readerthread
      File "subprocess.py", line 1366, in _readerthread
    OSError: [Errno 22] Invalid argument
    [Debug Adapter]
    DEBUG_ADAPTER_STOPPED
    2023-01-28 14:10:55,472 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STOPPED
    [Debug Adapter]
    OSError: [Errno 22] Invalid argument
    [OpenOCD]
    Info : [esp32s3.cpu0] Target halted, PC=0x40041A76, debug_r[OpenOCD]
    eason=00000000
    [OpenOCD]
    Info : Set GDB target to 'esp32s3.cpu0'
    [OpenOCD]
    Info : [esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
    [Stopped] : ESP-IDF Debug Adapter
    [OpenOCD]
Info : dropped 'gdb' connection
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 28, 2023
@github-actions github-actions bot changed the title Cannot debug at all. Very discouraged: please help. Cannot debug at all. Very discouraged: please help. (IDFGH-9253) Jan 28, 2023
@ChrisJones79
Copy link
Author

Here is the 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\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin;C:\Program Files\Microsoft MPI\Bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:<HOMEPATH>\Programs\Python\Python311\Scripts\;C:<HOMEPATH>\Programs\Python\Python311\;C:\Program Files\ngsolve-v6.2.2204\bin;C:<HOMEPATH>\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Graphviz\bin;C:\Program Files\7-Zip;E:\AVRDUDE;C:<HOMEPATH>\Programs\Microsoft VS Code\bin;C:<HOMEPATH>\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Program Files (x86)\GnuWin32\bin;C:\Xilinx\14.7_VM;C:\Program Files\Git\bin;C:\Program Files\Elmer 9.0-Release\bin;C:\Program Files\ParaView 5.11.0\bin;C:\MinGW\bin;C:<HOMEPATH>\Programs\imagej\ij153t-src\source\apache-ant-1.10.12\bin;C:<HOMEPATH>\AppData\Roaming\npm;C:\Program Files\CMake\bin;C:<HOMEPATH>\Programs\bin;C:<HOMEPATH>\.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin; 
System environment variable PYTHON 
 undefined 
Visual Studio Code version 1.74.3 
Visual Studio Code language en 
Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe 
ESP-IDF Extension version 1.5.1 
Workspace folder c:<HOMEPATH>\code\esp-idf\SimpleDebug 
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) C:<HOMEPATH>\espV5\esp-idf
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH}
Custom extra paths (idf.customExtraPaths) C:<HOMEPATH>\.espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin;C:<HOMEPATH>\.espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin;C:<HOMEPATH>\.espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin;C:<HOMEPATH>\.espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin;C:<HOMEPATH>\.espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin;C:<HOMEPATH>\.espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin;C:<HOMEPATH>\.espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;C:<HOMEPATH>\.espressif\tools\cmake\3.24.0\bin;C:<HOMEPATH>\.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin;C:<HOMEPATH>\.espressif\tools\ninja\1.10.2;C:<HOMEPATH>\.espressif\tools\idf-exe\1.0.3;C:<HOMEPATH>\.espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64;C:<HOMEPATH>\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
Custom extra vars (idf.customExtraVars) {"OPENOCD_SCRIPTS":"C:\\Users\\cjone\\.espressif\\tools\\openocd-esp32\\v0.11.0-esp32-20220706/openocd-esp32/share/openocd/scripts","IDF_CCACHE_ENABLE":"1"}
Virtual env Python Path (idf.pythonBinPath) C:<HOMEPATH>\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe
Serial port (idf.port) COM35
OpenOCD Configs (idf.openOcdConfigs) board/esp32s3-builtin.cfg
ESP-IDF Tools Path (idf.toolsPath) C:<HOMEPATH>\.espressif
Git Path (idf.gitPath) C:<HOMEPATH>\.espressif\tools\idf-git\2.30.1\cmd\git.exe
-------------------------------------------------------- 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:<HOMEPATH>\.espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin: true
Access to C:<HOMEPATH>\.espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin: true
Access to C:<HOMEPATH>\.espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin: true
Access to C:<HOMEPATH>\.espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin: true
Access to C:<HOMEPATH>\.espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin: true
Access to C:<HOMEPATH>\.espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin: true
Access to C:<HOMEPATH>\.espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: true
Access to C:<HOMEPATH>\.espressif\tools\cmake\3.24.0\bin: true
Access to C:<HOMEPATH>\.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin: true
Access to C:<HOMEPATH>\.espressif\tools\ninja\1.10.2: true
Access to C:<HOMEPATH>\.espressif\tools\idf-exe\1.0.3: true
Access to C:<HOMEPATH>\.espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64: true
Access to C:<HOMEPATH>\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64: 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:<HOMEPATH>\.espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\riscv32-esp-elf-gdb\11.2_20220823\riscv32-esp-elf-gdb\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\xtensa-esp32-elf\esp-2022r1-11.2.0\xtensa-esp32-elf\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\xtensa-esp32s2-elf\esp-2022r1-11.2.0\xtensa-esp32s2-elf\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\riscv32-esp-elf\esp-2022r1-11.2.0\riscv32-esp-elf\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\cmake\3.24.0\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin: false
Spaces in C:<HOMEPATH>\.espressif\tools\ninja\1.10.2: false
Spaces in C:<HOMEPATH>\.espressif\tools\idf-exe\1.0.3: false
Spaces in C:<HOMEPATH>\.espressif\tools\ccache\4.6.2\ccache-4.6.2-windows-x86_64: false
Spaces in C:<HOMEPATH>\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64: 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.1.windows.1
ESP-IDF version 5.0
Python version 3.8.7
Python's pip version 22.3.1
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
async-timeout version: 4.0.2
attrs version: 22.2.0
bitstring version: 3.1.9
bleak version: 0.19.5
bleak-winrt version: 1.2.0
CacheControl version: 0.12.11
certifi version: 2022.12.7
cffi version: 1.15.1
charset-normalizer version: 3.0.1
click version: 8.0.4
colorama version: 0.4.6
construct version: 2.10.68
contextlib2 version: 21.6.0
coverage version: 7.0.5
cryptography version: 36.0.2
debug-backend version: 1.0.0
ecdsa version: 0.18.0
esp-coredump version: 1.4.2
esptool version: 4.4
freertos-gdb version: 1.0.2
future version: 0.18.2
gcovr version: 5.2
idf_build_apps version: 0.3.0
idf-component-manager version: 1.2.1
idna version: 3.4
importlib-resources version: 5.10.2
Jinja2 version: 3.0.3
jsonschema version: 4.17.3
junit-xml version: 1.9
kconfiglib version: 14.1.0
lockfile version: 0.12.2
lxml version: 4.9.2
MarkupSafe version: 2.1.1
msgpack version: 1.0.4
netifaces version: 0.11.0
packaging version: 23.0
paho-mqtt version: 1.6.1
pexpect version: 4.8.0
pip version: 22.3.1
pkgutil_resolve_name version: 1.3.10
prettytable version: 3.6.0
protobuf version: 3.20.1
psutil version: 5.9.4
ptyprocess version: 0.7.0
pycparser version: 2.21
pyecharts version: 2.0.1
pyelftools version: 0.27
pygdbmi version: 0.9.0.2
Pygments version: 2.14.0
pyparsing version: 3.0.9
pyrsistent version: 0.19.3
pyserial version: 3.5
python-gitlab version: 3.12.0
pywin32 version: 305
PyYAML version: 6.0
reedsolo version: 1.5.4
requests version: 2.28.2
requests-file version: 1.5.1
requests-toolbelt version: 0.10.1
schema version: 0.7.5
setuptools version: 65.7.0
simplejson version: 3.18.1
SimpleWebSocketServer version: 0.1.2
six version: 1.16.0
tqdm version: 4.64.1
unittest-xml-reporting version: 3.2.0
urllib3 version: 1.26.14
wcwidth version: 0.2.5
websocket-client version: 1.4.2
wheel version: 0.36.2
windows-curses version: 2.3.1
xmlrunner version: 1.7.7
zipp version: 3.11.0
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Python requirements are satisfied.
---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
Check Extension 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": "C:\\Users\\cjone\\.espressif\\tools\\xtensa-esp32s3-elf\\esp-2022r1-11.2.0\\xtensa-esp32s3-elf\\bin\\xtensa-esp32s3-elf-gcc.exe",
            "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
}
 
--------------------------------------------------------------------------------------------------------------------------------------------

@chipweinberger
Copy link
Contributor

@brianignacio5
Copy link
Contributor

Have you check the log output, there seems to be an error in your application regarding uxTopUsedPriority ?

❌ Error: FreeRTOS: uxTopUsedPriority is not defined, consu[OpenOCD]
    lt the OpenOCD manual for a work-around!
    [Debug Adapter]
    Exception in thread Thread-1:
    Traceback (most recent call last):
      File "threading.py", line 932, in _bootstrap_inner
    Exception in thread Thread-2:
    Traceback (most recent call last):
      File "threading.py", line 932, in _bootstrap_inner
      File "threading.py", line 870, in run
      File "threading.py", line 870, in run
      File "subprocess.py", line 1366, in _readerthread
      File "subprocess.py", line 1366, in _readerthread

@ChrisJones79
Copy link
Author

Thank you Brian, there is a file you can include which defines that. Or, you can kconfig it out by making the debugger not thread aware, or similar. What would help would be a complete tasks.json and launch.json along with the correct driver to use for the two interfaces(JTAG serial) available from the USB port.

You have a working configuration you can share?

@ChrisJones79
Copy link
Author

look here:

https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/DEBUGGING.md

Thanks, can you tell me what the difference is between using the espidf debug settings and the C/C++ settings? In terms of what is available and how to interface with the program? Also, how can I get the svd info to get used? Shouldn't it show up in the ESP peripheral view?

@ChrisJones79
Copy link
Author

@brianignacio5 I think I may have other problems. When following the instructions for running GDB from the command line, this happened:

Microsoft Windows [Version 10.0.19045.2130]
(c) Microsoft Corporation. All rights reserved.

C:\Users\cjones\moreStaticVars>xtensa-esp32s3-elf-gdb -x gdbinit build/moreStaticVars.elf
GNU gdb (esp-gdb) 11.2_20220823
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=xtensa-esp-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/moreStaticVars.elf...
gdbinit:1: Error in sourced command file:
:3333: Connection timed out.
(gdb)

First thing I noticed was that the target was incorrect, and I also mis-interpreted the Error in sourced command file line. I thought at first it meant my code, i.e. what I was trying to debug. Now I think it means the gdbinit file (from the prompt) although I did copy without altering from the instructions I linked to the ESP webpage.

Anyhow, I ran the show configuration command to see this:

gdbinit:1: Error in sourced command file:
:3333: Connection timed out.
(gdb)
(gdb) show configuration
This GDB was configured as follows:
   configure --host=x86_64-w64-mingw32 --target=xtensa-esp-elf
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=//share/gdb (relocatable)
             --with-jit-reader-dir=//lib/gdb (relocatable)
             --without-libunwind-ia64
             --without-lzma
             --without-babeltrace
             --without-intel-pt
             --without-mpfr
             --without-xxhash
             --without-python
             --without-python-libdir
             --without-debuginfod
             --without-guile
             --disable-source-highlight
             --with-separate-debug-dir=//lib/debug (relocatable)

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)
(gdb) configure --target=xtensa-esp32s3-elf
Undefined command: "configure".  Try "help".

I tried changing the target but this is the first time I've used gdb so... Next I tried this:

(gdb) show auto-load
auto-load gdb-scripts:  Auto-loading of canned sequences of commands scripts is on.
auto-load local-gdbinit:  Auto-loading of .gdbinit script from current directory is on.
auto-load safe-path:  List of directories from which it is safe to auto-load files is $debugdir:$datadir/auto-load.
auto-load scripts-directory:  List of directories from which to load auto-loaded scripts is $debugdir:$datadir/auto-load.
(gdb) show data-directory
GDB's data directory is "c:\users\cjones\programs\espressif\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\share\gdb".

I found a different gdbinit file near there and tried using it:

C:\Users\cjones\moreStaticVars>xtensa-esp32s3-elf-gdb -x "C:\Users\cjones\Programs\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\share\gdb\gdbinit" build/moreStaticVars.elf
GNU gdb (esp-gdb) 11.2_20220823
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=xtensa-esp-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/moreStaticVars.elf...
C:\Users\cjones\Programs\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\share\gdb\gdbinit:6: Error in sourced command file:
Scripting in the "Python" language is not supported in this copy of GDB.
(gdb) quit

The target is still wrong and also it claims I can't use python with this copy of GDB (but there's tons of python ESP has written for just that...), so I thought maybe that xtensa-esp32s3-elf-gdb wasn't really what I thought it was, at the very least things are still broken, so I explicitly calling the dbg near where the newly used gdbinit was:

C:\Users\cjones\moreStaticVars>"C:\Users\cjones\Programs\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gdb.exe" -x "C:\Users\cjones\Programs\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\share\gdb\gdbinit" build/moreStaticVars.elf
C:\Users\cjones\Programs\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
GNU gdb (crosstool-NG esp-2022r1) 9.2.90.20200913-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-host_w64-mingw32 --target=xtensa-esp32s3-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/moreStaticVars.elf...
C:\Users\cjones\Programs\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\share\gdb\gdbinit:6: Error in sourced command file:
Scripting in the "Python" language is not supported in this copy of GDB.
(gdb) quit

The target is correct now, using the full path, and I can see that it's not even the same gdb now! Now it's GNU gdb (crosstool-NG esp-2022r1) 9.2.90.20200913-git where before it was GNU gdb (esp-gdb) 11.2_20220823

I feel like it's probably something obvious that experienced individuals such as yourself and @chipweinberger so please tell me if I'm wasting my time and hopefully what to do/where to go next.

Thanks

@ChrisJones79
Copy link
Author

I got something working for a brief moment but there was weird output form the openocd output. It said hola juan a bunch of times...

image

@ChrisJones79
Copy link
Author

ChrisJones79 commented Feb 2, 2023

@chipweinberger @brianignacio5 can either of you provide any further assistance?

Specifically, these things:

  1. Which debugger should I use for a devkitC esp32s3? (Like in the tasks/launch.json in vscode)
  • There are several that seem to be for the esp32s3
  • What about the ones that look to be python based? that have 3.6, 3.7, 3.8, etc as part of the name.
  1. Which drivers should I from Zadig?
  • There are two interfaces provided by the single USB port on the devkit
    • Drivers can be set somewhat independently for each.
  • I know we need one to be a serial device (with a COM port), which driver?
  • The other needs to be ...? WinUSB? libusb0? libusbK?
  • Does it matter if itf_0 is the serial and itf2 is the JTAG debugger? Does it have to be reversed?
  1. Is this easier in the Esp IDE? The eclipse-based one?

Thanks for the help you have already given.

@brianignacio5
Copy link
Contributor

When things are not working I suggest going to basics.

First make sure you can debug a very basic esp-idf example (such as the blink example). This can help you separate the hardware and extension configuration issues from software issues.

Second, I think using the esp32s3 builtin usb config from OpenOCD should work. You can try just starting the openOCD server and see if it works.

Third, you can use any debugger you prefer, the espidf should work. Maybe changing the logLevel to 4 in launch.json can give us a better detail about the error in the debug session.

About the drivers: Check the jtag configuration for esp32 s3.

About the hola Juan output, apologies, was a log left out on development. It is fixed in master release. You could try with this vsix installer

@ChrisJones79 ChrisJones79 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2023
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new Status: Selected for Development Issue is selected for development labels Feb 13, 2023
@ThomasDQS
Copy link

@ChrisJones79 did you manage to get rid of the uxTopUsedPriority error by including that file? I'm new to ESP32 & FreeRTOS, how exactly should I include this file in my project?
Thanks in advance!

@ChrisJones79
Copy link
Author

ChrisJones79 commented Apr 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants