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 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) ESP32 programming and debugging with ESP-prog not work (Read 13118 times)
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #20 - Jan 31st, 2022 at 12:15pm
Print Post  
Can I help with remote access to my computer?

safi
  
Back to top
 
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #21 - Jan 31st, 2022 at 12:34pm
Print Post  
Can I help with remote access to my computer?

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


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #22 - Jan 31st, 2022 at 12:37pm
Print Post  
Thanks for the offer, however at present we don't require this, but thank you for the offer of assistance.

If we reach a point where this is required we will let you know.
  
Back to top
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #23 - Feb 1st, 2022 at 8:17am
Print Post  
I'm trying to ...
Could the non-English character (s) in the paths cause errors so far?
I renamed it so there are no "bad" (non-English) characters in the paths now.
I did a trial debug boot and there was a new error.

Visual Micro + ESP32 dev module + ESP-Prog JTAG
Debugging with ESP-Prog.
Upload in series (not ESP-Prog).
----
Upload successful.
Initializes the debug, but stops with a GDB error.

I attached the screen.
What could be the solution?

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


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #24 - Feb 1st, 2022 at 9:22am
Print Post  
Thanks for the update, and we believe that part of the issue is the ó character in "Miklós", however we want to find a solution to this as it will affect a range of users and configurations.

I cannot see a screenshot on your previous post, can you attach it?
  
Back to top
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #25 - Feb 1st, 2022 at 10:33am
Print Post  
Sorry, the attachment is missing.
I'm replacing now:

safi
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #26 - Feb 1st, 2022 at 5:19pm
Print Post  
Thanks for the update.

Can you confirm which version of the ESP32 board package you have installed?
  
Back to top
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #27 - Feb 2nd, 2022 at 6:36am
Print Post  
Hello!

Board: ESP32 Arduino v1.0.6 / ESP32 Dev Module.

I have attached pictures of the board and the wiring.

Hi :

safi
  

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


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #28 - Feb 2nd, 2022 at 6:39am
Print Post  
Further pictures :
safi
  

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


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #29 - Feb 2nd, 2022 at 12:10pm
Print Post  
I installed a new ESP32 board:
ESP Arduino v2.0.2 / ESP32 Dev Module.
I tried debugging again.
Build: OK,
Serial Upload: OK.
Then I used the "Debug / Attach to Process ..." menu item.
And I got a GDB error.

I attached the pictures:

safi
  

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


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #30 - Feb 2nd, 2022 at 12:24pm
Print Post  
I also attach the debug log file

safi
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #31 - Feb 2nd, 2022 at 12:28pm
Print Post  
Thanks for the updates.

v2.0.2 of the ESP32 board package has an issue with the GDB.exe which has been packaged (reported to the ESP32 team here).

If you add the below Local board.txt entry (change the user name as appropriate), does this improve the error?
Code
Select All
2\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r1/bin 

  
Back to top
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #32 - Feb 2nd, 2022 at 1:34pm
Print Post  
Where is board.txt?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #33 - Feb 2nd, 2022 at 2:16pm
Print Post  
You can add the local board.txt file for this entry from vMicro > Add Code > Add Local board.txt.

This will add a file to your project, which is where the entry needs to be added.
  
Back to top
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #34 - Feb 3rd, 2022 at 6:33am
Print Post  
I created the board.txt and entered:
tools.esp32prog.path = ...
Compile and upload (COM6) successful.
Then "Debug / Attach to Process" and the attached error occurred.

safi
  

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


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #35 - Feb 3rd, 2022 at 7:05am
Print Post  
I tried to upload the program to esp32 with Esp-Prog as a programmer.
Unfortunately, this did not work either.
I attached the data.

safi
  

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


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #36 - Feb 3rd, 2022 at 12:52pm
Print Post  
Is there anyone on the forum debugging ESP32 with the Esp-Prog debugger? And does it go without error?
You could send me a little encouragement not to give up after 1 week of unsuccessful attempts.
There is light at the end of the tunnel! I just have to get there in the foreseeable future.
The trial period is slowly coming to an end and I haven't been able to debug yet!

safi
Undecided
  
Back to top
 
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: ESP32 programming and debugging with ESP-prog not work
Reply #37 - Feb 4th, 2022 at 12:51pm
Print Post  
Running the x.bat file on a Win7 PC, I created a log file that I attached.
Is that good now? Although there are 4 bad lines in this as well.

safi
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #38 - Feb 4th, 2022 at 1:03pm
Print Post  
That's looking much better! (it shows the ports 3333/4444/6666 being served so it has fully initialized).

From our investigation earlier it appears as though the driver on the PC which does not work is incorrect (using oem150.inf which is "The Microsoft Print To PDF install file"), when it should be using oem133.inf (FTDIBUS) until we replace it from Zadig to oem136.inf (WINUSB)).

I believe you can force the driver to install on the old PC from Device Manager > Update Driver > Browse my computer > Let me Pick from a List of Drivers.
« Last Edit: Feb 4th, 2022 at 1:03pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP32 programming and debugging with ESP-prog not work
Reply #39 - Feb 8th, 2022 at 11:08am
Print Post  
Just to update on the journey on the other machines where debugging did not work, so the solution is known to other users.....

Issue:
Running OpenOCD.exe command line via cmd.exe still resulted in errors.

Example Command:
(Logging increased using -d3 instead of -d2)
Code
Select All
C:\Users\Miklos\Downloads\openocd-esp32-0.10.1-2021.07.21/bin/openocd.exe -d3 -s /" -f /interface/ftdi/minimodule-lowcost.cfg" -c "set ESP32_RTOS none" -f /board/esp-wroom-32.cfg" -c "init" 



The final error seen is below, before the program crashed and tried to report the error to Microsoft.

Code
Select All
Debug: 512 3128 command.c:355 register_command_handler(): registering 'test_mem_access'...
Debug: 513 3137 ftdi.c:728 ftdi_initialize(): ftdi interface using shortest path jtag state transitions 



This is related to OpenOCD not being able to identify the ESP-PROG, even though Zadig.exe had been used to replace the driver.

Solution:
The solution is to configure the Esp-Prog USB driver as follows:
1. Connect the Esp-Prog panel to the PC with a USB cable.
2. If a USB driver is already installed, you must delete the driver in Device Manager.
3. After deleting, disconnect the Esp-Prog from the PC.
4. Download the VCP driver (Virtual COM Port Drivers) for the FT2232HQ chip from the FTDI website.
5. Install the downloaded VCP driver (run nn.exe).
6. Connect the Esp-Prog panel to the PC with a USB cable.
7. The USB driver will be installed so that channels 0 and 1 will be Virtual COM Port.
8. If there will be no Virtual COM port on channels 0 and 1, go to step 2. point.
9. Currently (2022.02.07) the result of the correct driver installation on channels 0 and 1 is as follows:
   "FTDIBUS (v2.12.36.4)"
10. With Zadig, the "Dual RS232-HS (Interface 0) channel driver must be replaced with a WinUSB (v6.1.7600.16385) driver.

The driver for the "Dual RS232-HS (Interface 1) channel does not need to be changed, it remains an FTDI driver!

With this USB setting, error-free debugging and uploading via the programmer is started.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint