Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Ahalt()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