Skip to content

feat(thinknode_m6): Add a 90 s watchdog - #3927

Open
obook wants to merge 2 commits into
meshcore-dev:devfrom
obook:m6-watchdog
Open

obook wants to merge 2 commits into
meshcore-dev:devfrom
obook:m6-watchdog

Conversation

@obook

@obook obook commented Nov 23, 2026

Copy link
Copy Markdown

If the main loop hangs, nothing restarts the M6, which often sits out of reach. This starts the nRF52 watchdog at boot and feeds it in board.loop(), with the Meshtastic settings: 90 s, paused while the CPU sleeps. A halt() after a failed radio init now reboots after 90 s.

Depends on #3926, whose commit is included here: a watchdog reset can land in an RTC read and leave the bus stuck.

Tested on an M6 repeater: reboot, 160 s in the bootloader after a 1200-baud touch, and a serial DFU upload all work with the watchdog running. Not tested with BLE OTA.

Thanks

A reset during an RTC read left SDA held low, and the RTC probe then
hung every boot. Up to nine clock pulses release the bus.
It resets the board when the main loop stops, as Meshtastic does on
the M6. It pauses while the CPU sleeps.

This branch has not been deployed

No deployments
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.

1 participant