random hardware reset
Posted: Mon May 12, 2025 4:41 pm
I have an issue which drives me crazy in the last week.
Long story short: i have an ESP32 custom board which drives a relay, which I plan to use it to control a water pump. There is a pressure sensor, and a flow meter connected to the board. All pretty simple. I wrote a small Android application which communicates over BLE with ESP32 to set-up the running parameters.
The board is designed by myself and i have used it in several applications around my home since 2 years. I had no single hardware issue.
All good, but during final tests i started to face random hardware reset... or something which makes my board to reboot. And this reset happens randomly. It might take few seconds or few minutes. I call it hardware reset because it behaves like i push the reset button. The console, connected over JTAg/USB , display only this message
--- Error: ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
--- Waiting for the device to reconnect
And after that i see the logs from the boot sequence. No brownout, no sw crash, nothing.
Since i struggle with this issue I changed everything: cables, connectors, esp32 module, shield board ... everything.
The only way i can avoid the reset is to solder a floating wire (~8cm) to the enable pin of the module. Avoiding here means that in more than 2hrs i got no reset.
Did anybody face similar issues and found the cause?
Does this floating, wire soldered to EN pin, have some meaning for someone of you?
Any suggestion is more than welcome.
Long story short: i have an ESP32 custom board which drives a relay, which I plan to use it to control a water pump. There is a pressure sensor, and a flow meter connected to the board. All pretty simple. I wrote a small Android application which communicates over BLE with ESP32 to set-up the running parameters.
The board is designed by myself and i have used it in several applications around my home since 2 years. I had no single hardware issue.
All good, but during final tests i started to face random hardware reset... or something which makes my board to reboot. And this reset happens randomly. It might take few seconds or few minutes. I call it hardware reset because it behaves like i push the reset button. The console, connected over JTAg/USB , display only this message
--- Error: ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
--- Waiting for the device to reconnect
And after that i see the logs from the boot sequence. No brownout, no sw crash, nothing.
Since i struggle with this issue I changed everything: cables, connectors, esp32 module, shield board ... everything.
The only way i can avoid the reset is to solder a floating wire (~8cm) to the enable pin of the module. Avoiding here means that in more than 2hrs i got no reset.
Did anybody face similar issues and found the cause?
Does this floating, wire soldered to EN pin, have some meaning for someone of you?
Any suggestion is more than welcome.