JTAG error

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

JTAG error

Postby roctwo » Tue Feb 28, 2017 12:26 am

I configure JTAG with openocd.I am using TIAO usb multi-protocol adapte.Error occur.
root@esp8266-VirtualBox:/mnt/Share/openocd-esp32# ./src/openocd -s ./tcl -f $IDF_PATH/docs/quantum.cfg
Open On-Chip Debugger 0.10.0-dev-g90071eb (2017-02-27-15:12)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 200 kHz
force hard breakpoints
Info : clock speed 200 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 : esp32.cpu0: Debug controller was reset (pwrstat=0xFF, after clear 0xFF).
Info : esp32.cpu0: Core was reset (pwrstat=0xFF, after clear 0xFF).
Info : esp32.cpu1: Debug controller was reset (pwrstat=0xFF, after clear 0xFF).
Info : esp32.cpu1: Core was reset (pwrstat=0xFF, after clear 0xFF).
The following is quantum.cfg
interface ftdi
ftdi_vid_pid 0x0403 0x8a98 0x0403 0x6010
ftdi_layout_init 0x0038 0x003b
transport select jtag
adapter_khz 200
source [find target/esp32.cfg]
esp108 flashbootstrap 3.3
I konw that engineers from espressif used TIAO usb multi-protocol adapte too.Can you give me some adive to sovle this problem?

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: JTAG error

Postby ESP_Sprite » Tue Feb 28, 2017 1:24 am

You typically get that error when your wiring between the adapter and your board is wrong in some way. You may want to check that.

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

Re: JTAG error

Postby roctwo » Tue Feb 28, 2017 2:50 am

ESP_Sprite wrote:You typically get that error when your wiring between the adapter and your board is wrong in some way. You may want to check that.
[wiring][E:\wiring.jpg]
My wiring is :
TCK ---> Quantum_IO13 (ESP32_MTCK_GPIO13)
TDI ---> Quantum_IO12 (ESP32_MTDI_GPIO12)
TDO ---> Quantum_IO15 (ESP32_MTDO_GPIO15)
TMS ---> Quantum_IO14 (ESP32_MTMS_GPIO14)
GND ---> ESP32_GND
ESP32-wroom-32 development borad powered by USB.And TIAO usb multi-protocol adapter board is powered by USB. I can't figure out any wrong with wiring.

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: JTAG error

Postby ESP_Sprite » Tue Feb 28, 2017 6:01 am

Can you see if the VTAR_PWR LED on the Tumpa lights up? If not, you either need to connect Vtar to the ESP32's 3.3V or change the VT_SEL jumper to the other position.

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

Re: JTAG error

Postby roctwo » Tue Feb 28, 2017 8:21 am

ESP_Sprite wrote:Can you see if the VTAR_PWR LED on the Tumpa lights up? If not, you either need to connect Vtar to the ESP32's 3.3V or change the VT_SEL jumper to the other position.
VTAR_PWR LED is bright.

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: JTAG error

Postby ESP_Sprite » Wed Mar 01, 2017 4:27 am

Then I don't see what has gone wrong... maybe put a scope on the signals, see if they're or not accidentally shorted or something... all I can say is that if your JTAG connection is OK, if your ESP32 has power and isn't held in reset, you should at all times see the two Tensilica core signatures; at the moment, you do not.

pokmo6
Posts: 5
Joined: Thu Jul 13, 2017 11:42 pm

Re: JTAG error

Postby pokmo6 » Tue Aug 01, 2017 1:24 am

roctwo wrote:
ESP_Sprite wrote:Can you see if the VTAR_PWR LED on the Tumpa lights up? If not, you either need to connect Vtar to the ESP32's 3.3V or change the VT_SEL jumper to the other position.
VTAR_PWR LED is bright.
Hi

I'm having exactly the same issue as you did. Did you manage to figure it out?

Cheers

Who is online

Users browsing this forum: ESP_ondrej and 140 guests