Hello,
I am developing an app based on the ESP32-C3 USB interface (CDC) both from programming and serial printing to a terminal.
I need the device to go into light sleep from time to time. What I have observed is that when exiting form light sleep the USB CDC interface is not working anymore.
The device is not printing anymore data and I can't even reprogram the unit via USB. I need to force the download mode resetting and holding IO9 low.
I am using Arduino IDE, therefore I am base don the ESP-IDF 4.4.3 .
Did anyone have this issue? or been able to solve it?
Thanks,
Andrea
ESP32-C3 USB CDC exiting light seep
-
- Posts: 3
- Joined: Mon Feb 27, 2023 2:23 pm
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-C3 USB CDC exiting light seep
Known hardware design issue, unfortunately.
"The USB Serial/JTAG controller will not work during sleep (both light and deep sleep) due to the lack of an APB and USB PHY clock during sleep." (src)
"The USB Serial/JTAG controller will not work during sleep (both light and deep sleep) due to the lack of an APB and USB PHY clock during sleep." (src)
-
- Posts: 3
- Joined: Mon Feb 27, 2023 2:23 pm
Re: ESP32-C3 USB CDC exiting light seep
Thanks!
I would happy just to have the USB CDC interface working when I exit light sleep, not during light seep itself. And just for serial communication, not for debug.
On the STM32 for example, when you enter stop modes the PC loses the connection with the USB CDC, but when existing the stop mode you can restart the USB CDC interface via software on the micro and the PC will list again the port and communication can happen again.
Is there a way to do something similar with the ESP32-C3?
Thanks for your great help!
Andrea
I would happy just to have the USB CDC interface working when I exit light sleep, not during light seep itself. And just for serial communication, not for debug.
On the STM32 for example, when you enter stop modes the PC loses the connection with the USB CDC, but when existing the stop mode you can restart the USB CDC interface via software on the micro and the PC will list again the port and communication can happen again.
Is there a way to do something similar with the ESP32-C3?
Thanks for your great help!
Andrea
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-C3 USB CDC exiting light seep
Hm, I'd expect it to do that automatically. Would you be willing to create a small example exhibiting the problem and file a bug report for this, so we can look into it?
Who is online
Users browsing this forum: No registered users and 323 guests