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.
JTAG Hardware
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: JTAG Hardware
Do you happen to have or consider buying a WROVER development board - http://esp-idf.readthedocs.io/en/latest ... devkitj-v1 ?Can anyone recommend a good debugger, besides the two already mentioned?
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.
Re: JTAG Hardware
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
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
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: JTAG Hardware
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
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
Re: JTAG Hardware
Getting back to the original question...
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" ?krzychb wrote:Do you happen to have or consider buying a WROVER development board - http://esp-idf.readthedocs.io/en/latest ... devkitj-v1 ?Can anyone recommend a good debugger, besides the two already mentioned?
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Re: JTAG Hardware
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.
Its all I ever used so I can't give a personal opinion regarding other devices.
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: JTAG Hardware
No, see reply by @ESP_Sprite in viewtopic.php?t=547So - anyone who can answer the question "will any JTAG debugger that supports OpenOCD function with ESP32" ?
Re: JTAG Hardware
All right, thanks for the info.
Who is online
Users browsing this forum: yimeng and 77 guests