ESP32 JTAG DEBUGGER
ESP-Prog is one of Espressif’s development and debugging tools, with functions including automatic firmware downloading, serial communication, and JTAG online debugging.
ESP-Prog's automatic firmware downloading and serial communication functions are supported on both the ESP8266 and ESP32 platforms,
while the JTAG online debugging is supported only on the ESP32 platform.
ESP-Prog can easily connect to a PC with the use of only one USB cable.
Then, the PC can identify the board's downloading and JTAG interfaces (functions) by their port numbers.
Given that the power supply voltage may vary on different user boards,
either of the ESP-Prog interfaces can provide the 5V or the 3.3V power supply through pin headers, in order to ensure power compatibility.
ESP-Prog can connect to ESP32 user boards, using both the Program interface and the JTAG interface.
Users should connect the user board interfaces in a way that corresponds to the ESP-Prog board.
The Program interface has six pins, including the UART interface (TXD, RXD), boot mode selection pin (ESPIO0) and reset pin (ESPEN).
The design for the Program interface on the user board should follow the reference provided in the figure below.
The design for the JTAG interface on the user board should follow the reference provided in the figure below.
Automatic Downloading Function
ESP-Prog supports automatic downloading. After connecting the Program interface of ESP-Prog to the user board,
the downloading program can download data or run programs automatically by controlling the states of the start-mode selection pin (ESPIO0) and reset pin (ESPEN),
which spares the users from manually restarting the device and selecting the downloading modes.
The two buttons on the ESP-Prog board enable users to reset and control the boot mode of the device manually.
The schematics of the automatic downloading circuit is displayed below.
The delay circuit of ESP-Prog includes the bus buffer, inverter, MOS tube, first-order RC circuit, and other components.
This delay circuit ensures that the ESP32 chip can power up or reset itself, before connecting with the JTAG signal, thus protecting the chip from the influence of JTAG on power-up or reset.
LED Status Indication
The red LED lights up when the system is connected to the 3.3V power;
The green LED lights up when ESP-Prog is downloading data to ESP32;
The blue LED lights up when ESP-Prog is receiving data from ESP32
Users can choose either the 3.3V or 5V power supply for the Program and JTAG interfaces, using the pin headers shown in the figure below.
Pin header to select power supply
The pin header in the middle is the power input pin for each interface. When this pin is connected to 5V, the power output of the interface is 5V. When this pin is connected to 3.3V, the power output of the interface is 3.3V.
IO0 On/Off Pin
Pin IO0 can be set to select ESP8266's and ESP32's boot modes.
This pin can be used as a common GPIO, after the chip is powered on. Users can then disconnect Pin IO0 manually to protect the operation of the user board from the influence of ESP-Prog's automatic downloading circuit.