Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Need help with visual micro and esp-prog (Read 2732 times)
KN
Newbies
*
Offline


Posts: 6
Joined: May 27th, 2021
Need help with visual micro and esp-prog
May 27th, 2021 at 10:26am
Print Post  
Dear all, 
I’m a new user for visual micro and very pleased with the tool. In fact, few weeks ago I’ve learned about visual micro from a video of Andreas Spiess. This video convinced me to use it. This week I was so excited when I received my esp-32, my esp-prog and my 1-year license of visual micro  Cheesy. Unfortunately, this didn’t last long as I stumbled to my first bug   Huh. In fact, when I tried to used esp-prog I was greeted with this bug that I did manage to solve . The program is uploading correctly through serial port. However, it seems that the bug occurs when visual micro tried to start the debugger (see enclosed screenshot). Could you please help me to solve this issue? 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2143
Joined: Feb 13th, 2019
Re: Need help with visual micro and esp-prog
Reply #1 - May 27th, 2021 at 10:34am
Print Post  
Thanks for the report, and glad you are enjoying the tool so far.

Can you confirm all connections are made between the ESP32 and the ESP-PROG?
https://www.visualmicro.com/page/ESP32-Debugging.aspx

So we can understand your environment fully, please enable the below options:
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties
  • vMicro > Upload > Verbose


Then perform a Build and Upload, then the Debug > Attach to Process
Please attach as txt files:
  • Output Window > Micro Build
  • Output Window > Debug

  
Back to top
 
IP Logged
 
KN
Newbies
*
Offline


Posts: 6
Joined: May 27th, 2021
Re: Need help with visual micro and esp-prog
Reply #2 - May 27th, 2021 at 10:58am
Print Post  
Hello Simon, 

Thanks for your prompt answer.

I confirm that the connection are done in the right way. For your information, I'am using only the JTAG interface on the esp-prog and upload the code via the serial interface of the esp-dev module.

When I do a  Build and Upload, the visual micro starts compiling uploading the code to the board and then tries to connect to the debugger (see enclosed screenshot). After a while, the same error (unable to start debugging...) appears. 

I get the same error when I try Debug > Attach to Process
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2143
Joined: Feb 13th, 2019
Re: Need help with visual micro and esp-prog
Reply #3 - May 27th, 2021 at 11:04am
Print Post  
Thanks for the information.

Please check the settings, and attach the logs from the output window as requested so we can assist further.

The error message can be caused for a variety of reasons so the logs will help us to identify the issue.
  
Back to top
 
IP Logged
 
KN
Newbies
*
Offline


Posts: 6
Joined: May 27th, 2021
Re: Need help with visual micro and esp-prog
Reply #4 - May 27th, 2021 at 11:34am
Print Post  
Unfortunately, the build log is completely wiped out when the debugging error appear. This does not give me the time to copy paste what happen. Enclosed a file with what I managed to cope from the logs

Thanks for your support 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2143
Joined: Feb 13th, 2019
Re: Need help with visual micro and esp-prog
Reply #5 - May 27th, 2021 at 11:49am
Print Post  
Thanks for the log, however the settings have not been enabled as requested.

The output window may change views as the debugging starts, this can be changed back using the listbox at the top of the Output Window.
  
Back to top
 
IP Logged
 
KN
Newbies
*
Offline


Posts: 6
Joined: May 27th, 2021
Re: Need help with visual micro and esp-prog
Reply #6 - May 27th, 2021 at 11:58am
Print Post  
Sorry, the tool is a bit new to me. Sometimes, it is a bit hard to find my way  Smiley.

Here is the log of the of Build and Upload.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2143
Joined: Feb 13th, 2019
Re: Need help with visual micro and esp-prog
Reply #7 - May 27th, 2021 at 12:09pm
Print Post  
No problem, and thanks for the updated log.

This all looks correct, there is a further log created as below, would it also be possible to attach this file as well?
Code
Select All
ebug\DieselInjectorTestBench.ino_DebugOpenOCD.log 

  
Back to top
 
IP Logged
 
KN
Newbies
*
Offline


Posts: 6
Joined: May 27th, 2021
Re: Need help with visual micro and esp-prog
Reply #8 - May 27th, 2021 at 12:13pm
Print Post  
Of course, here is the requested log file.
FYI, I changed the file extension to txt so that I can upload it.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2143
Joined: Feb 13th, 2019
Re: Need help with visual micro and esp-prog
Reply #9 - May 27th, 2021 at 12:21pm
Print Post  
Perfect, thanks.

The error below suggests there is a wiring connection issue between the ESPPROG and the ESP32:
Code
Select All
Info : clock speed 2000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x00 not 0x01 



As you are powering both ESP32 and ESPPROG via their own USB Connections, removing the 3V3 Connection may help.  Also try removing both USB connections and repowering the setup before re-attaching.

Can you also confirm that you are not using any of the pins 12,13,14,15 in your code anywhere (including with SD/SPI etc.. interfaces) ?
« Last Edit: May 27th, 2021 at 12:22pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
KN
Newbies
*
Offline


Posts: 6
Joined: May 27th, 2021
Re: Need help with visual micro and esp-prog
Reply #10 - May 27th, 2021 at 3:51pm
Print Post  
Hello Simon, 

thanks again for your support. It worked when removed the 3V3 then repowering the setup before re-attaching as you suggested.

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


Posts: 2143
Joined: Feb 13th, 2019
Re: Need help with visual micro and esp-prog
Reply #11 - May 27th, 2021 at 3:56pm
Print Post  
Brilliant, glad you got it working!

We will amend the documentation to make this point clearer over the coming days (as you can just power and do the upload via the programmer, including the serial interface).

Its essentially the same as in this video if you want to run everything through the ESPPROG:
https://www.youtube.com/watch?v=5hMWFluwKt0

The wiring diagrams for that programmer specifically including power and the serial (so you can disconnect the USB from the ESP32 completely) are below:
https://www.visualmicro.com/pics/Debug-Help-ESP32-PROG-ALL-Connections.png
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint