ESP32-C3 odd USB problems and no communication

Fusion
Posts: 20
Joined: Wed Apr 26, 2017 3:34 pm

ESP32-C3 odd USB problems and no communication

Postby Fusion » Sat Feb 18, 2023 6:40 am

I have a custom ESP32-C3-WROOM-02 board keeps connecting/disconnecting the USB port. I can see the port come up in Arduino IDE, but 2 seconds later it disappears, then come back and so on
D-/D+ is connected directly to IO18/19. The board of course has 5V to 3V3 for power.
An original dev board from Espressif works fine on the same port/cable. These modules are from Mouser.

I found a github issue with similar problems and some recommended running espefuse summary. Now the USB does not connect/disconnect, it stays connected and I can upload a sketch, but the WifiScan example does not show anything in serial monitor. Something is wrong. I have programmed dozens of ESP32s and this has never happened.
I can see on my USB power monitor that the current went from ~50mA to ~120mA with the WifiScan example, but nothing in serial monitor. I also can't light a simple LED.

I have also tried exporting the sketch to bin and using esptool to flash the bootloader/partition/bin, but the result is the same.

It's as if the program is running, but no GPIOs are doing anything and there's no serial output. Anyone have any idea what could be going on?

Fusion
Posts: 20
Joined: Wed Apr 26, 2017 3:34 pm

Re: ESP32-C3 odd USB problems and no communication

Postby Fusion » Sat Feb 18, 2023 8:26 pm

So I got it working by setting USB CDC and Enable Erase Flash in Arduino IDE.

Still preplexed why I had to run espefuse summary to get the USB to stop acting up though.

Fusion
Posts: 20
Joined: Wed Apr 26, 2017 3:34 pm

Re: ESP32-C3 odd USB problems and no communication

Postby Fusion » Mon Feb 20, 2023 11:10 am

Would anyone happen to know why it is required to run espefuse summary to fix the USB?

Who is online

Users browsing this forum: No registered users and 60 guests