完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用io口来唤醒,发现在串口反复打印同样的数据
ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x5 (DSLEEP),boot:0xd (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd6100,len:0x17f8 load:0x403ce000,len:0x8d8 load:0x403d0000,len:0x2ab0 entry 0x403ce000 [0;32mI (30) boot: ESP-IDF v4.3-dirty 2nd stage bootloader[0m [0;32mI (30) boot: compile time 16:07:21[0m [0;32mI (30) boot: chip revision: 3[0m [0;32mI (32) boot.esp32c3: SPI Speed : 80MHz[0m [0;32mI (37) boot.esp32c3: SPI Mode : DIO[0m [0;32mI (42) boot.esp32c3: SPI Flash Size : 2MB[0m [0;32mI (46) boot: Enabling RNG early entropy source...[0m [0;32mI (52) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=061e8h ( 25064) map[0m [0;32mI (60) esp_image: segment 1: paddr=00016210 vaddr=3fc8a800 size=01ab0h ( 6832) load[0m [0;32mI (69) esp_image: segment 2: paddr=00017cc8 vaddr=40380000 size=08350h ( 33616) load[0m [0;32mI (79) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=161e0h ( 90592) map[0m [0;32mI (85) esp_image: segment 4: paddr=00036208 vaddr=40388350 size=02404h ( 9220) load[0m [0;32mI (94) esp_image: segment 5: paddr=00038614 vaddr=50000000 size=00004h ( 4) [0m [0;32mI (102) esp_image: segment 6: paddr=00038620 vaddr=50000008 size=00010h ( 16) [0m [0;32mI (110) boot: Fast booting app from partition at offset 0x10000[0m [0;32mI (116) boot: Disabling RNG early entropy source...[0m [0;32mI (133) cpu_start: Pro cpu up.[0m [0;32mI (145) cpu_start: Pro cpu start user code[0m [0;32mI (146) cpu_start: cpu freq: 160000000[0m [0;32mI (146) cpu_start: Application information:[0m [0;32mI (148) cpu_start: Project name: deep_sleep[0m [0;32mI (154) cpu_start: App version: 249c573-dirty[0m [0;32mI (159) cpu_start: Compile time: Feb 8 2022 16:07:01[0m [0;32mI (165) cpu_start: ELF file SHA256: 844ba7880f5d4cfb...[0m [0;32mI (171) cpu_start: ESP-IDF: v4.3-dirty[0m [0;32mI (176) heap_init: Initializing. RAM available for dynamic allocation:[0m [0;32mI (184) heap_init: At 3FC8D0F0 len 00032F10 (203 KiB): DRAM[0m [0;32mI (190) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM[0m [0;32mI (197) heap_init: At 50000018 len 00001FD8 (7 KiB): RTCRAM[0m [0;32mI (203) spi_flash: detected chip: generic[0m [0;32mI (208) spi_flash: flash io: dio[0m [0;33mW (211) 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 (225) sleep: Configure to isolate all GPIO pins in sleep state[0m [0;32mI (231) sleep: Enable automatic switching of GPIO sleep configuration[0m [0;32mI (238) cpu_start: Starting scheduler.[0m Wake up from GPIO 2 deep 3231554341551vdsfascvdsfedsa2f3312321548715113245215vd1fd5fed2fadf1235463355 [0;32mI (252) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m Enabling GPIO wakeup on pins GPIO2 ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x5 (DSLEEP),boot:0xd (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd6100,len:0x17f8 load:0x403ce000,len:0x8d8 load:0x403d0000,len:0x2ab0 entry 0x403ce000 [0;32mI (30) boot: ESP-IDF v4.3-dirty 2nd stage bootloader[0m [0;32mI (30) boot: compile time 16:07:21[0m [0;32mI (30) boot: chip revision: 3[0m [0;32mI (32) boot.esp32c3: SPI Speed : 80MHz[0m [0;32mI (37) boot.esp32c3: SPI Mode : DIO[0m [0;32mI (42) boot.esp32c3: SPI Flash Size : 2MB[0m [0;32mI (46) boot: Enabling RNG early entropy source...[0m [0;32mI (52) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=061e8h ( 25064) map[0m [0;32mI (60) esp_image: segment 1: paddr=00016210 vaddr=3fc8a800 size=01ab0h ( 6832) load[0m [0;32mI (69) esp_image: segment 2: paddr=00017cc8 vaddr=40380000 size=08350h ( 33616) load[0m [0;32mI (79) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=161e0h ( 90592) map[0m [0;32mI (85) esp_image: segment 4: paddr=00036208 vaddr=40388350 size=02404h ( 9220) load[0m [0;32mI (94) esp_image: segment 5: paddr=00038614 vaddr=50000000 size=00004h ( 4) [0m [0;32mI (102) esp_image: segment 6: paddr=00038620 vaddr=50000008 size=00010h ( 16) [0m [0;32mI (110) boot: Fast booting app from partition at offset 0x10000[0m [0;32mI (116) boot: Disabling RNG early entropy source...[0m [0;32mI (133) cpu_start: Pro cpu up.[0m [0;32mI (145) cpu_start: Pro cpu start user code[0m [0;32mI (146) cpu_start: cpu freq: 160000000[0m [0;32mI (146) cpu_start: Application information:[0m [0;32mI (148) cpu_start: Project name: deep_sleep[0m [0;32mI (154) cpu_start: App version: 249c573-dirty[0m [0;32mI (159) cpu_start: Compile time: Feb 8 2022 16:07:01[0m [0;32mI (165) cpu_start: ELF file SHA256: 844ba7880f5d4cfb...[0m [0;32mI (171) cpu_start: ESP-IDF: v4.3-dirty[0m [0;32mI (176) heap_init: Initializing. RAM available for dynamic allocation:[0m [0;32mI (184) heap_init: At 3FC8D0F0 len 00032F10 (203 KiB): DRAM[0m [0;32mI (190) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM[0m [0;32mI (197) heap_init: At 50000018 len 00001FD8 (7 KiB): RTCRAM[0m [0;32mI (203) spi_flash: detected chip: generic[0m [0;32mI (208) spi_flash: flash io: dio[0m [0;33mW (211) 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 (225) sleep: Configure to isolate all GPIO pins in sleep state[0m [0;32mI (231) sleep: Enable automatic switching of GPIO sleep configuration[0m [0;32mI (238) cpu_start: Starting scheduler.[0m Wake up from GPIO 2 deep 3231554341551vdsfascvdsfedsa2f3312321548715113245215vd1fd5fed2fadf1235463355 [0;32mI (252) gpio: GPIO[2]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m Enabling GPIO wakeup on pins GPIO2 |
|
相关推荐
1个回答
|
|
ESP32-C3 支持使用 GPIO 唤醒,但在某些情况下,可能无法正常工作。以下是一些建议和解决方案:
1. 确保您使用的 GPIO 引脚支持唤醒功能。并非所有 GPIO 引脚都支持唤醒。请查阅 ESP32-C3 的技术手册以获取支持唤醒的 GPIO 引脚列表。 2. 在进入深度睡眠之前,使用 `esp_sleep_enable_ext0_wakeup()` 函数配置唤醒源。例如,如果您希望使用 GPIO 0 唤醒,可以这样设置: ```c esp_sleep_enable_ext0_wakeup(1ULL << 0, ESP_EXT0_WAKEUP_ANY_HIGH); ``` 这将配置 GPIO 0 为高电平唤醒。 3. 确保在进入深度睡眠之前,GPIO 引脚已正确配置。使用 `gpio_set_direction()` 函数设置 GPIO 引脚的方向,例如: ```c gpio_set_direction(GPIO_NUM_0, GPIO_MODE_INPUT); ``` 4. 检查您的硬件连接是否正确。确保 GPIO 引脚与外部设备正确连接,以触发唤醒信号。 5. 如果问题仍然存在,您可以尝试使用其他 GPIO 引脚作为唤醒源,以排除硬件问题。 6. 检查您的电源和时钟配置。深度睡眠模式下,某些电源和时钟配置可能影响 GPIO 唤醒功能。请查阅 ESP32-C3 的技术手册以获取更多信息。 |
|
|
|
只有小组成员才能发言,加入小组>>
528浏览 6评论
438浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
425浏览 5评论
422浏览 4评论
398浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-7 14:20 , Processed in 0.638326 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号