Trying to degug with the esp-prog I just rcvd in the mail. Followed a number of setup tutorials primarily the one from brian lough, 5 hours passed and still no luck. Any pointers would be highly appreciated.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
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
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
embedded:startup.tcl:26: Error: Can't find board/esp32s2.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 26
.pioinit:11: Error in sourced command file:
Remote communication error. Target disconnected.: Success.
In frustration I tried another board (the one commented out above) and things were a little different
Warn : Bypassing JTAG setup events due to errors
Error: Unexpected OCD_ID = 00000000
Warn : target esp32s2 examination failed
Info : starting gdb server for esp32s2 on pipe
Info : accepting 'gdb' connection from pipe
Error: Target not examined yet
Error executing event gdb-attach on target esp32s2:
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
.pioinit:11: Error in sourced command file:
Remote communication error. Target disconnected.: Success.
This config file indeed doesn’t exist. There’s only boards/esp32s2-bridge.cfg, boards/esp32s2-kaluga-1.cfg and target/esp32.cfg. So that’s indeed a bug in the board definition, I’ve proposed a fix in this PR.
Max, thank you so much for your reply. I must say that I am new to platformio and hardware debugging, so my understanding and therfore ability to find solutions are somewhat limited. The ESP32 is connected via USB and powered via that port. The ESP-PROG is connected via USB.
The two boards are connected via jumper wires as follow
Apologies, It is an ESP32S2 not ESP32 . Specifically it is S2 mini — WEMOS documentation
I took a look at the link and that leaves me to believe then that it is not possible to debug using this board as the IO pins 41 and 42 are not exposed ?
Thank you, yes I thought of doing that.Not a chance as all I have is a pinecil and even with the smallest tip would butcher that !! I want to thank you again for providing the info about the io pins on the ESP32S2 being different than on the standard ESP32