Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Pages: 1 2 
Send Topic Print
ESP-WROVER-KIT and Debugging (Read 924 times)
ZenForAll
Junior Member
**
Offline



Posts: 33
Re: ESP-WROVER-KIT and Debugging
Reply #20 - Jul 30th, 2019 at 3:48pm
 
Hallo
that is what I use
https://docs.espressif.com/projects/esp-idf/en/latest/hw-reference/get-started-w
rover-kit.html

JTAG / JP2
.      ESP32 Pin      JTAG Signal
1      EN      TRST_N
2      MTMS / GPIO14      TMS
3      MTDO / GPIO15      TDO
4      MTDI / GPIO12      TDI
5      MTCK / GPIO13      TCK

A plain board.
Back to top
 
 
IP Logged
 
ZenForAll
Junior Member
**
Offline



Posts: 33
Re: ESP-WROVER-KIT and Debugging
Reply #21 - Jul 30th, 2019 at 4:01pm
 
Check out the picture so you can see the jumpers on the board
Back to top
 

wover-kit.jpg (142 KB | 2 )
wover-kit.jpg
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 40
Re: ESP-WROVER-KIT and Debugging
Reply #22 - Jul 31st, 2019 at 10:24am
 
Thanks for the image, and the only difference to the Espressif Setup docs I can see is the EN jumper being connected, though believe this is OK as still part of the JTAG link to the debugger (so expect it makes no difference)

When I have our Wrover module out of another project Ill double check all of this through and update with any other information.
Back to top
 
 
IP Logged
 
ZenForAll
Junior Member
**
Offline



Posts: 33
Re: ESP-WROVER-KIT and Debugging
Reply #23 - Aug 1st, 2019 at 7:40am
 
Oh thank you I tried it with and without the EN Jumper
When do you think we can Progress
Have a wonderful sunny Sommerday Cool
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 40
Re: ESP-WROVER-KIT and Debugging
Reply #24 - Aug 1st, 2019 at 2:05pm
 
There are some minor amendments to the board config to make within vMicro, however it should have worked more than it has at present.

If you just run the command line below, it should show JTAG setting up OK:
e.g "Info : JTAG tap: esp32.cpu0 tap/device found:"

Code:
"C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" -d2 -s "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/" -f "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg" -c "set ESP32_RTOS none" -f "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/board/esp32-wrover.cfg" -c "init" 



If this shows (as before) "JTAG scan chain failed", can you confirm you can upload using normal Serial?  And that all Jumpers are in place fully?

I get the JTAG error when I have missed a jumper off the board...

This software is common to both the debug and upload with programmer, and if this doesn't work it is outside vMicro, as the above is what Espressif detail on their pages:

https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/
index.html#run-openocd
Back to top
 
 
IP Logged
 
ZenForAll
Junior Member
**
Offline



Posts: 33
Re: ESP-WROVER-KIT and Debugging
Reply #25 - Aug 2nd, 2019 at 4:08pm
 
Thank you Simon, I get this but only if I to this the first time and without External Power
I'm on the move to Majorca, so all my other stuff is already in Boxes, I will figure where I have my other 2 ESP-WROVER-KIT boars and will tell you what Results I get, Have a wonderful Sommer WEEKend
Tinkerer Martin Michael

Code:
C:\WINDOWS\system32>
C:\WINDOWS\system32>"C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin/openocd.exe" -d2 -s "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/" -f "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/interface/ftdi/esp32_devkitj_v1.cfg" -c "set ESP32_RTOS none" -f "C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1/share/openocd/scripts/board/esp32-wrover.cfg" -c "init"
Open On-Chip Debugger  v0.10.0-esp32-20190313 (2019-03-13-09:57)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
none separate
none
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Listening on port 3333 for gdb connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Detected debug stubs @ 3ffc241c on core0 of target 'esp32'
Info : xtensa_poll: Target offline
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 700ms
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 1500ms
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 3100ms
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms
Error: xtensa_poll: Target failure
Polling target esp32 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms
shutdown command invoked
Info : Restore debug stubs @ 3ffc241c on core0 of target 'esp32'
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()



 

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: ESP-WROVER-KIT and Debugging
Reply #26 - Aug 3rd, 2019 at 10:49am
 
I think that's what Simon was hoping to see. He posted an update last week for the wrover but it was no use until we got the power issue resolve.

Please update to the "work in progress" release from the releases section of this forum, see link below (1907.31+). It's not in the gallery yet.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
Back to top
« Last Edit: Aug 3rd, 2019 at 11:03am by Visual Micro »  
WWW  
IP Logged
 
ZenForAll
Junior Member
**
Offline



Posts: 33
Re: ESP-WROVER-KIT and Debugging
Reply #27 - Aug 20th, 2019 at 12:54pm
 
I have Version 4.1 And what should I do wrong I just can put the Jumper  on the right spot.
Wait I'm moving 11.9 to Majorca and then I have 2 new Wrover Board available. The we can go on. THX for helping me
Back to top
 
 
IP Logged
 
ZenForAll
Junior Member
**
Offline



Posts: 33
Re: ESP-WROVER-KIT and Debugging
Reply #28 - Aug 20th, 2019 at 12:54pm
 
I have Version 4.1 And what should I do wrong I just can put the Jumper  on the right spot.
Wait I'm moving 11.9 to Majorca and then I have 2 new Wrover Board available. The we can go on. THX for helping me
Back to top
 
 
IP Logged
 
Pages: 1 2 
Send Topic Print