Error (reboot, wthdog) External crustal

SiarheiM
Posts: 3
Joined: Wed Jul 19, 2023 10:08 am

Error (reboot, wthdog) External crustal

Postby SiarheiM » Wed Jul 19, 2023 10:13 am

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.

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: Error (reboot, wthdog) External crustal

Postby bidrohini » Wed Jul 19, 2023 2:27 pm

In think you will need to use these libraries:

Code: Select all

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

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Error (reboot, wthdog) External crustal

Postby ESP_Sprite » Thu Jul 20, 2023 1:28 am

Could you be a bit more specific with 'internal quartz', 'external quartz' etc? Do you have schematics of what you're trying to do?

SiarheiM
Posts: 3
Joined: Wed Jul 19, 2023 10:08 am

Re: Error (reboot, wthdog) External crustal

Postby SiarheiM » Sun Jul 23, 2023 6:00 pm

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

SiarheiM
Posts: 3
Joined: Wed Jul 19, 2023 10:08 am

Re: Error (reboot, wthdog) External crustal

Postby SiarheiM » Sun Jul 23, 2023 6:10 pm

With an encoder not connected, everything hangs. Campaign error in the library. #include <ESP32Encoder.h> was connected to a quartz pin

Who is online

Users browsing this forum: No registered users and 140 guests