Waiting for gdb server to start...[2024-05-06T13:10:15.763Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\Users\Asus\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.11.0-esp32-20221026/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\Users\Asus\Downloads\New folder (2)\code_main_esp32_v4_cnt" -f "C:/Users/Asus/AppData/Local/Programs/Arduino IDE/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f debug.cfg
Open On-Chip Debugger v0.11.0-esp32-20221026 (2022-10-26-14:48)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
CDRTOSConfigure
embedded:startup.tcl:28: Error: Can't find debug.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 28
[2024-05-06T13:10:17.008Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...
this apear when i start debugging, i dont know how why this happend and how to solve it.
i use ESP32 board to make some project
Hi @locaraaa. Which version of Arduino IDE are you using (e.g., "2.0.1")? The version is shown on the window title bar and also in the dialog that opens when you select Help > About (or Arduino IDE > About Arduino IDE for macOS users) from the Arduino IDE menus.
I ask for this information because I want to give you the appropriate instructions for the IDE version you are using.
im using Arduino IDE ver 2.3.2
It looks like you are using an outdated version of the "esp32" boards platform. Unless you have a specific reason for using that version of the platform, please use the Arduino IDE Boards Manager to update the platform to the latest version (2.0.16). You can follow the instructions here to do that:
https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide
After that, you will need to do a few more things:
- Select Tools > Programmer > Esptool from the Arduino IDE menus.
- Select the appropriate selection for the JTAG adapter you are using for debugging from the IDE's Tools > JTAG Adapter menu.
- Upload the sketch to the board as usual.
ⓘ You must do this even if the sketch is already running on the board because the program binary will be different after updating the platform.
Now try starting the debugger again. Hopefully this time it will start up and work as expected.
thanks @ptillisch i will try it
for jtag adapter i just have this 2 option
That is expected. This is how the "esp32" boards platform is configured. What are you using as your JTAG adapter?
sorry i dont know how to tell because im still new about this and I didn't make this tool, I just bought it