---
# System prepended metadata

title: ESP32 Debugger

---

# ESP32 Debugger

## ESP-Prog
![](https://i.imgur.com/1VOF96N.png)
### 使用Zadig刷Driver
![](https://i.imgur.com/wLZrcJ2.png)

* In the Options menu, check List All Devices
* Select Dual RS232-HS (Interface 0) from the main drop down
* Click Replace Driver
* 等待燒錄成功。

### platformio.ini設定
```clike=
debug_tool = esp-prog
debug_init_break = tbreak setup
//上傳時指定走jtag，不走uart
upload_protocol = esp-prog
```
### 硬體接線
![](https://i.imgur.com/HUmY0n3.jpg)


## FT2232HL Board
![](https://i.imgur.com/yCHg6aX.png)

### 硬體接線
The JTAG port is on the pins AD0 to AD3. So connect them to the ESP32 board like so:
* GPIO12 — AD1 (TDI)
* GPIO15 — AD2 (TDO)
* GPIO13 — AD0 (TCK)
* GPIO14 — AD3 (TMS)
* GND — GND

其他使用方式同ESP-Prog

### interface1的uart
BO0 - TX
BO1 - RX


## 以上內容參閱
> [Low-cost ESP32 In-circuit Debugging](https://medium.com/@manuel.bl/low-cost-esp32-in-circuit-debugging-dbbee39e508b)