Skip to content

Add 60s watchdog for nrf52 to prevent stuck nrf devices like RAK4631, RAK3401#2019

Draft
weebl2000 wants to merge 1 commit intomeshcore-dev:devfrom
weebl2000:nrf52-watchdog-brownout
Draft

Add 60s watchdog for nrf52 to prevent stuck nrf devices like RAK4631, RAK3401#2019
weebl2000 wants to merge 1 commit intomeshcore-dev:devfrom
weebl2000:nrf52-watchdog-brownout

Conversation

@weebl2000
Copy link
Contributor

@weebl2000 weebl2000 commented Mar 13, 2026

In order to restore after battery voltage sags too low. Or any other reason the device might hang for that matter.

In the process of being tested, keeping it as draft until more results are in. Tagging @IoTThinks too.

How to test: ideally with a power supply, first boot at say 3.6V, then drop voltage down to 1.5-2.0V, your device will brown out, and hopefully come back to life if you up the voltage to 3.6V again.

Chose to set runtime voltage about 200mV below the bootlock voltage.

Build this firmware for your device HERE

possibly related issue: #1974

References:

In order to restore after battery voltage sags too low
@IoTThinks
Copy link
Contributor

I believe watchdog is a mitigation fix.
In your opinion, what is the root cause in NRF52?
Let me check if old MeshCore (1.11...) has this issue.

ESP32 seems to recover well in this scenario.

@weebl2000
Copy link
Contributor Author

I believe watchdog is a mitigation fix. In your opinion, what is the root cause in NRF52? Let me check if old MeshCore (1.11...) has this issue.

ESP32 seems to recover well in this scenario.

Yes, this is not the fix of the root cause.

@IoTThinks
Copy link
Contributor

IoTThinks commented Mar 14, 2026

Nice read.
I love to understand the root cause and "one fix one kill" :D

I guess this issue may due to NRF52 limitation or bootlock or even I2C sensors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants