Coder Social home page Coder Social logo

esp32-c3-usb_jtag_debug's Introduction

ESP32-C3-USB/JTAG_debug

setup and note

uninstall all libusb driver first !!!

if used USBTinyISP for AVR or similar, that was V-USB and libusb driver used, it has conflict against espressif USB/JTAG dirver (same libusb named)

download https://dl.espressif.com/dl/idf-env/idf-env.exe this github, https://github.com/espressif/idf-env this esp tutorial, https://docs.espressif.com/projects/esp-idf/en/v5.0/esp32c3/api-guides/jtag-debugging/configure-builtin-jtag.html#configure-usb-drivers

save idf-env.exe to, (mine is esp-idf-v4.3, perhaps the 5.0 or you have different installed version)

%userprofile%\Desktop\esp-idf-v4.3

open ESP-IDF command prompt, default open the folder mentioned above.
install this esp usb driver, total 4 differents chips, USB/JTAG by esp / FT232 like / CP2102 like / CH343 like

idf-env.exe driver install --espressif --ftdi --silabs --wch

output log like this,

C:\Users\user0\Desktop\esp-idf-v4.3>idf-env.exe driver install --espressif --ftdi --silabs --wch
Using cached directory: C:\Users\user0\.espressif/tools/idf-driver/silabs-2021-05-03
Ok
Using cached directory: C:\Users\user0\.espressif/tools/idf-driver/ftdi-2021-05-03
Ok
Using cached directory: C:\Users\user0\.espressif/tools/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15
Ok
Using cached directory: C:\Users\user0\.espressif/tools/idf-driver/whc-ch343ser-2022-08-02
Ok
Ok
Requesting elevation of privileges for: C:\Users\user0\.espressif\idf-env.exe driver install --espressif --ftdi --silabs --wch --no-download
Exit code: 0x2a
Ok

C:\Users\user0\Desktop\esp-idf-v4.3>

open 2 target folder,
copy howto_debug to the target folder
ocd.bat, open openocd with configure file, ensure provide target .elf
gdb.bat, invoke gnu-debugger

done,
howto_debug/esp32c3_openocd_gdb_debug.JPG

try Arduino IDE debugger, ok now, no more libusb warning but ceased somehow,
howto_debug/esp32c3_arduino_2.0.3_debug.JPG

similar finding, it is just not boot user application every time

similar finding, espressif/arduino-esp32#7295
still do not know why, howto_debug/esp32c3_arduino_2.0.3_debug_still_fail.JPG

esp32-c3-usb_jtag_debug's People

Contributors

xiaolaba avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.