JTAG Problems
Posted: Tue Jun 06, 2017 12:39 pm
Hi all,
I'm trying to get JTAG programming up and running and having no success. The error appears to be "esp32.cpu1: target not halted".
The setup is:
- Espressif ESP32 Dev Kit C
- TIAO TUMPA JTAG Adapter (v2)
- VisualGDB v5.2r9 for programming / debugging
I have connected the following JTAG pins:
- JTAG TDI (5) -> GPIO12
- JTAG TCK (9) -> GPIO13
- JTAG TMS (7) -> GPIO14
- JTAG TDO (13) -> GPIO15
- JTAG GND (4) -> GND
Full OpenOCD output is:
Any suggestions?
I'm trying to get JTAG programming up and running and having no success. The error appears to be "esp32.cpu1: target not halted".
The setup is:
- Espressif ESP32 Dev Kit C
- TIAO TUMPA JTAG Adapter (v2)
- VisualGDB v5.2r9 for programming / debugging
I have connected the following JTAG pins:
- JTAG TDI (5) -> GPIO12
- JTAG TCK (9) -> GPIO13
- JTAG TMS (7) -> GPIO14
- JTAG TDO (13) -> GPIO15
- JTAG GND (4) -> GND
Full OpenOCD output is:
Code: Select all
Open On-Chip Debugger 0.9.0 (2017-05-09)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
Info : auto-selecting first available session transport "jtag". To override use 'transport select <tra
nsport>'.
adapter speed: 3000 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : clock speed 3000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0
x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0
x1)
Info : esp32.cpu0: Target halted, pc=0x40090DF8
Error: The 'mww' command must be used after 'init'.
in procedure 'init'
in procedure 'ocd_bouncer'
in procedure 'flash'
in procedure 'ocd_bouncer'
Info : accepting 'gdb' connection on tcp/3333
Interrupt suppression during single-stepping is now enabled
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0
x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0
x1)
Info : esp32.cpu0: Core was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32.cpu0: Target halted, pc=0x40000400
Warn : esp32.cpu1: target not halted
in procedure 'reset'
in procedure 'ocd_bouncer'
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 248
in procedure 'esp32.cpu0' called at file "embedded:startup.tcl", line 349
in procedure 'ocd_bouncer'
esp32.cpu0: target state: halted
Target did not halt within 5000 msec
Info : esp32.cpu0: Target halted, pc=0x40090DF8
esp32.cpu0: target state: halted
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0
x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0
x1)
Info : esp32.cpu0: Core was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32.cpu0: Target halted, pc=0x40000400
Warn : esp32.cpu1: target not halted
in procedure 'reset'
in procedure 'ocd_bouncer'
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 248
in procedure 'esp32.cpu0' called at file "embedded:startup.tcl", line 349
in procedure 'ocd_bouncer'
esp32.cpu0: target state: halted
Target did not halt within 5000 msec