Programming via ESP-PROG Tool

jimolson
Posts: 2
Joined: Thu Aug 17, 2023 1:27 pm

Programming via ESP-PROG Tool

Postby jimolson » Thu Aug 17, 2023 7:18 pm

My thanks for an extremely helpful users forum, and the completeness of Espressif's fine application tutorials.

However, the tutorial for the ESP-PROG programming/debug tool is ambiguous about one thing: if my target design monopolizes the ESP32's TXD0 and RXD0 pins, can I program the device using the processor's JTAG pins?

In other words, can I use the MTDI, MTDO, MTMS, and MTCLK pins to squirt code into an ESP32 processor? Or are these pins reserved for just debug tasks?

Thanks from Indianapolis US.

Jim Olson

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: Programming via ESP-PROG Tool

Postby ESP_Sprite » Fri Aug 18, 2023 4:06 am

Yes, you can. Note that if you're using any of the newer ESP32 chips (C3, C6, S3) you can also use the USB-serial-JTAG peripheral to do all that.

jimolson
Posts: 2
Joined: Thu Aug 17, 2023 1:27 pm

Re: Programming via ESP-PROG Tool

Postby jimolson » Fri Aug 18, 2023 10:51 am

So if downloading of firmware to an ESP32 can be accomplished through the JTAG pins, why does the ESP-PROG programmer/debugger have a standalone programming umbilical cord devoted to programming through the TxD0 and RxD0 pins?

Are you saying that another, non-ESP-PROG, non-Espressif tool plus driver program can use the JTAG pins for programming?

Maybe programming through the TxD0 and RxD0 pins is intended for legacy ESP32 family members?

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: Programming via ESP-PROG Tool

Postby ESP_Sprite » Sat Aug 19, 2023 12:28 pm

jimolson wrote:
Fri Aug 18, 2023 10:51 am
So if downloading of firmware to an ESP32 can be accomplished through the JTAG pins, why does the ESP-PROG programmer/debugger have a standalone programming umbilical cord devoted to programming through the TxD0 and RxD0 pins?
Because some people (most people?) prefer simple logging to help them in their programming rather than the full setup of a JTAG debugger. You only need the serial pins for that.
Are you saying that another, non-ESP-PROG, non-Espressif tool plus driver program can use the JTAG pins for programming?
More-or-less any JTAG adapter supported by OpenOCD can be used to debug/flash the ESP32.

Who is online

Users browsing this forum: No registered users and 123 guests