[SOLVED] ESP_PROG not connecting with esp32-s2-saola-1 board with jtag
Posted: Sun Oct 23, 2022 7:34 pm
Every time I connect esp_prog jtag with esp32-s2-wrover based board esp32-s2-soala-1, I get the following error.
I searched forum and found that some pins connection is loose or missing. But I have checked connection multiple time. I always get the same error. Also tested if the connection is proper with multimeter.
My connection are
3.3V - 3.3V
GND - GND
ESP_TMS - GPIO42
ESP_TDI - GPIO41
ESP_TDO - GPIO40
ESP_TCK - GPIO39
esp32-s2 board is getting power and blink program is running. I am able to flash using usb serial.
But jtag esp_prog does not work.
I am attaching the images to show connections.
Is there any way to check if the esp_prog is faulty ?
Please help me to connect jtag with this board. I have spend a lot of time and could not find anything useful on google.
Code: Select all
Open On-Chip Debugger v0.11.0-esp32-20220411 (2022-04-11-08:47)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
Flashing /home/educate/DATA/ECLIPSE_WORKSPACE/blink/build/bootloader/bootloader.bin at 0x1000
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 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: esp32s2.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : target esp32s2 examination failed
Info : starting gdb server for esp32s2 on 3333
Info : Listening on port 3333 for gdb connections
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: esp32s2.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : esp32s2: Debug controller was reset.
Info : esp32s2: Core was reset.
Error: esp32s2_soc_reset: Couldn't halt target before SoC reset
** Flashing Failed **
-1
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
Error: Target not examined yet
Error executing event gdb-attach on target esp32s2:
embedded:startup.tcl:1162: Error:
in procedure 'program_esp' called at file "/home/educate/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 220
in procedure 'program_error' called at file "/home/educate/.espressif/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 93
at file "embedded:startup.tcl", line 1162
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
shutdown command invoked
My connection are
3.3V - 3.3V
GND - GND
ESP_TMS - GPIO42
ESP_TDI - GPIO41
ESP_TDO - GPIO40
ESP_TCK - GPIO39
esp32-s2 board is getting power and blink program is running. I am able to flash using usb serial.
But jtag esp_prog does not work.
I am attaching the images to show connections.
Is there any way to check if the esp_prog is faulty ?
Please help me to connect jtag with this board. I have spend a lot of time and could not find anything useful on google.