https://github.com/espressif/esp-usb-bridge

1.Clone

1
git clone --depth 1 https://github.com/espressif/esp-usb-bridge.git

2.VSCode

Ctrl + Shift + P ESP-IDF: Open ESP-IDF Terminal

  1. Config
1
idf.py menuconfig

down: J up:K

settings are in the “Bridge Configuration” sub-menu, swap TDO/TDI target pin num.

  1. Build
1
idf.py build
  1. Flash
1
idf.py -p PORT flash monitor

PORT is the serial port created by an USB-to-UART chip

Tips: set boot load mode

Step

  1. Reboot

3.Install Driver

Windows Device manager

device manager 0

install driver

UsbDriverTool

install driver.png

install success

device manager 1

4.Connect Target

  1. connect target mcu

concept

  1. set target mcu download mode

target mcu download mode

  1. OpenOCD connect ESP32-WROVER-E

Ctrl + Shift + P ESP-IDF: Open ESP-IDF Terminal

1
openocd.exe -f interface/esp_usb_bridge.cfg -f target/esp32.cfg

connect esp32 wrover

  1. use jtag flash

use jtag flash

  1. use serial

    • Select Port (COMx)

    • ESP-IDF Monitor device

    • reboot target mcu

serial test