Custom Board USB UART Pins ESP32-S3-Wroom1

elyaso
Posts: 2
Joined: Sat Sep 18, 2021 7:22 am

Custom Board USB UART Pins ESP32-S3-Wroom1

Postby elyaso » Mon Feb 14, 2022 2:13 pm

Dear,
I'm designing a board using ESP32-S3-Wroom1.
I'm confused regarding the USB Pins, in the datasheet it shows the IO19,IO20 are directly connected to USB ports.
Yet in all designs i see that a usb to ttl chip such as CP2102 is used.
I couldn't find clarification in the datasheet.

elkadir
Posts: 1
Joined: Wed Dec 15, 2021 9:33 am

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby elkadir » Mon Feb 14, 2022 8:00 pm

GPIO 19 and 20 are directly usb otg pins. But still there is cp2102 is used because there are two usb ports (second one is to use debug port) and in most cases people are using usb protection chips that are blocking voltages more than 5,25v or for electro static discharge protection.
it is not good to use directly if there is possible esd.

u can use directly 19 and 20 for usb and probably u will not need to use debug port (Jtag usb or second usb which is used for debugging)

ESP_Sprite
Posts: 9052
Joined: Thu Nov 26, 2015 4:08 am

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby ESP_Sprite » Tue Feb 15, 2022 1:26 am

Yep, reason to do it in devkits is that you may want to use the USB port for other purposes (e.g. hook up an USB stick to it). If you do your own design and have no reason to want to do that, feel free to leave the CP2102 out.

elyaso
Posts: 2
Joined: Sat Sep 18, 2021 7:22 am

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby elyaso » Tue Feb 15, 2022 3:15 pm

Thanks for the replies, very clear.

e-music
Posts: 13
Joined: Thu Jan 17, 2019 5:52 pm

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby e-music » Sun Jun 25, 2023 8:34 pm

I have the same situation and I would like to confirm it before designing my own board. So, a USB<>UART bridge chip is not necessary to program/debug ESP32-S3-WROOM modules? So, IO19/IO20 are directly available as OTG USB? And what about VBUS? IT seems ESP32-S3 doesn't implement VBUS sensing.

orbitcoms
Posts: 141
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby orbitcoms » Thu Jun 29, 2023 1:56 am

I uploaded a separate post in this forum and did not get a response yet but see my question is very similar to this.
Would someone please advise the minimal pin set up on ESP32-S3 to debug and use JTAG feauture. ie. Say JTAG and flash chip via pins 19/20 and use TX0 for monitor? I expect to also need to use ENABLE and make sure the strpping pins are in correct state during boot?

Thanks

e-music
Posts: 13
Joined: Thu Jan 17, 2019 5:52 pm

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby e-music » Sun Jul 02, 2023 7:46 pm

I have pretty much the same problem, and I have been waiting for a reply for so long and still nothing yet. I'm designing a custom board, I referred to datasheet and reference manual, but couldn't find much about the pinouts of the ESP32-S3. Although the ESP32 is very popular, it is still surrounded with a lot of ambiguity on many aspects of its development cycle.

orbitcoms
Posts: 141
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby orbitcoms » Sun Jul 02, 2023 10:26 pm

From what I have read in the datasheet is looks like a single USB port has 2 channels and can be used for both debugging and programming. If this is the cas I assume I can just use the USB port and have the TX0 as monitor output?

ESP_Sprite
Posts: 9052
Joined: Thu Nov 26, 2015 4:08 am

Re: Custom Board USB UART Pins ESP32-S3-Wroom1

Postby ESP_Sprite » Mon Jul 03, 2023 12:44 am

orbitcoms wrote:
Sun Jul 02, 2023 10:26 pm
From what I have read in the datasheet is looks like a single USB port has 2 channels and can be used for both debugging and programming.
More or less; programming generally uses the serial port, debugging (depending on if you debug using log messages or full-on JTAG style debugging) can use the serial or the JTAG port.

[/quote]
If this is the cas I assume I can just use the USB port and have the TX0 as monitor output?
You can set the USB-serial-JTAG as the primary console, and if you do UART0 would be free to use for other things. Do note that there will be some startup chatter on TX0, though.

Who is online

Users browsing this forum: No registered users and 134 guests