ESP32S2 Restarting after connecting USB as a log output
Posted: 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?