完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
【环境】idf版本4.4,
【问题】在需要省电的时候,我调用adc_digi_stop()和dac_digi_stop()关闭ADC/DAC功能,同时调用esp_now_set_wake_window(ESPNOW_WAKEUP_tiME_MS)用手任意触摸开发板的脚位,就会一直重启, 如果只调用adc_digi_stop()和dac_digi_stop()不会有异常,只调用esp_now_set_wake_window(ESPNOW_WAKEUP_TIME_MS)也不会有异常,两个都调用都会一直重启 menuconfig修改如下Code: Select all component config-> ESP32S2-specific-> CPU frequency-> 240MHZ RTC clock source-> Internal 8MHz oscillator, divided by 256(~32kHz) Power Management-> Support for power management-> Enable dynamic frequency scaling (DFS) at startup WI-FI-> Power Management for station at disconnected FreeRTOS-> Tickless idle support 【部分日志】Code: Select all ELF file SHA256: 86660b37867889e0Rebooting...ESP-ROM:esp32s2-rc4-20191025Build:Oct 25 2019rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)Saved PC:0x400235e00x400235e0: esp_restart_noos at C:/Users/Administrator/Desktop/esp-idf/components/esp_system/port/soc/esp32s2/system_internal.c:112 (discriminator 1)SPIWP:0xeemode:DIO, clock div:1load:0x3ffe6100,len:0x1734load:0x4004c000,len:0xa04load:0x40050000,len:0x2b28entry 0x4004c1f4I (24) boot: ESP-IDF v4.4-dev-1254-g639e7ad49-dirty 2nd stage bootloaderI (24) boot: compile time 16:13:47I (24) boot: chip revision: 0I (28) boot.esp32s2: SPI Speed : 80MHzI (33) boot.esp32s2: SPI Mode : DIOI (38) boot.esp32s2: SPI Flash Size : 2MBI (42) boot: Enabling RNG early entropy source...I (48) boot: Partition Table:I (51) boot: ## Label Usage Type ST Offset LengthI (59) boot: 0 nvs WiFi data 01 02 00009000 00006000I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000I (74) boot: 2 factory factory app 00 00 00010000 00100000I (81) boot: End of partition tableI (85) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=1f438h (128056) mapI (121) esp_image: segment 1: paddr=0002f460 vaddr=3ffc82c0 size=00bb8h ( 3000) loadI (122) esp_image: segment 2: paddr=00030020 vaddr=40080020 size=735fch (472572) mapI (229) esp_image: segment 3: paddr=000a3624 vaddr=3ffc8e78 size=02940h ( 10560) loadI (231) esp_image: segment 4: paddr=000a5f6c vaddr=40022000 size=162b8h ( 90808) loadI (258) esp_image: segment 5: paddr=000bc22c vaddr=50000000 size=00010h ( 16) loadI (270) boot: Loaded app from partition at offset 0x10000I (271) boot: Disabling RNG early entropy source...I (282) cache: Instruction cache : size 8KB, 4Ways, cache line size 32ByteI (282) cpu_start: Pro cpu up.I (303) cpu_start: Pro cpu start user codeI (303) cpu_start: cpu freq: 240000000I (304) cpu_start: Application information:I (306) cpu_start: Project name: dsrI (311) cpu_start: App version: v4.4-dev-1254-g639e7ad49-dirtyI (318) cpu_start: Compile time: Sep 22 2021 16:12:24I (324) cpu_start: ELF file SHA256: 86660b37867889e0...I (330) cpu_start: ESP-IDF: v4.4-dev-1254-g639e7ad49-dirtyI (337) heap_init: Initializing. RAM available for dynamic allocation:I (344) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAMI (350) heap_init: At 3FFD12F0 len 0002AD10 (171 KiB): DRAMI (357) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAMI (363) spi_flash: detected chip: genericI (367) spi_flash: flash io: dioW (371) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.I (396) pm: Frequency switching config: CPU_MAX: 240, APB_MAX: 80, APB_MIN: 40, Light sleep: DISABLEDI (396) cpu_start: Starting scheduler on PRO CPU.Hello world!This is esp32s2 chip with 1 CPU cores, WiFi, silicon revision 0, 2MB external flashFree heap: 179308esp_clk_cpu_freq: 240000000esp_clk_apb_freq: ��I (473) wifi:wifi driver task: 3ffd9b10, prio:23, stack:6656, core=0I (473) system_api: Base MAC address is not setI (473) system_api: read default base MAC address from EFUSEI (483) wifi:wifi firmware version: 44799ffI (483) wifi:wifi certification version: v7.0I (483) wifi:config NVS flash: enabledI (483) wifi:config nano formating: disabledI (493) wifi:Init data frame dynamic rx buffer num: 32I (493) wifi:Init management frame dynamic rx buffer num: 32I (503) wifi:Init management short buffer num: 32I (503) wifi:Init dynamic tx buffer num: 32I (513) wifi:Init static rx buffer size: 1600I (513) wifi:Init static rx buffer num: 10I (513) wifi:Init dynamic rx buffer num: 32I (523) wifi_init: rx ba win: 6I (523) wifi_init: tcpip mbox: 32I (533) wifi_init: udp mbox: 6I (533) wifi_init: tcp mbox: 6I (533) wifi_init: tcp tx win: 5744I (543) wifi_init: tcp rx win: 5744I (543) wifi_init: tcp mss: 1440I (553) wifi_init: WiFi IRAM OP enabledI (553) wifi_init: WiFi RX IRAM OP enabledI (563) phy_init: phy_version 1800,e7ef680,Apr 13 2021,11:45:08I (713) wifi:mode : sta (7c:df:a1:00:41:b1)I (713) wifi:enable tsfI (713) wifi:enable tsfI (713) wifi:set country: cc=JP schan=1 nchan=14 policy=0I (713) ESPNOW: espnow [version: 1.0] initI (713) pm: Frequency switching config: CPU_MAX: 240, APB_MAX: 80, APB_MIN: 10, Light sleep: ENABLEDI (723) wifi:Set ps type: 1abort() was called at PC 0x400250df on core 00x400250df: lock_acquire_generic at C:/Users/Administrator/Desktop/esp-idf/components/newlib/locks.c:138Backtrace:0x40083063:0x3ffd93900x4002c1ed:0x3ffd93b0 0x40032c6e:0x3ffd93d0 0x400250df:0x3ffd9440 0x40025229:0x3ffd9470 0x400e941a:0x3ffd9490 0x400ec479:0x3ffd97a0 0x400f3601:0x3ffd97d0 0x400316f9:0x3ffd9800 0x400dc2ad:0x3ffd9850 0x400dc2d7:0x3ffd98d0 0x40027daf:0x3ffd9920 0x40028f7d:0x3ffd9990 0x40094c30:0x3ffd99b0 0x40032b55:0x3ffd99d0 0x400c7fb1:0x3ffd99f0 0x400c7fd6:0x3ffd9a10 0x400c8238:0x3ffd9a30 0x400c8a5b:0x3ffd9a50 0x400caa09:0x3ffd9a70 0x400f1f8d:0x3ffd9a90 0x400345de:0x3ffd9ab0 0x4002ec09:0x3ffd9ae00x40083063: panic_abort at C:/Users/Administrator/Desktop/esp-idf/components/esp_system/panic.c:3790x4002c1ed: esp_system_abort at C:/Users/Administrator/Desktop/esp-idf/components/esp_system/esp_system.c:1260x40032c6e: abort at C:/Users/Administrator/Desktop/esp-idf/components/newlib/abort.c:460x400250df: lock_acquire_generic at C:/Users/Administrator/Desktop/esp-idf/components/newlib/locks.c:1380x40025229: _lock_acquire_recursive at C:/Users/Administrator/Desktop/esp-idf/components/newlib/locks.c:1660x400e941a: _vfprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s2-elf/src/newlib/newlib/libc/stdio/vfprintf.c:853 (discriminator 2)0x400ec479: vprintf at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s2-elf/src/newlib/newlib/libc/stdio/vprintf.c:34 (discriminator 5)0x400f3601: esp_log_writev at C:/Users/Administrator/Desktop/esp-idf/components/log/log.c:1810x400316f9: esp_log_write at C:/Users/Administrator/Desktop/esp-idf/components/log/log.c:1910x400dc2ad: lib_printf at C:/Users/Administrator/Desktop/esp-idf/components/esp_wifi/src/lib_printf.c:47 (discriminator 13)0x400dc2d7: phy_printf at C:/Users/Administrator/Desktop/esp-idf/components/esp_wifi/src/lib_printf.c:570x40027daf: phy_i2c_init1 at ??:?0x40028f7d: phy_wakeup_init at ??:?0x40094c30: esp_phy_enable at C:/Users/Administrator/Desktop/esp-idf/components/esp_wifi/src/phy_init.c:2400x40032b55: wifi_rf_phy_enable at ??:?0x400c7fb1: lmac_stop_hw_txq at ??:?0x400c7fd6: lmac_stop_hw_txq at ??:?0x400c8238: pm_update_by_connectionless_status at ??:?0x400c8a5b: pm_connectionless_wake_interval_timeout_process at ??:?0x400caa09: dbg_lmac_ps_statis_reset at ??:?0x400f1f8d: pp_timer_do_process at ??:?0x400345de: ppTask at ??:?0x4002ec09: vPortTaskWrapper at C:/Users/Administrator/Desktop/esp-idf/components/freertos/port/xtensa/port.c:168 |
|
相关推荐
1个回答
|
|
根据您提供的信息,您在使用ESP32S2时遇到了在关闭ADC/DAC功能并设置ESPNOW唤醒窗口后,开发板不断重启的问题。这个问题可能是由以下几个原因导致的:
1. **电源问题**:关闭ADC/DAC后,可能会影响到电源管理,导致系统不稳定。请检查电源是否稳定,以及是否有足够的电流供应。 2. **GPIO配置问题**:您提到在触摸开发板的脚位时出现重启现象,这可能是由于GPIO配置不当导致的。请检查GPIO配置,确保它们没有被错误地设置为输入或输出模式。 3. **ESPNOW唤醒窗口设置问题**:可能存在ESPNOW唤醒窗口设置不当的问题。请检查esp_now_set_wake_window(ESPNOW_WAKEUP_TIME_MS)函数的参数设置是否正确。 4. **软件冲突**:关闭ADC/DAC和设置ESPNOW唤醒窗口可能与其他正在运行的软件模块产生冲突。请检查您的代码,确保没有其他模块在同时使用ADC/DAC或ESPNOW。 5. **硬件问题**:如果以上原因都排除了,那么可能是硬件本身存在问题。您可以尝试更换一块新的开发板进行测试。 为了解决这个问题,您可以尝试以下步骤: 1. 检查电源供应是否稳定,确保开发板有足够的电流供应。 2. 检查GPIO配置,确保它们没有被错误地设置为输入或输出模式。 3. 检查esp_now_set_wake_window(ESPNOW_WAKEUP_TIME_MS)函数的参数设置是否正确。 4. 检查代码,确保没有其他模块在同时使用ADC/DAC或ESPNOW。 5. 如果问题仍然存在,尝试更换一块新的开发板进行测试。 希望这些建议能帮助您解决问题。如果问题仍然存在,请提供更多详细信息,以便我们能够更好地帮助您。 |
|
|
|
只有小组成员才能发言,加入小组>>
1153 浏览 1 评论
584浏览 6评论
480浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
465浏览 5评论
466浏览 4评论
441浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 20:27 , Processed in 1.099451 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号