完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
【环境】idf版本4.3,VSCode idf插件。
【问题】我在尝试idf中的power_save例程,我仅仅在menuconfig中修改了SSID和password以及WiFi listen interval设置为1,烧录到ESP32S2-MINI-1中运行一段时间后会出现如下错误,并且重启数次。同样的代码,放到ESP32-wroom上就没有问题。 并且我尝试过在ESP32S2上取消Support for power management选项中就不会出现此类错误。是因为ESP32S2不支持吗?还是我的S2有问题? 【部分日志】 I (530) wifi:new:<5,1>, old:<1,0>, ap:<255,255>, sta:<5,1>, prof:1I (530) wifi:state: init -> auth (b0)I (530) wifi:state: auth -> assoc (0)I (530) wifi:state: assoc -> run (10)W (540) wifi:idx:0 (ifx:0, 2e:15:e1:25:d2:22), tid:5, ssn:0, winSize:64W (590) wifi:idx:1 (ifx:0, 2e:15:e1:25:d2:22), tid:0, ssn:2, winSize:64I (590) wifi:connected with 109-2.4G, aid = 1, channel 5, 40U, bssid = 2e:15:e1:25:d2:22I (590) wifi:security: WPA2-PSK, phy: bgn, rssi: -51I (590) wifi:pm start, type: 1I (610) wifi:AP's beacon interval = 102400 us, DTIM period = 1I (1390) esp_netif_handlers: sta ip: 192.168.123.100, mask: 255.255.255.0, gw: 192.168.123.1I (1390) power_save: got ip: 192.168.123.100abort() was called at PC 0x40024853 on core 00x40024853: lock_acquire_generic at E:/Espressif/esp-idf/components/newlib/locks.c:138Backtrace:0x4002b70f:0x3ffd3050 0x4002c32d:0x3ffd3070 0x4003316a:0x3ffd3090 0x40024853:0x3ffd3100 0x4002499d:0x3ffd3130 0x4001a245:0x3ffd3150 0x40000baa:0x3ffd3170 0x40000a65:0x3ffd3220 0x4001a428:0x3ffd3270 0x4002daa1:0x3ffd32a0 0x40024de9:0x3ffd32c0 0x4002d8c2:0x3ffd32e0 0x4002f1ad:0x3ffd33000x4002b70f: panic_abort at E:/Espressif/esp-idf/components/esp_system/panic.c:3560x4002c32d: esp_system_abort at E:/Espressif/esp-idf/components/esp_system/system_api.c:1120x4003316a: abort at E:/Espressif/esp-idf/components/newlib/abort.c:460x40024853: lock_acquire_generic at E:/Espressif/esp-idf/components/newlib/locks.c:1380x4002499d: _lock_acquire_recursive at E:/Espressif/esp-idf/components/newlib/locks.c:1660x4002daa1: vTaskStepTick at E:/Espressif/esp-idf/components/freertos/tasks.c:2855 (discriminator 1)0x40024de9: vApplicationSleep at E:/Espressif/esp-idf/components/esp_pm/pm_impl.c:6470x4002d8c2: prvIdleTask at E:/Espressif/esp-idf/components/freertos/tasks.c:38820x4002f1ad: vPortTaskWrapper at E:/Espressif/esp-idf/components/freertos/port/xtensa/port.c:168ELF file SHA256: 8a2caa1c0a5cc90dRebooting...ESP-ROM:esp32s2-rc4-20191025Build:Oct 25 2019rst:0xc (RTC_SW_CPU_RST),boot:0xb (SPI_FAST_FLASH_BOOT)Saved PC:0x400241b00x400241b0: esp_restart_noos at E:/Espressif/esp-idf/components/esp32s2/system_api_esp32s2.c:109 (discriminator 1)SPIWP:0xeemode:DIO, clock div:1load:0x3ffe6100,len:0x1800load:0x4004c000,len:0x9e8load:0x40050000,len:0x2b70SHA-256 comparison failed:Calculated: ac45cfcb2454d7e8d7c849d8aa0d37e69fb199f50323370616c52a4d38e094c9Expected: 922e3db13a75acd3c1eca495d3ae055e9c7cd03921b3a185ffb2add79d9f9e69Attempting to boot anyway...entry 0x4004c1ecI (42) boot: ESP-IDF v4.3 2nd stage bootloaderI (42) boot: compile time 17:14:10I (42) boot: chip revision: 0I (44) boot.esp32s2: SPI Speed : 80MHzI (49) boot.esp32s2: SPI Mode : DIOI (54) boot.esp32s2: SPI Flash Size : 4MBI (59) boot: Enabling RNG early entropy source...I (64) boot: Partition Table:I (68) boot: ## Label Usage Type ST Offset LengthI (75) boot: 0 nvs WiFi data 01 02 00009000 00006000I (82) boot: 1 phy_init RF data 01 01 0000f000 00001000I (90) boot: 2 factory factory app 00 00 00010000 00100000I (97) boot: End of partition tableI (101) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=16fa0h ( 94112) mapI (130) esp_image: segment 1: paddr=00026fc8 vaddr=3ffc8bf0 size=03ed0h ( 16080) loadI (134) esp_image: segment 2: paddr=0002aea0 vaddr=40022000 size=05178h ( 20856) loadI (142) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=6c354h (443220) mapI (240) esp_image: segment 4: paddr=0009c37c vaddr=40027178 size=11a6ch ( 72300) loadI (259) esp_image: segment 5: paddr=000addf0 vaddr=50000000 size=00010h ( 16) loadI (272) boot: Loaded app from partition at offset 0x10000I (272) boot: Disabling RNG early entropy source...I (283) cache: Instruction cache : size 8KB, 4Ways, cache line size 32ByteI (283) cpu_start: Pro cpu up.I (297) cpu_start: Pro cpu start user codeI (297) cpu_start: cpu freq: 160000000I (297) cpu_start: Application information:I (302) cpu_start: Project name: power_saveI (307) cpu_start: App version: 1I (311) cpu_start: Compile time: Sep 13 2021 18:14:44I (318) cpu_start: ELF file SHA256: 8a2caa1c0a5cc90d...I (324) cpu_start: ESP-IDF: v4.3I (328) heap_init: Initializing. RAM available for dynamic allocation:I (335) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAMI (342) heap_init: At 3FFD11E8 len 0002AE18 (171 KiB): DRAMI (348) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAMI (354) spi_flash: detected chip: genericI (359) spi_flash: flash io: dioI (374) sleep: Configure to isolate all GPIO pins in sleep stateI (375) cpu_start: Starting scheduler on PRO CPU.I (382) pm: Frequency switching config: CPU_MAX: 80, APB_MAX: 80, APB_MIN: 10, Light sleep: ENABLEDI (382) sleep: Enable automatic switching of GPIO sleep configurationI (402) wifi:wifi driver task: 3ffd8cfc, prio:23, stack:6656, core=0I (402) system_api: Base MAC address is not setI (402) system_api: read default base MAC address from EFUSEI (412) wifi:wifi firmware version: c7d0450I (412) wifi:wifi certification version: v7.0I (412) wifi:config NVS flash: enabledI (412) wifi:config nano formating: disabledI (412) wifi:Init data frame dynamic rx buffer num: 32I (412) wifi:Init management frame dynamic rx buffer num: 32I (412) wifi:Init management short buffer num: 32I (422) wifi:Init dynamic tx buffer num: 32I (422) wifi:Init static rx buffer size: 1600I (422) wifi:Init static rx buffer num: 10I (422) wifi:Init dynamic rx buffer num: 32I (432) wifi_init: rx ba win: 6I (432) wifi_init: tcpip mbox: 32I (432) wifi_init: udp mbox: 6I (432) wifi_init: tcp mbox: 6I (432) wifi_init: tcp tx win: 5744I (432) wifi_init: tcp rx win: 5744I (442) wifi_init: tcp mss: 1440I (442) wifi_init: WiFi IRAM OP enabledI (442) wifi_init: WiFi RX IRAM OP enabledI (442) wifi_init: WiFi SLP IRAM OP enabledI (452) phy_init: phy_version 1800,e7ef680,Apr 13 2021,11:45:08I (522) wifi:mode : sta (7c:df:a1:97:42:10)I (522) wifi:enable tsfI (522) power_save: esp_wifi_set_ps().I (522) wifi:Set ps type: 1I (532) wifi:new:<5,1>, old:<1,0>, ap:<255,255>, sta:<5,1>, prof:1I (532) wifi:state: init -> auth (b0)I (532) wifi:state: auth -> assoc (0)I (532) wifi:state: assoc -> run (10)W (532) wifi:idx:0 (ifx:0, 2e:15:e1:25:d2:22), tid:5, ssn:0, winSize:64W (592) wifi:idx:1 (ifx:0, 2e:15:e1:25:d2:22), tid:0, ssn:2, winSize:64I (592) wifi:connected with 109-2.4G, aid = 1, channel 5, 40U, bssid = 2e:15:e1:25:d2:22I (592) wifi:security: WPA2-PSK, phy: bgn, rssi: -52I (592) wifi:pm start, type: 1I (592) wifi:AP's beacon interval = 102400 us, DTIM period = 1W (632) rtc_clk: invalid RTC_XTAL_FREQ_REG value: 0x00000000abort() was called at PC 0x40024853 on core 00x40024853: lock_acquire_generic at E:/Espressif/esp-idf/components/newlib/locks.c:138Backtrace:0x4002b70f:0x3ffd3050 0x4002c32d:0x3ffd3070 0x4003316a:0x3ffd3090 0x40024853:0x3ffd3100 0x4002499d:0x3ffd3130 0x4001a245:0x3ffd3150 0x40000baa:0x3ffd3170 0x40000a65:0x3ffd3220 0x4001a428:0x3ffd3270 0x4002daa1:0x3ffd32a0 0x40024de9:0x3ffd32c0 0x4002d8c2:0x3ffd32e0 0x4002f1ad:0x3ffd33000x4002b70f: panic_abort at E:/Espressif/esp-idf/components/esp_system/panic.c:3560x4002c32d: esp_system_abort at E:/Espressif/esp-idf/components/esp_system/system_api.c:1120x4003316a: abort at E:/Espressif/esp-idf/components/newlib/abort.c:460x40024853: lock_acquire_generic at E:/Espressif/esp-idf/components/newlib/locks.c:1380x4002499d: _lock_acquire_recursive at E:/Espressif/esp-idf/components/newlib/locks.c:1660x4002daa1: vTaskStepTick at E:/Espressif/esp-idf/components/freertos/tasks.c:2855 (discriminator 1)0x40024de9: vApplicationSleep at E:/Espressif/esp-idf/components/esp_pm/pm_impl.c:6470x4002d8c2: prvIdleTask at E:/Espressif/esp-idf/components/freertos/tasks.c:38820x4002f1ad: vPortTaskWrapper at E:/Espressif/esp-idf/components/freertos/port/xtensa/port.c:168ELF file SHA256: 8a2caa1c0a5cc90dRebooting...ESP-ROM:esp32s2-rc4-20191025Build:Oct 25 2019rst:0xc (RTC_SW_CPU_RST),boot:0xb (SPI_FAST_FLASH_BOOT)Saved PC:0x400241b00x400241b0: esp_restart_noos at E:/Espressif/esp-idf/components/esp32s2/system_api_esp32s2.c:109 (discriminator 1)SPIWP:0xeemode:DIO, clock div:1load:0x3ffe6100,len:0x1800load:0x4004c000,len:0x9e8load:0x40050000,len:0x2b70SHA-256 comparison failed:Calculated: ac45cfcb2454d7e8d7c849d8aa0d37e69fb199f50323370616c52a4d38e094c9Expected: 922e3db13a75acd3c1eca495d3ae055e9c7cd03921b3a185ffb2add79d9f9e69Attempting to boot anyway...entry 0x4004c1ecI (42) boot: ESP-IDF v4.3 2nd stage bootloaderI (42) boot: compile time 17:14:10I (42) boot: chip revision: 0I (44) boot.esp32s2: SPI Speed : 80MHzI (49) boot.esp32s2: SPI Mode : DIOI (54) boot.esp32s2: SPI Flash Size : 4MBI (59) boot: Enabling RNG early entropy source...I (64) boot: Partition Table:I (68) boot: ## Label Usage Type ST Offset LengthI (75) boot: 0 nvs WiFi data 01 02 00009000 00006000I (82) boot: 1 phy_init RF data 01 01 0000f000 00001000I (90) boot: 2 factory factory app 00 00 00010000 00100000I (97) boot: End of partition tableI (101) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=16fa0h ( 94112) mapI (130) esp_image: segment 1: paddr=00026fc8 vaddr=3ffc8bf0 size=03ed0h ( 16080) loadI (134) esp_image: segment 2: paddr=0002aea0 vaddr=40022000 size=05178h ( 20856) loadI (142) esp_image: segment 3: paddr=00030020 vaddr=40080020 size=6c354h (443220) mapI (240) esp_image: segment 4: paddr=0009c37c vaddr=40027178 size=11a6ch ( 72300) loadI (259) esp_image: segment 5: paddr=000addf0 vaddr=50000000 size=00010h ( 16) loadI (272) boot: Loaded app from partition at offset 0x10000I (272) boot: Disabling RNG early entropy source...I (283) cache: Instruction cache : size 8KB, 4Ways, cache line size 32ByteI (283) cpu_start: Pro cpu up.I (297) cpu_start: Pro cpu start user codeI (297) cpu_start: cpu freq: 160000000I (297) cpu_start: Application information:I (302) cpu_start: Project name: power_saveI (307) cpu_start: App version: 1I (311) cpu_start: Compile time: Sep 13 2021 18:14:44I (318) cpu_start: ELF file SHA256: 8a2caa1c0a5cc90d...I (324) cpu_start: ESP-IDF: v4.3I (328) heap_init: Initializing. RAM available for dynamic allocation:I (335) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAMI (342) heap_init: At 3FFD11E8 len 0002AE18 (171 KiB): DRAMI (348) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAMI (354) spi_flash: detected chip: genericI (359) spi_flash: flash io: dioI (374) sleep: Configure to isolate all GPIO pins in sleep stateI (375) cpu_start: Starting scheduler on PRO CPU.I (382) pm: Frequency switching config: CPU_MAX: 80, APB_MAX: 80, APB_MIN: 10, Light sleep: ENABLEDI (382) sleep: Enable automatic switching of GPIO sleep configurationI (402) wifi:wifi driver task: 3ffd8cfc, prio:23, stack:6656, core=0I (402) system_api: Base MAC address is not setI (402) system_api: read default base MAC address from EFUSEI (412) wifi:wifi firmware version: c7d0450I (412) wifi:wifi certification version: v7.0I (412) wifi:config NVS flash: enabledI (412) wifi:config nano formating: disabledI (412) wifi:Init data frame dynamic rx buffer num: 32I (412) wifi:Init management frame dynamic rx buffer num: 32I (412) wifi:Init management short buffer num: 32I (422) wifi:Init dynamic tx buffer num: 32I (422) wifi:Init static rx buffer size: 1600I (422) wifi:Init static rx buffer num: 10I (422) wifi:Init dynamic rx buffer num: 32I (432) wifi_init: rx ba win: 6I (432) wifi_init: tcpip mbox: 32I (432) wifi_init: udp mbox: 6I (432) wifi_init: tcp mbox: 6I (432) wifi_init: tcp tx win: 5744I (432) wifi_init: tcp rx win: 5744I (442) wifi_init: tcp mss: 1440I (442) wifi_init: WiFi IRAM OP enabledI (442) wifi_init: WiFi RX IRAM OP enabledI (442) wifi_init: WiFi SLP IRAM OP enabledI (452) phy_init: phy_version 1800,e7ef680,Apr 13 2021,11:45:08I (522) wifi:mode : sta (7c:df:a1:97:42:10)I (522) wifi:enable tsfI (522) power_save: esp_wifi_set_ps().I (532) wifi:Set ps type: 1I (532) wifi:new:<5,1>, old:<1,0>, ap:<255,255>, sta:<5,1>, prof:1I (532) wifi:state: init -> auth (b0)I (532) wifi:state: auth -> assoc (0)I (532) wifi:state: assoc -> run (10)W (542) wifi:idx:0 (ifx:0, 2e:15:e1:25:d2:22), tid:5, ssn:0, winSize:64W (592) wifi:idx:1 (ifx:0, 2e:15:e1:25:d2:22), tid:0, ssn:2, winSize:64I (592) wifi:connected with 109-2.4G, aid = 1, channel 5, 40U, bssid = 2e:15:e1:25:d2:22I (592) wifi:security: WPA2-PSK, phy: bgn, rssi: -52I (592) wifi:pm start, type: 1I (602) wifi:AP's beacon interval = 102400 us, DTIM period = 1W (632) rtc_clk: invalid RTC_XTAL_FREQ_REG value: 0x000000ESP-ROM:esp32s2-rc4-20191025Build:Oct 25 2019rst:0x10 (RTCWDT_RTC_RST),boot:0xb (SPI_FAST_FLASH_BOOT)SPIWP:0xeemode:DIO, clock div:1load:0x3ffe6100,len:0x1800load:0x4004c000,len:0x9e8load:0x40050000,len:0x2b70SHA-256 comparison failed:Calculated: ac45cfcb2454d7e8d7c849d8aa0d37e69fb199f50323370616c52a4d38e094c9Expected: 922e3db13a75acd3c1eca495d3ae055e9c7cd03921b3a185ffb2add79d9f9e69Attempting to boot anyway...entry 0x4004c1ec |
|
相关推荐
1个回答
|
|
根据您提供的信息,我将尝试分析问题并提供可能的原因和解决方案。
1. 首先,我们需要确定问题是否与ESP32S2硬件有关。您提到在ESP32-WROOM上运行相同的代码没有问题,这表明问题可能与ESP32S2有关。 2. 其次,您提到在ESP32S2上取消Support for power management选项后,问题不再出现。这可能意味着问题与ESP32S2的电源管理功能有关。 3. 接下来,我们需要查看您提供的日志。日志显示在I (530) wifi:new:<5,1>, old:<1,0>, ap:<255,255>, sta:<5,1>, prof:1处出现问题。这可能表明WiFi连接状态发生了变化,但不足以确定问题的根本原因。 为了解决这个问题,您可以尝试以下步骤: 1. 确保您的ESP32S2硬件没有问题。您可以尝试使用其他ESP32S2设备或在不同的ESP32S2设备上运行相同的代码,以排除硬件问题。 2. 检查您的ESP32S2设备是否支持所需的电源管理功能。您可以查阅ESP32S2的技术文档和数据手册,以了解其电源管理功能的限制和要求。 3. 尝试更新您的ESP32S2设备的固件和软件。有时,固件或软件中的bug可能导致问题。您可以检查ESP-IDF的更新日志,看看是否有与您的问题相关的修复。 |
|
|
|
只有小组成员才能发言,加入小组>>
1032 浏览 1 评论
562浏览 6评论
470浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
454浏览 5评论
455浏览 4评论
428浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-4 03:00 , Processed in 1.163114 second(s), Total 83, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号