esp32s3 light_sleep ,出现RTCWDT_RTC_RST重启原因

zhaoyangeng
Posts: 3
Joined: Mon Jul 25, 2022 8:07 am

esp32s3 light_sleep ,出现RTCWDT_RTC_RST重启原因

Postby zhaoyangeng » Tue Dec 06, 2022 3:10 am

平时工作在light sleep模式,定时器5秒唤醒一次,然后做短时间的IO引脚访问,发现程序偶尔会重启,打样如下:


[Rx][16:42:12.824] ESP32 will light sleep now!
[Rx][16:42:17.866] ESP32 will light sleep now!
[Rx][16:42:22.909] ESP32 will light sleep now!
[Rx][16:42:28.983] ESP-ROM:esp32s3-20210327
[Rx][16:42:29.022] Build:Mar 27 2021
rst:0x10 (RTCWDT_RTC_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x43c
load:0x403b6000,len:0xbd0
load:0x403ba000,len:0x29c8
SHA-256 comparison failed:
Calculated: a3d05edfd44db5bda9b05d64f3e20a81c8aa900bde96b42d41a0febc85f3c6d0
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403b61d8
[Rx][16:42:29.224] System started successfully
10
[Rx][16:42:29.237] Wakeup was not caused by deep sleep: 0
ESP32 will running now!
[Rx][16:42:30.238] ESP32 will running now!
[Rx][16:42:31.239] ESP32 will running now!
[Rx][16:42:32.240] ESP32 will running now!

请帮忙查询一下原因

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: esp32s3 light_sleep ,出现RTCWDT_RTC_RST重启原因

Postby ESP_ICY » Wed Dec 07, 2022 2:10 am

短时间的 IO 访问,具体是在做啥

zhaoyangeng
Posts: 3
Joined: Mon Jul 25, 2022 8:07 am

Re: esp32s3 light_sleep ,出现RTCWDT_RTC_RST重启原因

Postby zhaoyangeng » Wed Dec 07, 2022 2:18 am

就是读取IO引脚的电平。
我好像找到原因了,因为这个IO引脚设置成了RTC_GPIO,在light sleep时,外部信号改变了这个RTC_GPIO的电平,休眠唤醒的那一刻就出现了重启。我把这个IO引脚设置成普通的GPIO,之后就没有出现过去重启。
是这个原因吗?能帮忙确认吗?

Who is online

Users browsing this forum: lor_pig2 and 52 guests