-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Resolution: Unable to reproduceWith given information issue is unable to reproduceWith given information issue is unable to reproduceType: QuestionOnly questionOnly question
Description
Board
ESP32-C3-DevKitM-1
Device Description
ESP32-C3-DevKitM-1 connected with STM32-G030 via UART
Hardware Configuration
Serial1 RX pin: GPIO3
Serial1 TX pin: GPIO2
Version
v2.0.4
IDE Name
PlatformIO Espressif 32 (5.1.0) > Espressif ESP32-C3-DevKitM-1
Operating System
macOS 12
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
115200
Description
There is a solution for this issue. This solution helps UART wake up. But there are still issues:
When you keep uploading the same sketch (without power reset), or pressing reset button, sometimes wake up may cause system reset with the following message:
SP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xe (SPI_FAST_FLASH_BOOT)
When restarting happens, it may keep on restarting for a long time, or may resume normal wake up after some restarting. And it may restart again.
But It seems power reset may help sometimes.
And for using esp_sleep_enable_timer_wakeup
only, there is no restart issue.
Sketch
void setup()
{
Serial.begin(115200);
Serial1.begin(115200, SERIAL_8N1, RXD2, TXD2);
while (!Serial || !Serial1) {
delay(500);
}
// GPIO 20 is the default UART_0 RX pin
gpio_sleep_set_direction(GPIO_NUM_3, GPIO_MODE_INPUT);
gpio_sleep_set_pull_mode(GPIO_NUM_3, GPIO_PULLUP_ONLY);
int wake_thresh = 3;
uart_set_wakeup_threshold(UART_NUM_1, wake_thresh);
esp_sleep_enable_uart_wakeup(UART_NUM_1);
Serial.flush();
Serial1.flush();
}
Debug Message
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xe (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380000
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
Attempting to boot anyway...
entry 0x403ce000
ESP32 Chip model = ESP32-C3 Rev 3
SDK version = v4.4.1-472-gc9140caf8c
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Resolution: Unable to reproduceWith given information issue is unable to reproduceWith given information issue is unable to reproduceType: QuestionOnly questionOnly question