So the JTAG clock speed is changed by editing a file included with OpenOCD:
share/openocd/scripts/board/esp32-wrover.cfg
Open this file and look for this line:
adapter_khz 20000
For example, to change to 10MHz clock:
adapter_khz 10000
Save and close the file. Note that there is a different file if your board has the WROOM module:
esp-wroom-32.cfg
Now, trying again with the clock set to 5MHz, I had no better luck than before. In fact, there were even more strange errors.
Then, I removed the JTAG jumpers and tried using the FTDI cable, which works with a regular WROOM dev board.
This seemed to be even worse, and it did not appear to communicate with OpenOCD successfully.
Changing the clock frequency seemed to make things behave differently.
The FTDI cable with the WROOM dev board is solid. So for now, I am going to assume the WROVER kit board I have here has a problem.
I will be getting another one, so if that one works, that will be the conclusion.
Continuing on with the story of the FTDI cable, here is the manual:
[urlhttp://www.ftdichip.com/Support/Documents/Data ... _CABLE.PDF][/url]
This cable is available from Amazon (in the USA):
https://www.amazon.com/gp/product/B00HK ... UTF8&psc=1
You will need to connect ground and the 4 JTAG wires to your development board.
The connections are listed here:
http://esp-idf.readthedocs.io/en/latest ... -jtag.html
Here is the command to start the JTAG connection:
bin/openocd -s share/openocd/scripts -f interface/ftdi/um232h.cfg -f board/esp-wroom-32.cfg
The JTAG cable is using /dev/ttyUSB0. The board is connected to /dev/ttyUSB1 (change in menuconfig).
As noted above, I had to decrease the JTAG frequency in the file esp-wroom-32.cfg from 20000 to 10000.
Note that in this case the interface file is um233h.cfg. This is the configuration for the FTDI cable.
Regards,
Greg
JTAG Debug with WROVER-KIT Example not working
Return to “General Discussion”
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- ESP32-S31
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- ESP32-S31 中文讨论版
- 喵伴 中文讨论版
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Qwantbot and 0 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.
Information
Espressif ESP32 ... Available now!