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

Questionable adapter speed values: esp_usb_jtag & esp_usb_bridge (OCD-633) #248

Open
brianredbeard opened this issue Sep 17, 2022 · 0 comments

Comments

@brianredbeard
Copy link

While documenting platformio/platform-espressif32#917 I noted a detail:

...
adapter speed: 40000 kHz
...

do they really expect me to believe this JTAG is going to operate at 40 MHz?

Checking out 7fbfdc8 and 0d16bff confirmed it.

As per "Optimize JTAG speed" in the API guide.

In order to achieve higher data rates and minimize number of dropped packets it is recommended to optimize setting of JTAG clock frequency, so it is at maximum and still provides stable operation of JTAG. To do so use the following tips.

The upper limit of JTAG clock frequency is 20 MHz if CPU runs at 80 MHz, or 26 MHz if CPU runs at 160 MHz or 240 MHz.

Depending on particular JTAG adapter and the length of connecting cables, you may need to reduce JTAG frequency below 20 / 26 MHz.

In particular reduce frequency, if you get DSR/DIR errors (and they do not relate to OpenOCD trying to read from a memory range without physical memory being present there).

ESP-WROVER-KIT operates stable at 20 / 26 MHz.

Can the discrepancy between the documentation, configuration, and any bugs/issues in this repo be re-aligned to an appropriate consensus?

@github-actions github-actions bot changed the title Questionable adapter speed values: esp_usb_jtag & esp_usb_bridge Questionable adapter speed values: esp_usb_jtag & esp_usb_bridge (OCD-633) Sep 17, 2022
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

1 participant