Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32S3 USB JTAG cable maybe possible #501

Open
emard opened this issue Dec 28, 2024 · 9 comments
Open

ESP32S3 USB JTAG cable maybe possible #501

emard opened this issue Dec 28, 2024 · 9 comments

Comments

@emard
Copy link
Contributor

emard commented Dec 28, 2024

Currently I'm experimenting to get ESP32S3 USB JTAG which is supposedly
able to route its native JTAG to external GPIO, if that is possible then we
can use it as "cable" to program FPGA.

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

Miniature ESP32S3 with USB-C are available for 7$ like
XIAO ESP32S3 MINI Mouser P/N: 713-113991114

So here is my wish/idea for openFPGALoader to support it if possible.

@emard
Copy link
Contributor Author

emard commented Jan 1, 2025

openocd driver esp_usb_jtag is fixed here's my source
https://github.com/emard/openocd/blob/master/src/jtag/drivers/esp_usb_jtag.c

with this esp jtag it is very fast, speed is comparable to ft2232.

So I tried to make openfpgaloader driver
https://github.com/emard/openFPGALoader/blob/master/src/esp_usb_jtag.cpp

but it doesn't work, esp protocol is simple but has details
which I don't understant so it's not so easy =>expert needed

@trabucayre
Copy link
Owner

I have ordered one waveshare boards based on the same devices: will try as soon as I have received samples.
Thanks to point this feature!

@emard
Copy link
Contributor Author

emard commented Jan 1, 2025 via email

@trabucayre
Copy link
Owner

I have received my board, I suppose firmware is correctly flashed. I observe issues for read command. Could you provides a dump to compare?

@emard
Copy link
Contributor Author

emard commented Jan 12, 2025 via email

@emard
Copy link
Contributor Author

emard commented Jan 12, 2025 via email

@emard
Copy link
Contributor Author

emard commented Jan 12, 2025 via email

@trabucayre
Copy link
Owner

Sorry for the delay to answer: no needs to prepare code/firmware. I'm now able to read IDCODE \o/.

I have to cleanup my local directly before pushing modifications in your branch. After that I see some improvements.

Thanks!

@emard
Copy link
Contributor Author

emard commented Jan 14, 2025 via email

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

No branches or pull requests

2 participants