Page 1 of 1

ESP32-S3 USB Config?

Posted: Wed Dec 13, 2023 9:39 pm
by ixs0792
I built up a prototype PCB and I can't seem to get the USB port to communicate. The USB hardware configuration seems easy enough GPIO19 (Pin 13 on ESP32-S3-WROOM-1-N8R2) connects to D- and GPIO20 (Pin 14) connects to D+. Here is a image of the layout:
Screenshot 2023-12-13 at 4.24.44 PM.png
Screenshot 2023-12-13 at 4.24.44 PM.png (755.59 KiB) Viewed 83972 times
The UART port on pins 36&37 can communicate with the ESP32-S3 without a problem, but I am getting no activity on the USB port. I have tried various configuration setups through the Arduino GUI, but not matter how these are configured the USB port does not enumerate.

Is there an eFuse bit that I am missing to enable the USB Port?
Screenshot 2023-12-13 at 4.35.32 PM.png
Screenshot 2023-12-13 at 4.35.32 PM.png (114.58 KiB) Viewed 83972 times

Re: ESP32-S3 USB Config?

Posted: Wed Dec 13, 2023 11:51 pm
by ESP_Sprite
Can you try pulling down GPIO0 while resetting (or powering on) the ESP? That should put it in download mode, which prevents any firmware-related issues from stopping USB from working.

Re: ESP32-S3 USB Config?

Posted: Thu Dec 14, 2023 1:37 am
by ixs0792
Yes, but the board does not enumerate over the USB port under a BOOT power on or a normal power on.

The module prints this out the UART port with the BOOT button pressed:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x0 (DOWNLOAD(USB/UART0))
waiting for download
Under a normal boot it prints this:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0

Re: ESP32-S3 USB Config?

Posted: Thu Dec 14, 2023 2:11 am
by ixs0792
I also scoped the levels of GPIO3, GPIO45, GPIO46 during power on, and these are all LOW. GPIO0 is button controlled.

Re: ESP32-S3 USB Config?

Posted: Thu Dec 14, 2023 2:40 am
by ESP_Sprite
I got nothing, sorry. You used the correct pins, USB-C pinout matches what I have in a verified-working project, bootup chatter looks correct. Only thing I can imagine is a physical thing, e.g. a badly soldered connection or a short or something, or perhaps an USB-C cable that is charging-only or broken.

Ah, one thing that *may* influence things, but I'm not sure... you don't have 5.1K resistors on the CC pins; I'm not sure if this disables USB communication entirely if you're connecting natively to an USB-C host. You can try to see if the device works with an USB-C-to-USB-A cable; if so, that is your problem.

Re: ESP32-S3 USB Config?

Posted: Thu Dec 14, 2023 2:55 pm
by ixs0792
I'm going through a hub with USB-A connectors so the CC pins and the Superspeed side channel signals do not make it to the host. The cable I've been working with enumerates other USB-C peripheral so I don't think this is it either, but I will test a different cable to rule it out.

Maybe it is a build issue. The second unit I tried also didn't enumerate over USB either, but the LDO got excessively hot when it was plugged in for more than a few minutes. I will finish assembling another pair of units to see if they behave the same.

Thanks for taking the time to look into this with me. It is greatly appreciated.

Re: ESP32-S3 USB Config?

Posted: Thu Jan 11, 2024 1:59 pm
by Sheepshell
Hi there, I met exactly the same question, have you figured out a solution yet? Please let me know if you have any clue. Thanks in advance.

Re: ESP32-S3 USB Config?

Posted: Fri Jan 12, 2024 3:48 am
by ESP_Sprite
Sheepshell wrote:
Thu Jan 11, 2024 1:59 pm
Hi there, I met exactly the same question, have you figured out a solution yet? Please let me know if you have any clue. Thanks in advance.
Unless you're using the exact PCB ixs0792 is using, I'd suggest posting a new topic, with your own PCB design files included.