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) JTAG cannot download or debug Arduino project Esp32 ESP-Prog (Read 3025 times)
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Sep 4th, 2023 at 7:42pm
Print Post  
I am trying to use VM in Visual Studio.  I want to debug and build arduino IDE projects for the esp-32.

My first project builds but does not download or debug.  I believe the JTAG is properly connected and will download and debug as it works in VisualGDB (cannot import ino).   

I have attached build output as requested.
I have attached a jpg of my VS screen
I have attached a jpg of a screen from your video

My screen is significantly different.
1) mine has a VS menu bar that says release arm64.  This bar does not appear in the video and, at the least is distracting when using VisMicro.
2) my secreen only has 2 VisMicro tool bars, video has 3.  How do I get the layout seen in the video.
3) the video shows debugger set as ESP-Prog which is what I want.  The only options I have are  Disabled, FTDI Adapter
and ESP USB Bridge.  None of these work

Both Visual GDB and VisMicro use same driver install using zadig-2.8

How do I make this work?
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #1 - Sep 4th, 2023 at 8:21pm
Print Post  
The log shows the upload is failing on COM10

A fatal error occurred: Failed to connect to ESP32: No serial data received

Which board options have you set on the vMicro menu?
« Last Edit: Sep 4th, 2023 at 8:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #2 - Sep 5th, 2023 at 10:59pm
Print Post  
Thanks for replying.  The framework is set to Arduino 2, the board is ESP32 Dev Module, the comm port is set to 10.  !0 is the 0 port of the ESP-Prog JTAG interface.  I have searched and can find no way to get the gdb log on VS.  There are lots of methods for Linux but nothing for VS

I can compile, load and debug programs with Visual GDB using the ESP-prog (but no arduino progs.)  That eliminates a lot of possible errors.  I do not know where to go with Visual Micro.

At this point I am stopped.

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #3 - Sep 6th, 2023 at 1:24pm
Print Post  
It sounds like the COM port has the wrong driver installed for arduino serial upload.

Arduino has a variety of upload methods. Please review the vMicro>Uploader menu that shows the possible upload tools.

The docs can be accessed from the top of https://www.visualmicro.com/

There are specific pages for the esp32 board(s)
« Last Edit: Sep 6th, 2023 at 1:26pm by Tim@Visual Micro »  
Back to top
IP Logged
 
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #4 - Sep 6th, 2023 at 4:21pm
Print Post  
i do not like to be rude but you are not listening.  I am on a trial but will buy if I can do what I need to do.  I spent 3 hours last night in a fruitless effort to make this work.

1) correct drivers have been repeatedly installed using Ziadig.
2) THIS WORKS IN VISUAL GDB but they do not support arduino
3) THE VIDEO from you shows selection of ESP-Prog in the jtag interface board selection.  I do not get this option.
4) Why are you using outdated versions of the Arduino IDE and expressif tools?
5) HAVE YOU LOOKED AT THE PICTURES I SENT WITH MY FIRST POST (PDF) WHICH SHOWS MY VISUAL STUDIO DISPLAY AND THE ONE SEEN ON YOUR VIDEO????

I AM NOW TRYING TO GET THIS WORKING ON PLATFORMIO (VSCODE ugh) AND ON VISUAL GDB.  UNTIL YOU GIVE ME A SOMETHING TO TRY THAT ADDRESS THIS ISSUE,  THAT IS WHERE MY EFFORT WILL GO.  

Yes I am shouting.  You are not doing your job!  My work currently depends on it!!!!!!!

Perhaps you should elevate to someone who knows more about YOUR product

You are on the verge of losing a sale.  I work hard and poor technical support only costs me time I do not have.  This support really is a negative for your product
« Last Edit: Sep 6th, 2023 at 4:25pm by charlie25 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #5 - Sep 6th, 2023 at 4:30pm
Print Post  
The screen shot from the video shows that ESP_PROG is selected as the programmer.

The build output you posted shows this option is not enabled.

Please show a screen shot of your vMicro>Uploader menu.

« Last Edit: Sep 6th, 2023 at 4:40pm by Tim@Visual Micro »  
Back to top
IP Logged
 
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #6 - Sep 6th, 2023 at 11:14pm
Print Post  
this was not set.  It is now.  I gets farther but still has an issue.  I have attached the new log.  I attempted to fix this error by reinstalling the driver with zidig.  Now by ports are not showing as they did before.  This has happened to be before.  It is very hard to completely wipe these drivers and start over pnputil even run in admin mode fails.  I have notes from last time I did it but it is difficult.  I am going to work on that.  I have a backup of my drivers but getting windows to allow the overwrite is more than a pain

This is not your area but if you have any ideas, they would be appreciated.

Anyway attached is new log.
  

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


Posts: 2713
Joined: Feb 13th, 2019
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #7 - Sep 7th, 2023 at 9:10am
Print Post  
Log Output:
Error: unable to open ftdi device with vid 0403, pid 6010, description 'Dual RS232-HS', serial '*' at bus location '*'

This means the ESP-PROG cannot be found by OpenOCD, so it is either not connected to the machine, or the driver is incorrect.

Can you provide a screenshot of Zadig, with the ESP-PROG's Interface 0 selected, which is shown as "Dual RS232-HS (Interface 0)" in the Zadig tool?

TIP: No driver change is needed on Interface 1 as this is the Serial Passthrough port of the ESP-PROG
  
Back to top
IP Logged
 
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #8 - Sep 12th, 2023 at 9:31pm
Print Post  
I have been off for a while.  Crashed my computer and had to restore from backup

Still not finding JTAG but getting farther.   
  1) build log attached
  2)Zadig log attached
  3)Zip of Zadig created driver files
  
Back to top
 
IP Logged
 
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #9 - Sep 12th, 2023 at 9:58pm
Print Post  
files sent by email

also note that after Zadig says successfully installed on reinstalled driver, Dev Mgr shows still shows the driver as ftdi 7/5/2021 microsoft compatibility etc.  Update driver would not let me select the driver.  Only says best installed.

Deleted the windows driver files using advanced under Driver tab. installed the inf file.  Scan for changes.  Back to FTDI driver.

Run Zadig.  Used libusbK (v3.1.0.0) just to see if any changes.  back to FTDI
Run Zadig.  Now shows libusbK as installed.  Selected WinUSB (v6.1.7600.16385
  Says successful  Dev Mgr says FTDI

I am lost
Please helo
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2713
Joined: Feb 13th, 2019
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #10 - Sep 14th, 2023 at 9:12am
Print Post  
Only the WinUSB Driver should be used in Zadig (the others will not work).

Interface1 of the ESP-PROG will show as the FTDI driver in Device Manager, as this is the Serial Passthrough port, and will appear under the COM Ports section.

Interface0 of the ESP-PROG will show as the WinUSB driver in Device Manager (once installed), and will appear under the Universal Serial Bus Devices section in Device Manager, as Dual RS232-HS.

From your log the driver has now been installed correctly, as the error about not being able to locate the VID/PID has vanished.

The current error shows there is an issue in the connection between the ESP-PROG and the ESP32 board.  This could be:
1) ESP32 board is not powered (power LED on ESP32 should be on if it is powered)
2) Connection wiring between the ESP32 and ESP-PROG is not fully connected, or connections are imperfect
3) The code currently on the board uses any of the JTAG pins in any way (GPIO12-15)

NOTE: The wiring between the ESP-PROG and ESP32 is sensitive to any connection issue and interference, so it is best to keep these wires as short as possible, and if possible try replacing them with new tight fitting jumper wires (I had the same issue this morning due to loose fitting wires).
  
Back to top
IP Logged
 
charlie25
Newbies
*
Offline


Posts: 7
Joined: Sep 2nd, 2023
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #11 - Sep 14th, 2023 at 7:51pm
Print Post  
Well everything you say makes sense but does not work.  As I said it was (haven't checked lately trying to get this working) with VisualGDB)   

This clearly indicated that wiring etc is good.   

Visual GDB does not support ino projects so does not do what I want.

I will check back but seems I must go to PIO on VScode (ugh)

My trial license expires in less than a month.  If you give me an extension, I will continue to try to work on this.  If not buying does not seem worthwhile.

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


Posts: 2713
Joined: Feb 13th, 2019
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #12 - Sep 15th, 2023 at 8:37am
Print Post  
If you email us your license key we can review an extension.

In your initial PDF you are using the blink example with GPIO13 in use.  If this is no on the board it will interfere with the JTAG functionality until a sketch is uploaded over serial without GPIO12-15 being used (e.g. change it to pin 17 in the sketch, then perform a serial upload).

Could you try it with VisualGDB to confirm the wiring is correct (and no other interference/noise issues), as this works correctly for us when using an ESP-PROG with an ESP32-WROOM-32D on an ESP32_Devkitc_v4 board.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG cannot download or debug Arduino project Esp32 ESP-Prog
Reply #13 - Sep 23rd, 2023 at 11:21pm
Print Post  
Thanks for the update via email and good to hear you got this working by powering the esp_prog with external power supply. 

Your comments about noise on the lines are noted and we will try to mention that in our docs. Hopefully the line max length guides in our docs and in the espressif docs avoid the issue for most.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint