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
Normal Topic ESP32 ESP-Prog configuration issue (Read 949 times)
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
ESP32 ESP-Prog configuration issue
Oct 17th, 2022 at 4:58pm
Print Post  
I recently setup an ESP32 Dev Kit and ESP-prog to test hardware debugging with VisualMicro. 

I installed the USB drivers and two COM ports are visible. (Related question: which one do I use in Visual Micro?)

Looks good up to this point. However, when I try to initiate a debug session using the >START button, the initial upload fails with the messages pasted after this post. 

I have set ESP32 PROG as the programmer. 

I have also included screen shots of: 

- Visual Studio screen shot showing output at time of failure
- Visual Micro debug config 
- COM port configuration showing driver info


----- output of vMicro upload attempt ---

Debugger: ESP32 PROG
Compiling 'ESP-Prog Debug Test' for 'ESP32 Dev Module                                                                                                              (esp32_esp32)'
Program size: 246,529 bytes (used 13% of a 1,966,080 byte maximum) (13.71 secs)
Minimum Memory Usage: 16376 bytes (5% of a 327680 byte maximum)
 
Uploading 'ESP-Prog Debug Test' to 'ESP32 Dev Module                                                                                                              (esp32_esp32)' using 'ESP32 PROG'
Uploader started for board ESP32 Dev Module                                                                                                              (esp32_esp32)
Uploader will use programmer name: esp32prog
C:\ProgramData\vmicro\tools\openocd-espressif-esp32-10.0.1\bin\openocd.exe -d2 -s s/" -f "interface/ftdi/minimodule-lowcost.cfg" -f "board/esp-wroom-32.cfg" -c "echo -n {****[vMicro]**** Uploading App :}" -c "telnet_port disabled; program s/partitions/boot_app0.bin} 0xe000" -c "echo -n {****[vMicro]**** Uploading Bootloader :}" -c "program {C:\Users\admin\AppData\Local\Temp\VMBuilds\ESP-Prog Debug Test\esp32_esp32\Debug/ESP-Prog Debug Test.ino.bootloader.bin} 0x1000" -c "echo -n {****[vMicro]**** Uploading Sketch :}" -c "program {C:\Users\admin\AppData\Local\Temp\VMBuilds\ESP-Prog Debug Test\esp32_esp32\Debug/ESP-Prog Debug Test.ino.bin} 0x10000" -c "echo -n {****[vMicro]**** Uploading Partitions :}" -c "program {C:\Users\admin\AppData\Local\Temp\VMBuilds\ESP-Prog Debug Test\esp32_esp32\Debug/ESP-Prog Debug Test.ino.partitions.bin} 0x8000 reset; shutdown"
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
adapter speed: 2000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
****[vMicro]**** Uploading App :Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error during upload using programmer
The uploader process failed

The uploader process failed
The uploader returned an error
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description 'Dual RS232-HS', serial '*' at bus location '*'
** OpenOCD init failed **
shutdown command invoked
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()
« Last Edit: Oct 17th, 2022 at 5:01pm by CSC »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP32 ESP-Prog configuration issue
Reply #1 - Oct 17th, 2022 at 4:59pm
Print Post  
Post interface only supports 2 attachments. Here is the COM port info:

  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32 ESP-Prog configuration issue
Reply #2 - Oct 17th, 2022 at 5:08pm
Print Post  
Thanks for the report.

You will need to install the WinUSB Driver using the Zadig tool on Interface 0 of the ESP-PROG for Visual Micro to be able to connect to it:
https://www.visualmicro.com/page/Zadig-Driver-Installation-Guide.aspx

There is a YouTube Video for the ESP-PROG which goes through this process and other details about the ESP-PROG probe:
https://www.youtube.com/watch?v=d6toH-qJbOI

Also note your project and INO files have spaces in the name which often results in issues, and is not compatible with the Arduino Specifications, so it is best to recreate this without the spaces in the names to reduce the potential for problems.
« Last Edit: Oct 17th, 2022 at 5:10pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP32 ESP-Prog configuration issue
Reply #3 - Oct 17th, 2022 at 6:48pm
Print Post  
Thanks for the quick reply. I did install the the driver using Zadig, but maybe it didn't work. Will redo.

What should I see on the COM port config when driver is correctly installed?
  
Back to top
 
IP Logged
 
CSC
Junior Member
**
Offline


Posts: 38
Location: Panama
Joined: Apr 17th, 2020
Re: ESP32 ESP-Prog configuration issue
Reply #4 - Oct 17th, 2022 at 9:28pm
Print Post  
Reinstalled WinUSB driver via ZaDig (ZaDig already showed it as installed). No change. 

Rebooted and environment is now working!

The reboot was apparently the key. 

Thanks!
« Last Edit: Oct 17th, 2022 at 10:22pm by CSC »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint