PlatformIO Community

Failed to launch gdb .point 11 error in sourced command file


I was trying to debug the ESP32-S3-WROOM-1-N8 module with ESP-PROG using VScode by PlatformIO.

Same ESP-PROG is working fine with Node MCU ESP32 module. I am able to debug the sample blink code using VScode by PlatformIO. But same is not working with ESP32-S3-WROOM-1-N8 module.

I made following hardware wiring configuration for ESP32-S3-WROOM-1-N8 as per MTMS (35), MTCK(32), MTDO(33), MTDI(34), VCC(2), GND(40) with ESP-PROG.

could you please help me on this it will be really helpful to proceed further in my implementation

below I given the platformio.ini file configurations and Error msg which i’m getting in debug console


platform = espressif32

board = esp32-s3-devkitc-1

framework = arduino

upload_port = COM9

lib_deps = knolleary/PubSubClient@^2.8.0

monitor_speed = 115200

upload_protocol = esp-prog

debug_tool = esp-prog

debug_init_break = tbreak setup

debug_speed = 500

i m getting following error

undefinedC:\Users\DELL.platformio\packages\toolchain-xtensa-esp32s3\bin\xtensa-esp32s3-elf-gdb.exe: warning: Couldn’t determine a path for the index cache directory.
Reading symbols from d:\Yuvaraj\Git Repositary\Development\true_power_OnJuice_new\ONJUICE\version_1.1_combined\WiFI\esp32_serial_test.pio\build\esp32-s3-devkitc-1\firmware.elf…
PlatformIO Unified Debugger → Redirecting...
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target…
Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
adapter speed: 20000 kHz

DEPRECATED! use ‘adapter speed’ not ‘adapter_khz’
adapter speed: 500 kHz

Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 500 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway…
Error: esp32s3.cpu0: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unexpected OCD_ID = 00000000
Warn : target esp32s3.cpu0 examination failed
Error: Unexpected OCD_ID = 00000000
Warn : target esp32s3.cpu1 examination failed
Info : starting gdb server for esp32s3.cpu0 on pipe
Info : accepting ‘gdb’ connection from pipe
Error: Target not examined yet
Error executing event gdb-attach on target esp32s3.cpu0:

Warn : No symbols for FreeRTOS!
Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use ‘gdb_memory_map disable’.
Error: attempted ‘gdb’ connection rejected
Error: error during select: Unknown error
.pioinit:11: Error in sourced command file:
Remote communication error. Target disconnected.: Success.

Thanks in Advance.


Yuvaraj N