Page 1 of 1
esp32-s3 serial port over usb
Posted: Wed Apr 12, 2023 1:13 am
by atx823
One of the answers to another question
https://esp32.com/viewtopic.php?f=2&t=28326 says:
The -S3 has both an USB-serial-JTAG device as well as a 'general-purpose' USB-OTG peripheral. The device you see on bootup is the USB-serial-JTAG unit; it does not need software to work and as such you can program the ESP32S3 directly from the factory.
On my linux box when I plug in a regular esp32 devboard with a cp2102 bridge I see a port /dev/ttyUSB0 appear.
When I plug in an esp32-s3 with a usb cable connecting D- and D+ to GPIO19 and GPIO20, I don't see any port appear. What port should I be using in this case?
Re: esp32-s3 serial port over usb
Posted: Wed Apr 12, 2023 4:26 am
by username
Have you programmed it yet? If not, flash some code to it. You should see a port appear.
Also, another thing to try is use menuconfig and change "Channel for console output" to be USB Serial/JTAG Controler)
It under Component config -> ESP System Settings.
Rebuild, and flash it should work normally then.
Re: esp32-s3 serial port over usb
Posted: Thu Apr 13, 2023 2:07 am
by corz.org
Yes, pop it into download mode and it should appear as /dev/ttyACM0 or similar.
Once you upload a sketch to it, it will operate more like normal.
Re: esp32-s3 serial port over usb
Posted: Fri Apr 14, 2023 2:17 am
by atx823
No luck with this.
I reflashed with the menuconfig console output set to USB Serial/JTAG Controller, then plugged in the usb cable, rebooted with GPIO0 grounded. I have verified the sketch is running, but no new ports show up.
I've probed inside the female A end of the cable to verify the connections between D-/D+ and GPIO19/GPIO20 and everything is good.
Can't think of anything else to try.
Re: esp32-s3 serial port over usb
Posted: Sun Apr 16, 2023 6:34 pm
by username
When I plug in an esp32-s3 with a usb cable
What exactly are you plugging in? You own board design or a dev kit, or other ?
Re: esp32-s3 serial port over usb
Posted: Sun Apr 16, 2023 10:40 pm
by atx823
My own board design. It's pretty simple - just an ap2115 regulator, a usb4105-gf-a receptacle, a couple of headers, and some buttons for EN and IO0.
Re: esp32-s3 serial port over usb
Posted: Mon Apr 17, 2023 1:41 am
by username
Ah, ok. IF you willing to post the schematic we can take a look.
Re: esp32-s3 serial port over usb
Posted: Mon Apr 17, 2023 1:52 am
by atx823
Cool, thanks.
- s3 schem.png (23.66 KiB) Viewed 5322 times
- s3 pcb.png (224.11 KiB) Viewed 5322 times
Re: esp32-s3 serial port over usb
Posted: Mon Apr 17, 2023 2:15 am
by username
Nothing jumped out at me for the USB connections.
Though, If I might nit pick. You really need to add caps on that board.
There should be at least a 0.1uf cap on the input to the regulator, and output. Would be better to also include >4.7uf to them as well.
I did a board similar 2 weeks ago, and It worked just fine.
- Mini_skiz.png (215.4 KiB) Viewed 5309 times
- Mini_pcb.png (74.86 KiB) Viewed 5309 times
Re: esp32-s3 serial port over usb
Posted: Mon Apr 17, 2023 2:21 am
by atx823
Good point on the caps -- I'll add them. Thanks for taking a look.