Page 1 of 1

求助:ESP32从深度休眠唤醒到工作的时间偏长,怎么优化?

Posted: Tue Feb 25, 2020 2:16 am
by asmart
您好,
ESP32 从休眠唤醒到 wifi mac 能用,需要649ms,这个时间有点长,请帮看下哪里可以优化吗?

rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7184
ho 0 tail 12 room 4
load:0x40078000,len:14352
load:0x40080400,len:4448
0x40080400: _init at ??:?

entry 0x400806f0
I (31) boot: ESP-IDF v4.1-dev-2259-ga70a6f897-dirty 2nd stage bootloader
I (31) boot: compile time 17:02:17
I (32) boot: chip revision: 1
I (36) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (43) boot.esp32: SPI Speed : 40MHz
I (48) boot.esp32: SPI Mode : DIO
I (52) boot.esp32: SPI Flash Size : 2MB
I (57) boot: Enabling RNG early entropy source...
I (62) boot: Partition Table:
I (66) boot: ## Label Usage Type ST Offset Length
I (73) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (81) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (88) boot: 2 factory factory app 00 00 00010000 00100000
I (96) boot: End of partition table
I (100) boot_comm: chip revision: 1, min. application chip revision: 0
I (107) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x179c4 ( 96708) map
I (151) esp_image: segment 1: paddr=0x000279ec vaddr=0x3ffb0000 size=0x038e8 ( 14568) load
I (157) esp_image: segment 2: paddr=0x0002b2dc vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at E:/evan/esp/work/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1789

I (158) esp_image: segment 3: paddr=0x0002b6e8 vaddr=0x40080404 size=0x04930 ( 18736) load
I (174) esp_image: segment 4: paddr=0x00030020 vaddr=0x400d0020 size=0x76904 (485636) map
0x400d0020: _stext at ??:?

I (351) esp_image: segment 5: paddr=0x000a692c vaddr=0x40084d34 size=0x11490 ( 70800) load
0x40084d34: wDev_ProcessFiq at ??:?

I (381) esp_image: segment 6: paddr=0x000b7dc4 vaddr=0x400c0000 size=0x00064 ( 100)
I (381) esp_image: segment 7: paddr=0x000b7e30 vaddr=0x50000000 size=0x00010 ( 16)
I (400) boot: Loaded app from partition at offset 0x10000
I (400) boot: Disabling RNG early entropy source...
I (401) cpu_start: Pro cpu up.
I (404) cpu_start: Application information:
I (409) cpu_start: Project name: esp_my_node
I (415) cpu_start: App version: v4.1-dev-2259-ga70a6f897-dirty
I (422) cpu_start: Compile time: Feb 23 2020 23:32:34
I (428) cpu_start: ELF file SHA256: 341e89abb4d1f557...
I (434) cpu_start: ESP-IDF: v4.1-dev-2259-ga70a6f897-dirty
I (441) cpu_start: Starting app cpu, entry point is 0x4008137c
0x4008137c: call_start_cpu1 at E:/evan/esp/work/esp/esp-idf/components/esp32/cpu_start.c:274

I (0) cpu_start: App cpu up.
I (451) heap_init: Initializing. RAM available for dynamic allocation:
I (458) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (464) heap_init: At 3FFB9228 len 00026DD8 (155 KiB): DRAM
I (470) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (477) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (483) heap_init: At 400961C4 len 00009E3C (39 KiB): IRAM
I (489) cpu_start: Pro cpu start user code
I (507) spi_flash: detected chip: generic
I (508) spi_flash: flash io: dio
W (508) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (518) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (529) esp_my_node: app main
I (529) esp_my_node: Wake up from timer. Time spent in deep sleep: 10534ms

I (589) wifi: wifi driver task: 3ffc0d4c, prio:23, stack:3584, core=0
I (589) system_api: Base MAC address is not set
I (589) system_api: read default base MAC address from EFUSE
I (589) wifi: wifi firmware version: 94efb94
I (599) wifi: config NVS flash: disabled
I (599) wifi: config nano formating: disabled
I (599) wifi: Init dynamic tx buffer num: 32
I (609) wifi: Init data frame dynamic rx buffer num: 32
I (609) wifi: Init management frame dynamic rx buffer num: 32
I (619) wifi: Init management short buffer num: 32
I (619) wifi: Init static rx buffer size: 1600
I (629) wifi: Init static rx buffer num: 10
I (629) wifi: Init dynamic rx buffer num: 32
I (649) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 1
I (649) wifi: mode : sta (fc:f5:c4:45:64:80)

Re: 求助:ESP32从深度休眠唤醒到工作的时间偏长,怎么优化?

Posted: Wed Feb 26, 2020 10:41 am
by ESP_Gargamel
你可以看下:https://blog.csdn.net/zztiger123/articl ... /103296808
另外,看你已经使用 v4.1,那可以在 menuconfig 下 Bootloader config ---> Skip image validation when exiting deep sleep,把这个使能。

Re: 求助:ESP32从深度休眠唤醒到工作的时间偏长,怎么优化?

Posted: Sat Feb 29, 2020 12:48 pm
by asmart
感谢!~~