Welcome, Guest

Author Topic: ESP32-EVB, how to connect JTAG Debugger  (Read 733 times)

Ruppie

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
ESP32-EVB, how to connect JTAG Debugger
« on: January 20, 2018, 05:07:34 AM »
I would like to ask how to connect an JTAG debugger ?
I can't find a header to connect a debugger.
Is it possible to konect an debugger to the board
If it is not possible on thos board Revision, please provide on on the next board review



Thanks in Advance

JohnS

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +33/-45
Re: ESP32-EVB, how to connect JTAG Debugger
« Reply #1 on: January 20, 2018, 02:28:43 PM »
Looks like you need to use the MTDI, MTDO, MTMS, MTCK signals but some are already used (see schematic).

If so, I think you'd have to disconnect them.

John

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1713
  • Karma: +43/-2
Re: ESP32-EVB, how to connect JTAG Debugger
« Reply #2 on: January 23, 2018, 09:12:52 AM »
For the hardware connection between the JTAG and the ESP32-EVB you can use wires and the extension header EXT1:

Pin #13 - GPIO12/IR_Transmit - MTDI = TDI

Pin #14 - GPIO13/I2C-SDA – MTCK = TCK

Pin #15 - GPIO14/HS2_CLK – MTMS = TMS

Pin #16 - GPIO15/HS2_CMD - MTDO = TDO

Pin #34 - GND

Refer to the schematic for better understanding. Since there is multiplexing with the SD card interface, make sure that any SD card is removed from ESP32-EVB. Once you identify the hardware points for the connection read here: http://esp-idf.readthedocs.io/en/latest/api-guides/jtag-debugging/#jtag-debugging-how-it-works

If you need a compatible OpenOCD debugger, consider our mature and well-known products – ARM-USB-TINY-H and ARM-USB-OCD-H.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

Ruppie

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: ESP32-EVB, how to connect JTAG Debugger
« Reply #3 on: January 24, 2018, 07:31:38 PM »
Hello,
i tried to use VISUALGDB for development and got an error message as shown below:
Can someone give an explanaiten what caused this error message and show me some hints to try fixing,please.

C:\SysGCC\esp32\esp32-bsp\OpenOCD\bin\openocd.exe -c "gdb_port 61847" -c "telnet_port 61848" -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f target/esp32.cfg -c "adapter_khz 3000" -c "echo VisualGDB_OpenOCD_Ready"
Open On-Chip Debugger 0.9.0 (2017-08-05)
Licensed under GNU GPL v2
For bug reports, read
 http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
force hard breakpoints
adapter speed: 3000 kHz
VisualGDB_OpenOCD_Ready
Error: no device found
Error: unable to open ftdi device with vid 15ba, pid 002a, description 'Olimex OpenOCD JTAG ARM-USB-TINY-H', serial '*' at bus location '*'


 What may cause this error:
What are correct settings of adapter within deice manager, wich driver to use, VisualGDB settings ?


LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1713
  • Karma: +43/-2
Re: ESP32-EVB, how to connect JTAG Debugger
« Reply #4 on: January 25, 2018, 08:35:37 AM »
Your drivers are improper, it seems. Use this VisualGDB tutorial as a basis (and the USBDriverTool that they mention): https://visualgdb.com/tutorials/esp8266/olimex/ - start from point 6.
Technical support and documentation manager at Olimex