ESP32-C3-DevkitM-1 and ESP-PROG and VSCODE on Windows and (ESP-IDF)


I am trying to debug ESP32-C3-DevkitM-1 board with ESP-PROG debugger.

I have the following message in the DEBUG CONSOLE

undefinedC:\Users\josem\.platformio\packages\toolchain-riscv32-esp\bin\riscv32-esp-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
Reading symbols from c:\Users\josem\espidf-Platformio-Projects\testProjet1\.pio\build\esp32-c3-devkitm-1\firmware.elf...
PlatformIO Unified Debugger ->
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
adapter speed: 20000 kHz

adapter speed: 5000 kHz

Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 5000 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: esp32c3.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Warn : target esp32c3 examination failed
Info : starting gdb server for esp32c3 on pipe
Info : accepting 'gdb' connection from pipe
Error: Target not examined yet
Error executing event gdb-attach on target esp32c3:

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
Error: Unsupported xlen: -1
Error: Unknown target arch!
Error: Unsupported DTM version: 15
.pioinit:11: Error in sourced command file:
Remote communication error.  Target disconnected.: Success.

my platformio.ini is described below

platform = espressif32
board = esp32-c3-devkitm-1
framework = espidf

upload_port = COM11
monitor_speed = 115200

debug_tool = esp-prog

debug_server =

debug_server = 

debug_init_break = tbreak app_main

ESP-PROG ESP32-C3-DevkitM-1
(Pin 2) ESP_TMS <---------> (Pin 11 right side) MTMS
(Pin 4) ESP_TCK <---------> (Pin 9 right side) MTCK
(Pin 6) ESP_TDO <---------> (Pin 8 right side) MTDO
(Pin 8) ESP_TDI <---------> (Pin 10 right side) MTDI

Does i am wrong connecting the JTAG in this form

I have inverted MTDI and MTDO and i have the same error message
ESP-PROG ESP32-C3-DevkitM-1
(Pin 2) ESP_TMS <---------> (Pin 11 right side) MTMS
(Pin 4) ESP_TCK <---------> (Pin 9 right side) MTCK
(Pin 6) ESP_TDO <---------> (Pin 10 right side) MTDI
(Pin 8) ESP_TDI <---------> (Pin 8 right side) MTDO

I think i have damaged either the ESP-PROG and the ESP32-C3-DevkitM-1
as in the schematic the ESP-PROG, ESP_TDO is an input and ESP_TDI is an output.

Could you help me please, should i need to buy a new pair of boards???

Thank you