ESP32-S3 的串口0或串口1,无法实现Light sleep模式下唤醒

vistawang
Posts: 10
Joined: Sun Nov 27, 2022 4:22 pm

ESP32-S3 的串口0或串口1,无法实现Light sleep模式下唤醒

Postby vistawang » Sun Nov 27, 2022 4:29 pm

ESP32在Light sleep模式下无法通过串口唤醒,按照文档该设置的都设置了,网上搜索了半天,找不到任何解决办法,甚至怀疑是不是芯片的BUG了。下面是启动日志,麻烦懂得高手指点一下,不胜感激

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x3ac
load:0x403c9700,len:0x9b8
load:0x403cc700,len:0x2688
entry 0x403c98c0
[0;32mI (76) spiram: Found 16MBit SPI RAM device[0m
[0;32mI (76) spiram: SPI RAM mode: sram 80m[0m
[0;32mI (77) spiram: PSRAM initialized, cache is in norESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x3ac
load:0x403c9700,len:0x9b8
load:0x403cc700,len:0x2688
entry 0x403c98c0
[0;32mI (76) spiram: Found 16MBit SPI RAM device[0m
[0;32mI (76) spiram: SPI RAM mode: sram 80m[0m
[0;32mI (77) spiram: PSRAM initialized, cache is in normal (1-core) mode.[0m
[0;32mI (81) cpu_start: Pro cpu up.[0m
[0;32mI (85) cpu_start: Starting app cpu, entry point is 0x40375404[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (321) spiram: SPI SRAM memory test OK[0m
[0;32mI (330) cpu_start: Pro cpu start user code[0m
[0;32mI (330) cpu_start: cpu freq: 160000000[0m
[0;32mI (330) cpu_start: Application information:[0m
[0;32mI (333) cpu_start: Project name: DS3[0m
[0;32mI (337) cpu_start: App version: 1[0m
[0;32mI (342) cpu_start: Compile time: Nov 27 2022 23:59:12[0m
[0;32mI (348) cpu_start: ELF file SHA256: 43e6e22afe6fb8c7...[0m
[0;32mI (354) cpu_start: ESP-IDF: v4.4.3-dirty[0m
[0;32mI (359) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (366) heap_init: At 3FC97160 len 000525B0 (329 KiB): D/IRAM[0m
[0;32mI (373) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM[0m
[0;32mI (379) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM[0m
[0;32mI (386) heap_init: At 600FE024 len 00001FDC (7 KiB): RTCRAM[0m
[0;32mI (392) spiram: Adding pool of 2048K of external SPI memory to heap allocator[0m
[0;32mI (400) spi_flash: detected chip: generic[0m
[0;32mI (404) spi_flash: flash io: dio[0m
[0;33mW (408) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
[0;32mI (422) sleep: Configure to isolate all GPIO pins in sleep state[0m
[0;32mI (428) sleep: Enable automatic switching of GPIO sleep configuration[0m
[0;32mI (446) pm: Frequency switching config: CPU_MAX: 160, APB_MAX: 80, APB_MIN: 40, Light sleep: DISABLED[0m
[0;32mI (447) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (466) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations[0m

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: ESP32-S3 的串口0或串口1,无法实现Light sleep模式下唤醒

Postby ESP_ICY » Mon Nov 28, 2022 12:13 pm

明确一下芯片类型,标题说的 S3,问题第一句是32,如果是32的话是不支持的,S3 是支持的,例程的话在master/system/light_sleep 上应该已经有了,早一点的IDF版本上有这个接口,但是驱动还不支持,在master上是可以用的

vistawang
Posts: 10
Joined: Sun Nov 27, 2022 4:22 pm

Re: ESP32-S3 的串口0或串口1,无法实现Light sleep模式下唤醒

Postby vistawang » Tue Nov 29, 2022 2:34 am

非常感谢您的回复,所用的芯片是 ESP32-S3 FH4R2,用的 esp-idf 版本是 v4.4.3
自带的 esp-idf-v4.4.3\examples\system\light_sleep 例程里面没有串口唤醒的 示例代码
我用ESP-IDF master 版本再试一下吧,谢谢指点!

Who is online

Users browsing this forum: No registered users and 111 guests