ESP32-D2WD Based Custom board JTAG Flash issue.

MANGUKIA
Posts: 24
Joined: Thu Apr 12, 2018 4:21 am
Location: Surat
Contact:

ESP32-D2WD Based Custom board JTAG Flash issue.

Postby MANGUKIA » Mon Nov 02, 2020 9:55 am

Hello,

I develop ESP32-D2WD based Custom board (Please find below attachment image of Schematic connection) and use ESP-Prog JTAG Flasher.

I am not familiar with ESP-IDF and OpenOCD Command but I setup all things and try to catch ESP32-D2WD using ESP-Prog and JTAG based programming line.

When I run
openocd -f board/esp32-wrover-kit-3.3v.cfg
command we got an error and which is show something look like the below image of 002.

I don't get what is exactly the issue is that hardware issue or Its something wrong over command because we use ESP32-D2WD custom board and use the wrover-kit-3.3 command line for check hardware.

I use 40MHz 10pF Crystal instead of 22pF as well as use 100nF instead of 1nF over CAP1 and CAP2 pin.

So what is exactly the issue I don't know I am not able to access ESP32-D2WD over the OpenOCD Command line?

Can you check the connection or something OpenOCD ESP-IDF issue???

Thanks,
Have a good day,
AB.
Attachments
002.PNG
Schematic Connection.
002.PNG (458.59 KiB) Viewed 7566 times
001.PNG
OpenOCD Command-Line result error.
001.PNG (31.17 KiB) Viewed 7566 times

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby ESP_Sprite » Tue Nov 03, 2020 2:25 am

If anything, you don't seem to properly reset the chip using CHIP_PU. That pin needs at the very least a RC circuit to pull it down while the power supply is ramping up; see the ESP32 datasheet for more info.

MANGUKIA
Posts: 24
Joined: Thu Apr 12, 2018 4:21 am
Location: Surat
Contact:

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby MANGUKIA » Tue Nov 03, 2020 8:13 am

Hey,

As I add 0.1uF decoupling capacitor over CHIP_EN pin and Run OpenOCD command I got results like the below attachment image.

As I see it's some AMD chip found but not able to access exactly Part or IC so can you suggest to me what is an issue or how can solve and access ESP32-D2WD?

I want to confirm is that Successfully chip access or still something wrong, because I think need to add some driver LibUSB over ESP32-D2WD fresh chip, maybe I don't know about this also my confusion is I think Instead of JTAG its use USB flash I am not sure about this so can you suggest it's still something wrong.

Thanks.
Attachments
001.PNG
OpenOCD Command Result.
001.PNG (89.35 KiB) Viewed 7488 times

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby ESP_Roland » Tue Nov 03, 2020 11:31 am

MANGUKIA, have you installed the correct USB drivers?

Here is how to do it in case you don't have it:
https://docs.espressif.com/projects/esp ... ig#windows

MANGUKIA
Posts: 24
Joined: Thu Apr 12, 2018 4:21 am
Location: Surat
Contact:

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby MANGUKIA » Tue Nov 03, 2020 3:36 pm

Hey,

I already follow this driver Update step and as I check over the device manager its looks like ok Device driver looks good.

For confirmation attach an image of the device manager.

I am not able to access chip ID based on OCD command some AMD chip is detected successfully but does not able to identify ARM chip is ESP32-D2WD or which one ARM chip is that because I am not getting device ID as well.

Anyone can suggest to me how can I solve that issue its Hardware issue???

Best Regards,
Have a good day,
Thanks(AB).
Attachments
002.PNG
Driver Device Manager
002.PNG (210.7 KiB) Viewed 7466 times
001.PNG
OCD Command Window
001.PNG (89.35 KiB) Viewed 7466 times

Scott.Bonomi
Posts: 73
Joined: Mon Mar 09, 2020 7:36 pm

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby Scott.Bonomi » Tue Nov 03, 2020 7:04 pm

I had issues understanding the basic openocd output also.

I will suggest that you use "-d3" to turn on more debugging log entries.
For my system I also add " -l ./MyLogFileName.log" to the command line so I get the output in a form I can loot at it later.

MANGUKIA
Posts: 24
Joined: Thu Apr 12, 2018 4:21 am
Location: Surat
Contact:

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby MANGUKIA » Wed Nov 04, 2020 4:26 am

Hey,

You can find the log file below based on -d3 command.

Please check the output.

Thanks.
Attachments
ESP32Log.log
Log File
(38.38 KiB) Downloaded 486 times

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby ESP_Sprite » Wed Nov 04, 2020 6:50 am

Looks like your JTAG communication gets corrupted, in my opionion. You could try editing the configuration file you feed OpenOCD and reducing the 'adapter_khz' line to a lower value.

Scott.Bonomi
Posts: 73
Joined: Mon Mar 09, 2020 7:36 pm

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby Scott.Bonomi » Wed Nov 04, 2020 8:33 pm

Your openOCD is bit behind, you seem to be using November 2019
C:\Users\eralp\.espressif\tools\openocd-esp32\v0.10.0-esp32-20191114\openocd-esp32\share\openocd
and I was not successful until I upgraded to July 2020
C:\Users\sbonomi\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\share\openocd

Further you have an issue with communication frequency. You are setting to 20 MHz and apparently finding hardware at 15 MHz. I suggest dropping down to maybe 5MHz or lower until you have a bit more success.

Is it possible that you have script files from different versions of openocd? There appears to be a mismatch in target name between esp32 and ocd_esp32.

In my case I am using a J-Link rather than a FTDI box so I do not have an exact match to your log. I expect your issue has a lot to do with a clocking mismatch.

MANGUKIA
Posts: 24
Joined: Thu Apr 12, 2018 4:21 am
Location: Surat
Contact:

Re: ESP32-D2WD Based Custom board JTAG Flash issue.

Postby MANGUKIA » Thu Nov 05, 2020 4:24 pm

Hey,

I already Change adapter_khz Frequency lower value as well as done all process which is suggested but still, I am not getting success.

Can anyone confirm is that hardware issue or some issue with setup OpenOCD tool.

We use ESP32-D2WD IC and use openocd -f board/esp32-wrover-kit-3.3v.cfg command which is esp32-wroover-kit command.

Best Regards,
Have a good day,
AB.

Who is online

Users browsing this forum: No registered users and 60 guests