ESP32S2 Restarting after connecting USB as a log output

ferrero
Posts: 18
Joined: Tue Nov 05, 2024 3:11 am

ESP32S2 Restarting after connecting USB as a log output

Postby ferrero » Fri Nov 29, 2024 2:16 am

When im trying too use USB as an output for log information my device start continusly rebooting after usb connection. I just using ESP_LOGV for output some messages through USB port. In PCB i have only usb D+ and D-, and when i connect them, device start rebooting with error: rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)<CR><LF>. Looks like the stack overflow, i tried to encrease rx/tx usb buffer size but it didnt help. Sometimes everythings works fine after firmware download...When i disconnect usb from the device then everything work fine. But i need to use logs info for my project and i cant use uarts. What could be the problem?

username
Posts: 600
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32S2 Restarting after connecting USB as a log output

Postby username » Fri Nov 29, 2024 4:10 am

In PCB i have only usb D+ and D-,
No GND connection ?

ferrero
Posts: 18
Joined: Tue Nov 05, 2024 3:11 am

Re: ESP32S2 Restarting after connecting USB as a log output

Postby ferrero » Fri Nov 29, 2024 5:31 am

I connect the ground in another place, a temporary solution. The USB itself works, I load the firmware through it into the bootloader without any problems

Who is online

Users browsing this forum: Bytespider, PerplexityBot, Qwantbot and 1 guest