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) Programming seems to "break" the ESP32 USB Com port (Read 969 times)
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Programming seems to "break" the ESP32 USB Com port
Feb 10th, 2025 at 2:38pm
Print Post  
You have been so helpful in the past, I just had to run this one by you.  It is certainly something that I have never seen in the past.

I have designed a board with an ESP32-S3 that uses a TFT display.  I built up three and they all run great.  As expected, when the ESP32 first comes up, it goes into this loop that opens and closes the USB Com port.  The board does have the EN and BOOT buttons and so I use them to put the ESP32 into a stable upload mode.  Once programmed for the first time, it is smooth sailing from then on.

Here is the bizzare part.  I attempted to build two more but when I went to program the ESP32, the Com port goes away.  The loader says that it does not exist.  It is when the uploader is attempting to open the port, not do the actual uploading.  No amount of powering the board up and down will bring it back. This happened with both of the boards I attempted to program today.

Attached is the schematic.
« Last Edit: Feb 10th, 2025 at 2:41pm by Chevelle »  

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


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #1 - Feb 10th, 2025 at 2:41pm
Print Post  
Thanks for the report.

Can you also attach a build log for the project, with the settings enabled as shown at the top of the page?

From your description it sounds like this didn't happen on the first 3 boards, but it is now happening on the newer two?
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #2 - Feb 10th, 2025 at 2:42pm
Print Post  
Uploading 'DMXDisplay' to 'ESP32S3 Dev Module(esp32_esp32s3)' using 'COM15'
esptool.py v4.5.1
Serial port COM15
esptool.py v4.5.1
Serial port COM15

The uploader returned an error
A fatal error occurred: Could not open COM15, the port doesn't exist
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #3 - Feb 10th, 2025 at 2:44pm
Print Post  
Here is the build log.
  

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


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #4 - Feb 10th, 2025 at 2:51pm
Print Post  
Thanks, can you also enable vMicro > Compiler > Show Build Properties (this should have been enabled when selecting vMicro > Compiler > Verbose), and re-attach the log?
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #5 - Feb 10th, 2025 at 2:57pm
Print Post  
NowI can't attach at file. (attached from email)
« Last Edit: Feb 10th, 2025 at 3:03pm by Simon@Visual Micro »  

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


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #6 - Feb 10th, 2025 at 2:59pm
Print Post  
Can you email it to info at visualmicro.com, and we will attach it to the post.

Sometimes you need to go back to the main board, then navigate to the thread for the file attachment to show up, which we are looking into.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #7 - Feb 10th, 2025 at 3:05pm
Print Post  
Thanks for the log.

Can you also clarify whether this only happens on the two newer boards, or whether it happens on all of them now?
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #8 - Feb 10th, 2025 at 3:10pm
Print Post  
This is so very weird.  I designed this v1 version of this board and had the usual first time annoyances but that was mostly associated with have in the right ESP32 core installed.  (You guys helped me through that.)  The first design worked great.

I then re-laid out the board for just better physical location of some components.  The design was the same.  I build up three v2 versions and it all went great.  There is a companion board that the display board talks to and both versions of the display board work with the companion board.  It is just these latest two that have this program.  What can change in just 24 hours!

I am relucatant to build more if I am somehow blowing up the ESP32s.
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #9 - Feb 10th, 2025 at 3:11pm
Print Post  
I see what you are asking.  I will try to re-program one of the other boards.
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #10 - Feb 10th, 2025 at 3:13pm
Print Post  
They program just fine.
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #11 - Feb 10th, 2025 at 3:20pm
Print Post  
Hey.  If I unplug the USB cable (also powers the board when the companion board is not attached) and hold down the EN button when the USB cable is plugged back in, the USB Com port is there again!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #12 - Feb 10th, 2025 at 3:25pm
Print Post  
Thanks for confirming the details.

So as the v1 boards still program with the same code/board package/board settings, but the new boards don't, it feels to be a problem with the new hardware design (trace lengths or components on the reset circuitry may be worth reviewing from your latest description).
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #13 - Feb 10th, 2025 at 3:26pm
Print Post  
Ok.  This is very very strange.

One thing that I noticed when I programmed the boards for the first time is that I would get and error that LittleFS would not mount.  To get rid of that issue, I just loaded the LittleFS example and it ran fine.  After that, I could upload my program and it too was all OK.  (Bizzare)

After resurrecting the USB Com port, I did that again and viola! My program now loads.

This is just too bizzare.  I have no idea what I going on here but at least I have a way though this.

You guys are the greatest.  VisualMicro is an invaluable tool for me and the support is exceptional.
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #14 - Feb 10th, 2025 at 3:33pm
Print Post  
I was able to resurrect one of these latest two but not the other.  The traces and other aspects of the design are the same.  I just moved the EN and BOOT buttons to a different place.  The reason for the change was mostly part number changes and labeling.  They are very hard to tell apart.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #15 - Feb 10th, 2025 at 3:34pm
Print Post  
Thanks for confirming, maybe the trace lengths/widths changing in the redesign has had more impact than expected (or distance from the capacitor etc).

The LittleFS Element is likely that the example passes a flag to format the partition if it fails to mount, which after that it will succeed.   

I also thought the Filesystem Upload tool did that for you when the correct partition scheme is set (containing a fatfs partition).

Glad you are up and running, and let us know if you do manage to find the difference between the boards so the thread is complete.
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #16 - Feb 10th, 2025 at 3:49pm
Print Post  
I don't think the key is the board.  The first three of the new design programmed just fine although I did have to run the LittleFS example first.  I skipped that step with the second two.  If it was needed, I would have gottne the LittleFS failure.  I didn't even get to that part.  Once the uploader tried to open the COM port, the port vanished.  Of these two boards, I was able to get its COM port to appear again.  I then loaded the LittleFS example, and then my program, and it is all working fine.  I have not been able to do that with the second of these two.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2711
Joined: Feb 13th, 2019
Re: Programming seems to "break" the ESP32 USB Com port
Reply #17 - Feb 10th, 2025 at 4:12pm
Print Post  
Understood.

From all you have described there are 3 boards which always program fine, 1 is problematic, and 1 has been revived to some degree.

As all were programmed with the same software (VS version, vMicro version, Code, libraries, board package) from the same machine, the final files and the upload tools used will all be identical.

There could be differences in the ESP32 modules variant (marked on the ESP32S3 chip itself), or the bootloader or fuse bits set within them, or alternatively differences in the supporting hardware (e.g. tolerances of capacitors and resistors can be quite large depending on the quality purchased), as well as assembly differences (cold solder joints etc).

  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: Programming seems to "break" the ESP32 USB Com port
Reply #18 - Feb 10th, 2025 at 4:22pm
Print Post  
Close.  The first three of v2 were eventually programmed successfully.  The next two did not.  One of those was able to have the COM port recognized and programmed successfully.  So four out of the five are fine.  All were programmed with exactly the same compiler settings and libraries.  All have ESP32s from the same batch that I ordered.  (I suppose some could be different within the order I received.)  It is possible that the fifth one may have some assembly error but I am quite skilled in this area.  But yeah, it could happen.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint