Faced the same problem.
There was only this issue on Github:
"ESP32-C3 Incorrect wakeup cause with GPIO, resulting in RTC reset (IDFGH-10209) #11475"
https://github.com/espressif/esp-idf/issues/11475 (Open)
Search found 3 matches
- Mon Jun 12, 2023 4:19 pm
- Forum: ESP-IDF
- Topic: RTC reset on deepsleep wakeup - ESP32-C3
- Replies: 3
- Views: 3598
- Tue Jan 31, 2023 6:54 am
- Forum: ESP-IDF
- Topic: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?
- Replies: 6
- Views: 2971
Re: ESP32-C3 How to know if USB console (GPIO18, GPIO19) is plugged in?
For esp32-c3 returns zero if usb is not connected, otherwise returns a positive integer (10).
Code: Select all
int is_plugged_usb(void){
uint32_t *aa = USB_SERIAL_JTAG_FRAM_NUM_REG;
uint32_t first = *aa;
vTaskDelay(pdMS_TO_TICKS(10));
return (int) (*aa - first);
}
- Thu Jan 19, 2023 12:57 pm
- Forum: ESP-IDF
- Topic: Can the ESP32-C3's USB-CDC port be used like a UART?
- Replies: 2
- Views: 2770
Re: Can the ESP32-C3's USB-CDC port be used like a UART?
I found it on the website https://blog.csdn.net/ai_ljh/article/details/126999395 It works. #include <stdio.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_spi_flash.h" #include "string.h" #include "hal/usb_serial_jtag_ll.h" vo...