So you’re not usuing PlatformIO for this?
No most time I use eclipse wich is suggested by espressif. But sometimes I think it’s buggy and I switch to platformio for little tests where I’m sure it’s not the settings or program wich is bad or corrupt. But platformio is sadly way to slow in compiling and debugging. Otherwise I would choose it as my main program interface.
But anyway I have the same problem with platformio. When I have a module out of the box and try to upload the blink example over jtag I get this:
Open On-Chip Debugger v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
adapter speed: 10000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 10000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : accepting 'gdb' connection from pipe
Error: No symbols for FreeRTOS
Error: Target not examined yet
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
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
.pioinit:11: Error in sourced command file:
Remote communication error. Target disconnected.: Success.
After uploading the blink example in the normal arduino ide outside of platformio with serial port it’s possible to upload and debug the code in platformio afterwards. This without touching a single wire.
Therefore I think the platformio.ini settings and the hardware setup are ok but it does not work with JTAG with new “empty” modules out of the box.
I use the esp-prog for debugging and upload my firmware.
The modules are these: ESP32-WROOM-32D (4MB)
Maybe you know a way to load the code directly with JTAG?