Skip to content

Conversation

@trabucayre
Copy link
Owner

see #501

cc: @emard @edanuff

Ref: https://github.com/emard/esp32s3-jtag

Note: may requires a documentation page to explain howto prepare an ESP32.

emard and others added 2 commits April 18, 2025 07:32
- copy dirtyjtag to esp_usb_jtag, it compiles
- copy protocol definiton, defines and private data/struct from openocd esp_usb_jtag.c
- ulx3s_esp board with esp32s3 cable
- esp_usb_jtag specify usb vid:pid in jtag.cpp
- hardcode usb interface and endpoints
- getting caps
- set chip id (not applicable for fpga)
- tms write done, untested
- cleanup and toggle clk
- 32bit counting
- setting divisor (todo read base freq)
- div range within 1-255
- base speed from descriptor
- fix doc typo with swapped tms/tdi some cleanup but it doesn't work.
- esp_usb_jtag: added xfer method to handle/simplify libusb_bulk_transfer calls
- src/esp_usb_jtag.cpp: simplify some operations
- src/esp_usb_jtag.cpp: writeTDI: fixed rx buffer index, added a basic code to handle end transaction
- src/esp_usb_jtag.cpp: writeTMS: store and uses _tdi & _tms
- src/esp_usb_jtag.cpp: toggleClock: re-uses _tdi/_tms
- src/esp_usb_jtag.cpp: writeTDI: ditto
- esp_usb_jtag: fixed verbosity level/be more quiet
- esp_usb_jtag: fixed writeTDI with end and tms transition: now integrated instead of distinct sequence. Fixed TDI value with tms transition. Working with ECP5
- esp_usb_jtag: added optional parameter to lower timeout error (useful when it's time to flush the device)
- esp_usb_jtag: fixed writeTDI when tx is NULL
@emard
Copy link
Contributor

emard commented Apr 18, 2025 via email

@trabucayre
Copy link
Owner Author

@emard I have added a note in source code to point to your repository.

It's fine to you? Can I merge?

@emard
Copy link
Contributor

emard commented Apr 20, 2025 via email

@trabucayre trabucayre merged commit e9b8dc5 into master Apr 20, 2025
28 checks passed
@trabucayre
Copy link
Owner Author

Applied! thanks @emard and @edanuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants