Add 60s watchdog for nrf52 to prevent stuck nrf devices like RAK4631, RAK3401#2019
Add 60s watchdog for nrf52 to prevent stuck nrf devices like RAK4631, RAK3401#2019weebl2000 wants to merge 1 commit intomeshcore-dev:devfrom
Conversation
In order to restore after battery voltage sags too low
|
I believe watchdog is a mitigation fix. ESP32 seems to recover well in this scenario. |
Yes, this is not the fix of the root cause. |
Nice read. I guess this issue may due to NRF52 limitation or bootlock or even I2C sensors. |
|
In src/helpers/nrf52/SerialBLEInterface.cpp in the |
I submitted a PR to address this in #2089 |
Can you open a PR to my fork? I can merge into the existing PR that way. I'm very busy this week and the next but I'll try to have a look soon. (only if the PR is related BTW, I haven't looked into the remarks yet 😬😅) |
Sure thing, do you want me to PR to the nrf52-watchdog-brownout branch? |
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: