Failed to launch GDB: .pioinit:11: Error in sourced command file: Remote replied unexpectedly to 'vMustReplyEmpty': timeout


I am trying to get a JTAG working with my esp32 wroom 32 with a simple blink program, but i cannot get it to work without errors. Can somebody help me I tried searching on Google but no luck on how to solve my problem.

This is the error message:

This is my ini file:

platform = espressif32
board = upesy_wroom
framework = espidf
monitor_speed = 115200
debug_tool = esp-prog
upload_protocol = esp-prog
debug_init_break = tbreak setup
debug_port = COM7
upload_port = COM7

This is my code:

#include <driver/gpio.h>
// Include FreeRTOS for delay
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>

int app_main() {
    // Configure pin
    gpio_config_t io_conf;
    io_conf.intr_type = GPIO_INTR_DISABLE;
    io_conf.mode = GPIO_MODE_OUTPUT;
    io_conf.pin_bit_mask = (1ULL << GPIO_NUM_2);
    io_conf.pull_down_en = 0;
    io_conf.pull_up_en = 0;
    // Main loop
    while(true) {
        gpio_set_level(GPIO_NUM_2, 0);
        vTaskDelay(500 / portTICK_PERIOD_MS);
        gpio_set_level(GPIO_NUM_2, 1);
        vTaskDelay(500 / portTICK_PERIOD_MS);

I have installed Zidag and the needed drivers so that should not be the problem.

How did you connect your ESP-PROG JTAG debugger to your ESp32 board? Did you follow the wiring used in

Yes I did follow the guide