JTAG Hardware

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

JTAG Hardware

Postby permal » Thu Jun 15, 2017 6:58 pm

Hi,

I'm about to buy a JTAG debugger. The ESP32 docs says that Espressif have used the Flyswatter2 and TIAO-devices, but would any JTAG device supported by OpenOCD-esp32 work, i.e. any device listed on the page https://github.com/espressif/openocd-esp32 ?

Can anyone recommend a good debugger, besides the two already mentioned? If it can be bought from http://www.mouser.se, that's a plus as I'm buying a bunch of components from there at the moment.

User avatar
ESP_krzychb
Posts: 307
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: JTAG Hardware

Postby ESP_krzychb » Thu Jun 15, 2017 8:47 pm

Can anyone recommend a good debugger, besides the two already mentioned?
Do you happen to have or consider buying a WROVER development board - http://esp-idf.readthedocs.io/en/latest ... devkitj-v1 ?

WROVER has JTAG interface build in. It can operate at 20MHz clock that is difficult to achieve with an external adapter.

What I also like about it is that loading of application and JTAG debugging is done over a single USB cable.
This is thanks to FT2232H chip that has two USB channels, as loading of application directly with JTAG is not yet implemented.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: JTAG Hardware

Postby kolban » Thu Jun 15, 2017 11:20 pm

Mr @krzychb,
Do you happen to know of any recipes for using the WROVER DevKit JTAG support? I have a couple of WROVER devkits and do indeed see two USB ports on my Linux machine.

If the recipe is available, great and I'll eat it happily. If not, if you or someone else can assist me in understanding, I'll pay it back with a write up and/or video.

Neil
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
ESP_krzychb
Posts: 307
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: JTAG Hardware

Postby ESP_krzychb » Fri Jun 16, 2017 7:57 am

Howdy Mr @kolban,

Your ESP8266 and ESP32 books and videos are great!

JTAG support is being revised now, so the instructions - see https://github.com/espressif/openocd-es ... ore-target.

I have installed and using JTAG on WROVER following great tutorial by Matthias Jentsch under - https://www.matthias-jentsch.de/2017/02/16/ and Espressif's.

For using GDB I have followed another very good guide by Espressif's under http://espressif.com/sites/default/file ... p32_en.pdf

When using above resources I would watch for:
1. When installing OpenOCD, instead of "master" use "esp32_dualcore" branch under https://github.com/espressif/openocd-es ... 2_dualcore
2. For this specific branch follow instructions under https://github.com/espressif/openocd-es ... ore-target
3. Note that the OpenOCD's configuration file "esp32_dc.cfg" is already setup for WROVER / no need to change it.
4. Install five jumpers on WROVER's JP8 leaving empty first and last row.

The overview of steps to get you up and running on Linux is as follows:
1. Use standard ESP32 toolchain installation following - http://esp-idf.readthedocs.io/en/latest ... setup.html
2. Add "OpenOCD with libftdi" following https://www.matthias-jentsch.de/2017/02 ... d-openocd/
3. Start OpenOCD and GDB from command line according to https://github.com/espressif/openocd-es ... ore-target
4. If it works then you are set up to move to debugging with Eclipse using "GDB Hardware Debugging Plugin" - follow above wiki page and will provide more details if required.

Looking forward to your new videos and books. I will be happy to answer specific questions and share what I have discovered so far regarding JTAG support.


Krzysztof

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Re: JTAG Hardware

Postby permal » Fri Jun 16, 2017 9:08 am

Getting back to the original question...
krzychb wrote:
Can anyone recommend a good debugger, besides the two already mentioned?
Do you happen to have or consider buying a WROVER development board - http://esp-idf.readthedocs.io/en/latest ... devkitj-v1 ?
No, I have no intention on buying that kit, I'm basing my design around Sparkfun's ESP32-Thing. So - anyone who can answer the question "will any JTAG debugger that supports OpenOCD function with ESP32" ?

BuddyCasino
Posts: 262
Joined: Sun Jun 19, 2016 12:00 am

Re: JTAG Hardware

Postby BuddyCasino » Fri Jun 16, 2017 10:50 am

If you're looking for a good default choice on $something, Adafruit usually has you covered because they can test lots of options and know whats good. I followed their recommendation to get a Segger J-Link (https://www.adafruit.com/product/1369), and all I can say it works fine with the ESP32. OpenOCD has built-in support for it.

Its all I ever used so I can't give a personal opinion regarding other devices.

User avatar
ESP_krzychb
Posts: 307
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: JTAG Hardware

Postby ESP_krzychb » Fri Jun 16, 2017 11:00 am

So - anyone who can answer the question "will any JTAG debugger that supports OpenOCD function with ESP32" ?
No, see reply by @ESP_Sprite in viewtopic.php?t=547

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Re: JTAG Hardware

Postby permal » Fri Jun 16, 2017 11:54 am

All right, thanks for the info.

Who is online

Users browsing this forum: No registered users and 32 guests