ESP32 Troubleshoot

Hello all I'm quite new to iOT things. Currently I'm having an issue with my esp32 project which is to detect the speed of vehicle using IR sensor. I would be happy is someone can show me step by step.

After try to debug the code on Arduino IDE, it says: OpenOCD: GDB Server Quit Unexpectedly. See gdb-server output for more details.

This is the full output for GDB server:

Waiting for gdb server to start...[2023-10-27T03:23:14.940Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\Users\isyra\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\isyra\OneDrive\Documents\Arduino\sketch_oct23a\Newsketch" -f "C:/Users/isyra/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
Info : only one transport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
Info : esp_usb_jtag: capabilities descriptor set to 0x30a
Info : esp_usb_jtag: target chip id set to 1
Warn : Transport "jtag" was already selected
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: esp_usb_jtag: could not find or open device!

[2023-10-27T03:23:15.819Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

hi @touaii

Are you familiar with what debugging a microcontroller entails?
Do you know GDB and OpenOCD?

From your post I think you erroneously believe that the debug will help you find bugs in your program, but it is instead a process of knowing the hardware you have attached to your machine, how to step through code etc.

Your issue might actually be of different sort.
If you confirm that you understand how to debug a microcontroller firmware then maybe I know which questions to ask.

Moreover, this forum section is for Arduino Nano ESP32.
Is this the board in your possession?

Looking forward to more input

regards
ubi

Hello I have the same problem and the same message with the arduino esp32 nano I followed the procedure on the arduino website and when I want to test the example "BLINK" I have the same m
essage that appears what can I do to make the debug function work with my arduino nano esp32?

You can start by reading the debugging guide... :wink:
Let us know if this helps!

3 posts were split to a new topic: Starting debugger fails: "LIBUSB_ERROR_NOT_SUPPORTED"