Bootloop detection and failsafe mode#48
Closed
Kupferfox wants to merge 123 commits into
Closed
Conversation
12322fd to
f59763e
Compare
…mings, early exit)
…ass it as <unsigned>.
…wn module. The device is mostly located in the fuse box without any connected computer. The serial of the device is used to communicate with the electric meter and dealing with baudrates of 300 or 9600 which disturbs the serial exception dump. Also working with low baudrates can trigger the hardware watchdog while dumping the stack trace. So: We capture exception information in our own module and write them to the filesystem. Wrapping the __wrap_system_restart_local() function using '-Wl,--wrap=__wrap_system_restart_local' is not possible as the system_restart_local() function is already wrapped within the original framework. We replace the original core_esp8266_postmortem.cpp while compiling this project using 'pre:pio-scripts/replace_freamwork_core_esp8266_postmortem.py'
…t formatted patch file
f59763e to
d8f8817
Compare
StefanOberhumer
added a commit
that referenced
this pull request
Mar 14, 2026
…loop_failsafe Cherrypick kupferfox bootloop failsafe (original PR: #48)
Collaborator
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.
Es gibt nun einen Failsafe-Mode, in dem eine Firmware aufgeladen werden kann.
Folgende Logik:
Die Implementierung ist komplett abgekapselt von allen Funktionen. Also ein wirkliches Failsafe.
In Setup und Loop jeweils nur 1 Call der bei Normalbetrieb ins leere Läuft. Quasi zero overhead (3x if-check).