How to connect and run a demo code in this also an error is occurred after the code has been successfully uploaded to the esp32
the error is-
Sketch uses 275881 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 21716 bytes (6%) of dynamic memory, leaving 305964 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM4
Connecting......................................
one more error take place either that is.
Waiting for gdb server to start...[2024-04-07T18:20:38.002Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\Users\jeswi\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\jeswi\Desktop\Mini Project\Demo" -f "C:/Program Files/Arduino IDE/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f debug.cfg
I moved your topic to a more appropriate forum category @jesu_juku.
The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Select Sketch > Upload from the Arduino IDE menus.
Watch the black output panel at the bottom of the Arduino IDE window until you see this text printed:
Connecting...
Press and hold the button on your ESP32 board. ⓘ if your board has multiple buttons, you might have to do some trial and error to determine which is the one you need to press.
Wait about one second.
Release the button.
The upload should now finish successfully.
I don't see any error there.
This output indicates you have clicked the "Start Debugging" button on the Arduino IDE toolbar. Did you intend to use Arduino IDE's integrated sketch debugger?
If not, then you should avoid clicking the "Start Debugging" button.
If you did intend to use the debugger, you should wait until after you have solved the uploading problem. Once that is solved, I can try to provide assistance with using the debugger.