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 USB Ports on ESP32-S3 two-port module (Read 1106 times)
Steven Bennett
Junior Member
**
Offline


Posts: 38
Location: High Bentham
Joined: Nov 2nd, 2022
USB Ports on ESP32-S3 two-port module
Aug 26th, 2024 at 4:35pm
Print Post  
The connection diagram at https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx shows a USB cable being hardwired to GPIO19 & 20.  Is this unnecessary as on my module (like the one in your connection picture) the USBC port called UART is already connected to GPIO19 & 20?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: USB Ports on ESP32-S3 two-port module
Reply #1 - Aug 29th, 2024 at 10:44am
Print Post  
In that case you wont need to manually add your own USB Connection.

You will still need to install the WinUSB driver for the JTAG port using the Zadig tool however (it should show as a separate device to the UART).

We will try and update the documentation to make this clearer, though the number of variants of these boards can make this difficult (some have 1 USB connection which can be both UART and JTAG devices, some have two separate ports, some have just one UART port and no JTAG port).

If you have any issues could you send a link to the board you are specifically using so we can advise better?
« Last Edit: Aug 29th, 2024 at 10:50am by Simon@Visual Micro »  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: USB Ports on ESP32-S3 two-port module
Reply #2 - Aug 30th, 2024 at 1:44pm
Print Post  
I maybe having an issue related to this topic.  I am using VS2023 with the latest VM extension.  My project uses an ESP32-S3.  I am using the USB-to-serial feature of the device with the USB data pins connected to pins 19 and 20 on the ESP32.

My problem is that the code uploads just fine but now serial port is established by the code.  (Serial fails.)  Oddly, in a previous project, I used an ESP32-C3-Mini with no issues.

With a little reasearch, I found that USB CDC on Boot needs to be enabled.  When I do that, I get a compiling error:

Code
Select All
Compiling 'DMXFader' for 'ESP32S3 Dev Module(esp32_esp32s3)'
ld.exe: DMXFader.cpp.o:(.literal._Z5setupv+0x0): undefined reference to HWCDCSerial

collect2.exe*: error: ld returned 1 exit status

Error linking for board ESP32S3 Dev Module(esp32_esp32s3)
Build failed for project 'DMXFader'
 



I then used the Arduino IDE with the correct compiling setting.  My code compiles and runs fine.

One more thing.  I did all of these test with my board as well as the Espressif ESP32-C3 development board.  They both had the same result.

Your assistance is appreciated.  (BTW, VM is terrific!)
« Last Edit: Aug 30th, 2024 at 1:47pm by Chevelle »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: USB Ports on ESP32-S3 two-port module
Reply #3 - Aug 30th, 2024 at 1:48pm
Print Post  
Thanks for the report.

Could you attach the complete build output as a text file, with the settings enabled shown at the top of the page?
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: USB Ports on ESP32-S3 two-port module
Reply #4 - Aug 30th, 2024 at 1:54pm
Print Post  
Sure.  Sorry about that omission.
  

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


Posts: 2769
Joined: Feb 13th, 2019
Re: USB Ports on ESP32-S3 two-port module
Reply #5 - Aug 30th, 2024 at 2:26pm
Print Post  
Does it help if you run Build > Clean Solution and then rebuild it?
  
Back to top
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 35
Joined: Feb 29th, 2020
Re: USB Ports on ESP32-S3 two-port module
Reply #6 - Aug 30th, 2024 at 2:34pm
Print Post  
Well I'll be damned.  That worked!  Not sure why but it did.  Thank very much!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2769
Joined: Feb 13th, 2019
Re: USB Ports on ESP32-S3 two-port module
Reply #7 - Aug 30th, 2024 at 2:57pm
Print Post  
Thanks for confirming.

This shouldn't have been needed as changing the option should force the core etc.. to be recompiled.

We will look at where this could be going wrong.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint