JTAG with Wrover

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

JTAG with Wrover

Postby permal » Fri Feb 09, 2018 8:10 am

Hi,

Before I go and buy one of these Wrover kits to get a functional JTAG debugger could someone please answer the following questions?

1. Can this device debug external ESP32 devices, i.e. debug other devices than the ESP32 mounted on the board itself?
2. Is there a better alternative? I really only want the USB to JTAG part.
3. Where do you recommend to buy it? I tried with Mouser.se, but they can apparently not sell it to Sweden (despite being a Swedish company) due to US export restrictions(?!) Olimex also sells it https://www.olimex.com/Products/IoT/ESP32-WROVER-KIT/, not sure if they can sell to Sweden.

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: JTAG with Wrover

Postby Vader_Mester » Fri Feb 09, 2018 10:49 am

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

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

Re: JTAG with Wrover

Postby permal » Fri Feb 09, 2018 10:57 am

The problem with buying from China here in Sweden is that it takes months to get here, and there is an additional fee added, on top of VAT. That fee is about 50% of the cost of that particular item. :(

User avatar
luisonoff
Posts: 40
Joined: Fri Feb 09, 2018 12:20 pm

Re: JTAG with Wrover

Postby luisonoff » Fri Feb 09, 2018 12:30 pm

Recently Espressif released a reference design for a programmer board. Check this post: https://esp32.com/viewtopic.php?f=2&t=4310&p=19309

I think it is not sold anywhere yet, but should be available soon I guess. If I am not mistaken, this board could be used for UART programming as well as JTAG debug. Can somebody confirm this?

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: JTAG with Wrover

Postby loboris » Fri Feb 09, 2018 1:07 pm

I've bought one from China for 35 US$, it arrived to Croatia in less than 2 weeks, and I've paid no tax as the value was declared to be 20 €.
It is interesting how different the situation can be in Sweden!

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

Re: JTAG with Wrover

Postby permal » Fri Feb 09, 2018 2:32 pm

Yeah, it got bad just a few weeks ago when our Customs Service had enough. They didn't like all the parcels/packages being shipped from China without customs being paid. There were an exceptional increase in such packages due to Wish etc.

but getting back on topic - would love some answers to the questions :)

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

Re: JTAG with Wrover

Postby ESP_krzychb » Fri Feb 09, 2018 3:06 pm

permal wrote: 1. Can this device debug external ESP32 devices, i.e. debug other devices than the ESP32 mounted on the board itself?
There are all JTAG pins exposed on JP8 of ESP-WROVER-KIT and you should be able to connect and debug other ESP32 devices instead of on board ESP32. I did not try that because for the other devices I prefer the option below.
permal wrote: 2. Is there a better alternative? I really only want the USB to JTAG part.
If you like to debug other ESP32 devices then consider https://esp32.com/viewtopic.php?f=13&t=2525#p12056
permal wrote: 3. Where do you recommend to buy it? I tried with Mouser.se, but they can apparently not sell it to Sweden (despite being a Swedish company) due to US export restrictions(?!) Olimex also sells it https://www.olimex.com/Products/IoT/ESP32-WROVER-KIT/, not sure if they can sell to Sweden.
Basing on what I see on thery webpage, they can sell to Sweden.

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

Re: JTAG with Wrover

Postby permal » Fri Feb 09, 2018 6:22 pm

krzychb wrote: If you like to debug other ESP32 devices then consider https://esp32.com/viewtopic.php?f=13&t=2525#p12056
Hm, the ARM-USB-OCD-H ? I have one of those. I've spent hours trying to get it to work correctly/reliably. This was last summer, has anything significant happened in the debugging area since then?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: JTAG with Wrover

Postby WiFive » Fri Feb 09, 2018 7:34 pm

ARM-USB-OCD-H uses FT2232 and WROVER-KIT uses FT2232 so...

JeffWilliams
Posts: 17
Joined: Thu Mar 09, 2017 2:06 am

Re: JTAG with Wrover

Postby JeffWilliams » Sat Feb 10, 2018 3:47 pm

For JTAG debugging my ESP32's I bought a 'ft232h mini module' from digikey but mouser sells them too. (https://ca.mouser.com/ProductDetail/?qs ... 5ZjA%3D%3D) Gives you the same high speed ftdi chip that is on the WROVER-KIT (I didn't have one of those). I had a J-Link as well but it wasn't nearly as fast or easy to get working.

Actually, looking at the WROVER-KIT schematic (https://dl.espressif.com/dl/schematics/ ... _SCH-2.pdf) the FT232H pins for JTAG are exposed at the JTAG jumper block. If you power the WROVER-KIT and your other board using the same USB source and connect the JTAG pins from the JTAG jumper block to your 2nd ESP32 JTAG pins with jumper wires then your OpenOCD should connect to your other ESP32 for debuging

Jeff

Who is online

Users browsing this forum: Baidu [Spider] and 90 guests