Page 1 of 1

Error (reboot, wthdog) External crustal

Posted: Wed Jul 19, 2023 10:13 am
by SiarheiM
Hello,

I am experiencing an issue with the ESP32. I am encountering difficulties when trying to reboot the device while using an external quartz resonator.

Here's the situation: when operating with the external quartz, if the microcontroller attempts to reboot (either through a reboot function call or upon the built-in watchdog timer triggering), the ESP32 simply freezes and ceases to function. In this state, even the built-in watchdog timer is unable to reboot the system.

However, if I disconnect the external quartz, the ESP32 operates normally and is able to reboot correctly.

I am looking for a way to switch the ESP32 to use the internal quartz before calling a reboot in order to bypass this issue. However, I could not find information on how to do this in the Espressif documentation.

Could you assist me with this issue? Is it possible to switch the ESP32 to the internal quartz before rebooting? If so, how can I achieve this?

Thank you for your help.

Re: Error (reboot, wthdog) External crustal

Posted: Wed Jul 19, 2023 2:27 pm
by bidrohini
In think you will need to use these libraries:

Code: Select all

#include "esp_system.h"
#include "esp_attr.h"
#include "soc/rtc.h"

Re: Error (reboot, wthdog) External crustal

Posted: Thu Jul 20, 2023 1:28 am
by ESP_Sprite
Could you be a bit more specific with 'internal quartz', 'external quartz' etc? Do you have schematics of what you're trying to do?

Re: Error (reboot, wthdog) External crustal

Posted: Sun Jul 23, 2023 6:00 pm
by SiarheiM
With an unconnected encoder, everything hangs
Looks like a bug in the library. #include <ESP32Encoder.h>
It's strange that everyone works with internal quartz

Re: Error (reboot, wthdog) External crustal

Posted: Sun Jul 23, 2023 6:10 pm
by SiarheiM
With an encoder not connected, everything hangs. Campaign error in the library. #include <ESP32Encoder.h> was connected to a quartz pin