ESP32 WROOM-D code randomly freezes even with watchdog implemented

MatheusRodrigues-Dev
Posts: 1
Joined: Fri May 16, 2025 12:56 pm

ESP32 WROOM-D code randomly freezes even with watchdog implemented

Postby MatheusRodrigues-Dev » Fri May 16, 2025 8:35 pm

Hello everyone,

I’m having an issue with the ESP32 WROOM-D (if I’m not mistaken, that’s the model). I’m working on a project where the ESP32 reads data from a water flow sensor based on the Hall effect, and the code randomly freezes without any apparent reason.

To try to fix this, I added a watchdog routine to restart the ESP, but the problem still occurs.

A clear example of the freeze is shown on the Arduino serial monitor, where the ESP just stops and repeatedly outputs:

01:12:57.244 -> [Monitor] Motivo último reset: 3
01:12:57.244 -> [Monitor] Motivo último reset: 3
01:12:57.244 -> [Monitor] Motivo últim

The libraries I’m using are:
#include <WiFiManager.h>
#include <HTTPClient.h>
#include <ESP32Time.h>
#include <ESPmDNS.h>
#include <ESP32Ping.h>

I have reviewed my code but haven’t been able to identify the cause of this behavior. Has anyone experienced this before or have any ideas about what could be causing these freezes and how to fix them?

The code is here on github:
https://github.com/MatheusRodrigues-Dev/ESP32-Flow


Thanks in advance for your help!

Who is online

Users browsing this forum: trendictionbot and 5 guests