JTAG Debugger that fits most ESP32 Projects

STBESP32
Posts: 8
Joined: Mon Feb 12, 2018 4:03 pm

JTAG Debugger that fits most ESP32 Projects

Postby STBESP32 » Fri Mar 16, 2018 7:45 pm

Not really a ESP32 project but this helps to realize an ESP32 project.
This is why i want to share it with you.

I found a lot of JTAG debuggers that could be used with the ESP32. But most of them are out of stock or discontinued. Others too expensive. So i decided to make my own JTAG debugger. It is based on the FTDI FT2232H so it is USB Hi-Speed 488Mbis/s and Full Speed 12MBit/s compatible.

Important for me are the following features:
JTAG Interface: TDI, TDO, TMS, TCK, TRST, RST (ARM compatible connector because I'm also using STM32 µControllers)
UART Interface: TxD, RxD, RTS, CTS
Accepted JTAG voltage level range: 2.3 ... 3.6V (works 1.7 ... 5V)
Accepted UART voltage level range: same as JTAG interface.

Schematics:
http://www.rf-link.de/FTDI-H_JTAG.pdf

Image
Image

Most other Debuggers contain no UART interface or a standard RS-232 with +/- 15V levels which is useless for ESP32 applications
because the ESP32 has the same UART output levels as ist supply voltage. This is in the range of 2.2V...3.6V. That's what my debugger supports.

So it is possible to use the UART as printf UART for debug messages or listening to UART devices that are attached to the ESP32 like a GPS module.

I built 10 units, as i only need two I'll give away the other eight. If one is interested to have one please contact me.

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

Re: JTAG Debugger that fits most ESP32 Projects

Postby luisonoff » Tue Mar 20, 2018 12:52 pm

Hello,
Looks very interesting.

Do you know about the ESP-Prog??
https://github.com/espressif/esp-iot-so ... uide_en.md

What are the main differences? Or is your programmer the same?

STBESP32
Posts: 8
Joined: Mon Feb 12, 2018 4:03 pm

Re: JTAG Debugger that fits most ESP32 Projects

Postby STBESP32 » Wed Mar 21, 2018 7:22 pm

Hi!

To be honest the project you mentioned was unknown to me. In principal they are similar. Mine is using real level shifters. That means it works reliable over the full ESP32 supply voltage range. The other one is only 3.3V.

Mine is available, the other one is only a reference design.


Regards,

STBESP32

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

Re: JTAG Debugger that fits most ESP32 Projects

Postby luisonoff » Thu Mar 22, 2018 8:12 am

Thanks for your answer!
I would be interested in getting one of the spare ones you have, how much?

If I understood correctly, it supports USB/Serial programming + communication, and also JTAG debugging right? And both things can be connected at the same time?

At the link I posted earlier, please look at sections 3.2.3 and 3.2.4, do you have anything similar to those circuits?

Thank you!

Edit: is it necessary to upload any custom firmware to the FTDI? In order to make it work as JTAG?

STBESP32
Posts: 8
Joined: Mon Feb 12, 2018 4:03 pm

Re: JTAG Debugger that fits most ESP32 Projects

Postby STBESP32 » Sun Mar 25, 2018 7:13 pm

Hi !
If I understood correctly, it supports USB/Serial programming + communication, and also JTAG debugging right? And both things can be connected at the same time?
Yes, correct. You can use the serial connaection also not only for viewing printf outputs. You can use it also for sniffung e.g. a GPS module.
At the link I posted earlier, please look at sections 3.2.3 and 3.2.4, do you have anything similar to those circuits?
That is not included.
Edit: is it necessary to upload any custom firmware to the FTDI? In order to make it work as JTAG?
No it is not.
I would be interested in getting one of the spare ones you have, how much?
35EUR plus shipping. Where do you come from?

Regards,

STBESP32

meowsqueak
Posts: 151
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

Re: JTAG Debugger that fits most ESP32 Projects

Postby meowsqueak » Mon Mar 26, 2018 4:15 am

STBESP32 wrote:I found a lot of JTAG debuggers that could be used with the ESP32. But most of them are out of stock or discontinued. Others too expensive.
Cool project!

I'm curious though - what do you consider "too expensive"? I have a C232HM that works well with the ESP32, and they are US$26 (ex. shipping) each:

https://www.mouser.com/ProductDetail/FT ... hrMA%3D%3D

It is based on the FT232H device. I've used it for JTAG debugging and JTAG flash programming. You can't use the UART at the same time, but I have the USB serial console for that.

STBESP32
Posts: 8
Joined: Mon Feb 12, 2018 4:03 pm

Re: JTAG Debugger that fits most ESP32 Projects

Postby STBESP32 » Mon Mar 26, 2018 6:42 pm

I'm curious though - what do you consider "too expensive"? I have a C232HM that works well with the ESP32, and they are US$26 (ex. shipping) each
This cable has no level shifting but you are right in principle it works but not as reliable as a debug adapter with level shifting to the used ESP32 supply voltage. As I'm often work with low power/low voltage applications it was not the best fit for me.

User avatar
hassan789
Posts: 156
Joined: Thu Jun 29, 2017 2:15 am

Re: JTAG Debugger that fits most ESP32 Projects

Postby hassan789 » Mon Apr 23, 2018 10:46 pm

it would be sweet if you could support an ESP running at 1.8v, and I could use full JTAG and Console

STBESP32
Posts: 8
Joined: Mon Feb 12, 2018 4:03 pm

Re: JTAG Debugger that fits most ESP32 Projects

Postby STBESP32 » Wed May 02, 2018 8:04 am

The debugger is able to do that. The ESP32 not.

Kilill
Posts: 1
Joined: Fri Apr 12, 2019 2:17 pm

Re: JTAG Debugger that fits most ESP32 Projects

Postby Kilill » Fri Apr 12, 2019 2:25 pm

I assume that these are all gone by now ?

Who is online

Users browsing this forum: No registered users and 25 guests