我也遇到了这个问题了,跟SHA-256没关系,也跟供电没关系,只要WiFi连上就会触发重启。试过代码注释掉WiFi初始化的流程,板子则能稳定的正常跑不会重启。同样的板子,刚开始是不会重启的,跑了20分钟左右也会出现重启现象。现在是一连上WiFi就会出现,不知道是否WiFi那个地方干扰了芯片的稳定性,需要大佬指导下。
(776) nvs: get err =0x1102
I (776) nvs: Get rf_four_func fail!
I (786) nvs: nvs_commit Done
I (786) common: Base MAC Address read from EFUSE BLK0
I (796) common: Using "0xa0, 0x76, 0x4e, 0x43, 0xf2, 0x48" as base MAC address
I (796) common: mac address:A0764E43F248
before btn init, heap: 273412
I (806) gpio: GPIO[6]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (816) TempSensor: Initializing Temperature sensor
I (826) TempSensor: default dac 2, clk_div 6
I (826) TempSensor: Temperature sensor started
I (836) sntp: Local current time is: Thu Jan 1 08:13:46 1970
I (836) gpio: GPIO[1]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (846) gpio: GPIO[7]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (856) pp: pp rom version: 9387209
I (866) net80211: net80211 rom version: 9387209
I (876) wifi:wifi driver task: 3fca1ac4, prio:23, stack:6656, core=0
I (876) system_api: Base MAC address is not set
I (876) system_api: read default base MAC address from EFUSE
I (886) wifi:wifi firmware version: 7679c42
I (886) wifi:wifi certification version: v7.0
I (896) wifi:config NVS flash: disabled
I (896) wifi:config nano formating: disabled
I (896) wifi:Init data frame dynamic rx buffer num: 32
I (906) wifi:Init management frame dynamic rx buffer num: 32
I (906) wifi:Init management short buffer num: 32
I (916) wifi:Init dynamic tx buffer num: 32
I (916) wifi:Init static tx FG buffer num: 2
I (926) wifi:Init static rx buffer size: 1600
I (926) wifi:Init static rx buffer num: 10
I (926) wifi:Init dynamic rx buffer num: 32
I (936) wifi_init: rx ba win: 6
I (936) wifi_init: tcpip mbox: 32
I (946) wifi_init: udp mbox: 6
I (946) wifi_init: tcp mbox: 6
I (946) wifi_init: tcp tx win: 5744
I (956) wifi_init: tcp rx win: 5744
I (956) wifi_init: tcp mss: 1440
I (966) wifi_init: WiFi IRAM OP enabled
I (966) wifi_init: WiFi RX IRAM OP enabled
I (976) wifi: ESP_WIFI_MODE_STA
I (976) phy_init: phy_version 907,3369105-dirty,Dec 3 2021,14:55:12
I (986) Winta: [ESP32C3-base] call rom_temp_to_power..
I (1026) wifi:mode : sta (a0:76:4e:43:f2:48)
I (1026) wifi:enable tsf
I (1026) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=2
I (1026) device: turn_led3_on
I (1026) wifi:Set ps type: 1
I (1056) wifi
<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (1666) wifi:state: init -> auth (b0)
I (1686) wifi:state: auth -> assoc (0)
I (1696) wifi:state: assoc -> run (10)
I (1736) wifi:connected with wintasoft, aid = 4, channel 1, 40U, bssid = 00:5c:86:15:7b:18
I (1736) wifi:security: WPA2-PSK, phy: bgn, rssi: -40
I (1736) wifi:pm start, type: 1
I (1736) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
I (1746) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=4
I (1756) wifi:ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x16b4
load:0x403ce000,len:0x930
load:0x403d0000,len:0x2d40
entry 0x403ce000
I (30) boot: ESP-IDF v4.4 2nd stage bootloader
I (30) boot: compile time 11:02:55
I (30) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 2
I (39) boot.esp32c3: SPI Speed : 80MHz
I (43) boot.esp32c3: SPI Mode : DIO
I (48) boot.esp32c3: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (77) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (84) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (92) boot: 3 ota_0 OTA app 00 10 00010000 00190000
I (99) boot: 4 ota_1 OTA app 00 11 001a0000 00190000
I (107) boot: 5 storage Unknown data 01 82 00330000 00012000
I (114) boot: End of partition table
I (118) boot_comm: chip revision: 3, min. application chip revision: 2
I (126) esp_image: segment 0: paddr=00010020 vaddr=3c110020 size=39770h (235376) map
I (171) esp_image: segment 1: paddr=00049798 vaddr=3fc90200 size=03748h ( 14152) load
I (174) esp_image: segment 2: paddr=0004cee8 vaddr=40380000 size=03130h ( 12592) load
I (179) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=10fad8h (1112792) map
I (359) esp_image: segment 4: paddr=0015fb00 vaddr=40383130 size=0cf04h ( 52996) load
I (369) esp_image: segment 5: paddr=0016ca0c vaddr=50000010 size=00010h ( 16) load
I (374) boot: Loaded app from partition at offset 0x10000
I (375) boot: Disabling RNG early entropy source...
I (389) cpu_start: Pro cpu up.
I (398) cpu_start: Pro cpu start user code
I (398) cpu_start: cpu freq: 160000000
I (398) cpu_start: Application information:
I (400) cpu_start: Project name: esp32c3-base
I (406) cpu_start: App version: B03
I (410) cpu_start: Compile time: Nov 19 2022 00:10:06
I (416) cpu_start: ELF file SHA256: 05f683a475197e07...
I (422) cpu_start: ESP-IDF: v4.4
I (427) heap_init: Initializing. RAM available for dynamic allocation:
I (434) heap_init: At 3FC983E0 len 00027C20 (159 KiB): DRAM
I (441) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (447) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (454) spi_flash: detected chip: generic
I (458) spi_flash: flash io: dio
I (463) sleep: Configure to isolate all GPIO pins in sleep state
I (469) sleep: Enable automatic switching of GPIO sleep configuration
I (476) coexist: coexist rom version 9387209
I (481) cpu_start: Starting scheduler.
I (486) Winta: [ESP32C3-base] Startup..
I (486) Winta: [APP] Free memory: 278756 bytes
I (486) Winta: [APP] IDF version: v4.4
I (496) device: Configured to led and relay GPIO!
I (506) gpio: GPIO[10]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (506) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (516) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (526) gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (536) gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (546) nvs: Get ssid success!
I (546) nvs: nvs_commit Done
I (556) nvs: Get pwd success!
I (556) nvs: nvs_commit Done
I (566) nvs: Nothing saved yet! key=owner_id
I (566) nvs: nvs_commit Done
I (566) nvs: Get devdef_name success!
I (576) nvs: nvs_commit Done
I (576) nvs: Nothing saved yet! key=serialno
I (586) nvs: nvs_commit Done
I (586) nvs: Get key_remark success!
I (586) nvs: nvs_commit Done
I (596) nvs: Get firmware_ver success!
I (596) nvs: nvs_commit Done
I (606) nvs: Get relay_status success!
I (606) nvs: nvs_commit Done
I (606) nvs: Get light_status success!
I (616) nvs: nvs_commit Done
I (616) nvs: get err =0x1102
I (626) nvs: Get light_mode fail!
I (626) nvs: nvs_commit Done
I (626) nvs: get err =0x1102
I (636) nvs: Get brightness fail!
I (636) nvs: nvs_commit Done
I (636) nvs: get err =0x1102
I (646) nvs: Get is_radar fail!
I (646) nvs: nvs_commit Done
I (656) nvs: get err =0x1102
I (656) nvs: Get is_alarm fail!
I (656) nvs: nvs_commit Done
I (666) nvs: get err =0x1102
I (666) nvs: Get is_wifi_offline fail!
I (666) nvs: nvs_commit Done
I (676) nvs: get err =0x1102
I (676) nvs: Get light_interval fail!
I (686) nvs: nvs_commit Done
I (686) nvs: get err =0x1102
I (686) nvs: Get radar_interval fail!
I (696) nvs: nvs_commit Done
I (696) nvs: get err =0x1102
I (696) nvs: Get fade_time fail!
I (706) nvs: nvs_commit Done
I (706) nvs: get err =0x1102
I (716) nvs: Get is_open_certifi fail!
I (716) nvs: nvs_commit Done
I (716) nvs: get err =0x1102
I (726) nvs: Get is_host fail!
I (726) nvs: nvs_commit Done
I (726) nvs: get err =0x1102
I (736) nvs: Get is_rf_control fail!
I (736) nvs: nvs_commit Done
I (746) nvs: get err =0x1102
I (746) nvs: Get rf_one_func fail!
I (746) nvs: nvs_commit Done
I (756) nvs: get err =0x1102
I (756) nvs: Get rf_two_func fail!
I (756) nvs: nvs_commit Done
I (766) nvs: get err =0x1102
I (766) nvs: Get rf_three_func fail!
I (776) nvs: nvs_commit Done
I (776) nvs: get err =0x1102
I (776) nvs: Get rf_four_func fail!
I (786) nvs: nvs_commit Done
I (786) common: Base MAC Address read from EFUSE BLK0
I (796) common: Using "0xa0, 0x76, 0x4e, 0x43, 0xf2, 0x48" as base MAC address
I (796) common: mac address:A0764E43F248
before btn init, heap: 273412
I (806) gpio: GPIO[6]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (816) TempSensor: Initializing Temperature sensor
I (826) TempSensor: default dac 2, clk_div 6
I (826) TempSensor: Temperature sensor started
I (836) sntp: Local current time is: Thu Jan 1 08:13:46 1970
I (836) gpio: GPIO[1]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (846) gpio: GPIO[7]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (856) pp: pp rom version: 9387209
I (866) net80211: net80211 rom version: 9387209
I (876) wifi:wifi driver task: 3fca1ac4, prio:23, stack:6656, core=0
I (876) system_api: Base MAC address is not set
I (876) system_api: read default base MAC address from EFUSE
I (886) wifi:wifi firmware version: 7679c42
I (886) wifi:wifi certification version: v7.0
I (896) wifi:config NVS flash: disabled
I (896) wifi:config nano formating: disabled
I (896) wifi:Init data frame dynamic rx buffer num: 32
I (906) wifi:Init management frame dynamic rx buffer num: 32
I (906) wifi:Init management short buffer num: 32
I (916) wifi:Init dynamic tx buffer num: 32
I (916) wifi:Init static tx FG buffer num: 2
I (926) wifi:Init static rx buffer size: 1600
I (926) wifi:Init static rx buffer num: 10
I (926) wifi:Init dynamic rx buffer num: 32
I (936) wifi_init: rx ba win: 6
I (936) wifi_init: tcpip mbox: 32
I (946) wifi_init: udp mbox: 6
I (946) wifi_init: tcp mbox: 6
I (946) wifi_init: tcp tx win: 5744
I (956) wifi_init: tcp rx win: 5744
I (956) wifi_init: tcp mss: 1440
I (966) wifi_init: WiFi IRAM OP enabled
I (966) wifi_init: WiFi RX IRAM OP enabled
I (976) wifi: ESP_WIFI_MODE_STA
I (976) phy_init: phy_version 907,3369105-dirty,Dec 3 2021,14:55:12
I (986) Winta: [ESP32C3-base] call rom_temp_to_power..
I (1026) wifi:mode : sta (a0:76:4e:43:f2:48)
I (1026) wifi:enable tsf
I (1026) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=2
I (1026) device: turn_led3_on
I (1026) wifi:Set ps type: 1
I (1036) wifi
<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (1646) wifi:state: init -> auth (b0)
I (1666) wifi:state: auth -> assoc (0)
I (1666) wifi:state: assoc -> run (10)
I (1706) wifi:connected with wintasoft, aid = 4, channel 1, 40U, bssid = 00:5c:86:15:7b:18
I (1706) wifi:security: WPA2-PSK, phy: bgn, rssi: -38
I (1706) wifi:pm start, type: 1
I (1706) wifi:set rx beacon pti, rx_bcn_pti: 14, bcn_timeout: 14, mt_pti: 25000, mt_time: 10000
I (1716) wifi: station event handler begin,event_base=WIFI_EVENT, event_id=4
I (1726) wifi: Network connected
I (1746) wifi:BcnInt:102400, DTIM:1
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x16b4
load:0x403ce000,len:0x930
load:0x403d0000,len:0x2d40
entry 0x403ce000
I (30) boot: ESP-IDF v4.4 2nd stage bootloader
I (30) boot: compile time 11:02:55
I (30) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 2
I (39) boot.esp32c3: SPI Speed : 80MHz
I (43) boot.esp32c3: SPI Mode : DIO
I (48) boot.esp32c3: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (77) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (84) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (92) boot: 3 ota_0 OTA app 00 10 00010000 00190000
I (99) boot: 4 ota_1 OTA app 00 11 001a0000 00190000
I (107) boot: 5 storage Unknown data 01 82 00330000 00012000