Wrover kit: problem running OpenOCD [solved]
Posted: Fri Feb 01, 2019 7:15 pm
Hello,
I’m working to setup jtag debugging capability on ESP Wrover Kit. I’m following Jtag debugging introduction guide
https://docs.espressif.com/projects/esp ... troduction
I get to the point were I try to run openOCD on command line, and run into the following error. Any help in detemining the cause of error is appreciated. See command line output below.
Thanks
Ed
~project/esp/openocd-esp32 $ bin/openocd -f share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg -f share/openocd/scripts/board/esp32-wrover.cfg
Open On-Chip Debugger 0.10.0-dev (2018-11-05-04:03)
Licensed under GNU GPL v2
For bug reports, read
http://openococd/doc/doxygen/bugs.html
none separate
adapter speed: 20000 Khz (I’ve tried slowing down to 20 Khz)
esp32 interrupt mask on
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 fails: all ones
Error Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain any way …
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn: Bypasing JTAG setup events due to errors
Some notes on Setup
a: ESP-IDF 3.1.2
b: ESP-WROVER_KIT_V4.1, with ESP32-WROVER module installed
c: I’ve tried running OpenOCD with three different application flashed (hello world, ble_ibeacon and gate_multi_connect). All three applications run, AND same errors when trying to run OpenOCD with them.
d: I have 4 jumpers on JP2 installed, to Enable JTAG functionality
e: $ I believe i have permission delegation setup correctly
~project/esp/openocd-esp32 $ ls -l /dev/ttyUSB*
crw-rw-r-- 1 root plugdev 188, 0 Feb 1 14:03 /dev/ttyUSB0
crw-rw-r-- 1 root plugdev 188, 1 Feb 1 14:03 /dev/ttyUSB1
I’m working to setup jtag debugging capability on ESP Wrover Kit. I’m following Jtag debugging introduction guide
https://docs.espressif.com/projects/esp ... troduction
I get to the point were I try to run openOCD on command line, and run into the following error. Any help in detemining the cause of error is appreciated. See command line output below.
Thanks
Ed
~project/esp/openocd-esp32 $ bin/openocd -f share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg -f share/openocd/scripts/board/esp32-wrover.cfg
Open On-Chip Debugger 0.10.0-dev (2018-11-05-04:03)
Licensed under GNU GPL v2
For bug reports, read
http://openococd/doc/doxygen/bugs.html
none separate
adapter speed: 20000 Khz (I’ve tried slowing down to 20 Khz)
esp32 interrupt mask on
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 fails: all ones
Error Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain any way …
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn: Bypasing JTAG setup events due to errors
Some notes on Setup
a: ESP-IDF 3.1.2
b: ESP-WROVER_KIT_V4.1, with ESP32-WROVER module installed
c: I’ve tried running OpenOCD with three different application flashed (hello world, ble_ibeacon and gate_multi_connect). All three applications run, AND same errors when trying to run OpenOCD with them.
d: I have 4 jumpers on JP2 installed, to Enable JTAG functionality
e: $ I believe i have permission delegation setup correctly
~project/esp/openocd-esp32 $ ls -l /dev/ttyUSB*
crw-rw-r-- 1 root plugdev 188, 0 Feb 1 14:03 /dev/ttyUSB0
crw-rw-r-- 1 root plugdev 188, 1 Feb 1 14:03 /dev/ttyUSB1