Failsafe module
Use the failsafe module to erase the Settings partition after a fatal error. This can be done to prevent broken settings from rendering the device permanently unusable.
Module Events
Source Module |
Input Event |
This Module |
Output Event |
Sink Module |
---|---|---|---|---|
|
|
|||
|
Note
See the Overview: Firmware architecture for more information about the event-based communication in the nRF Desktop application and about how to read this table.
Configuration
Use the CONFIG_DESKTOP_FAILSAFE_ENABLE
option to enable the module.
Additionally, make sure that the following options are set as follows:
CONFIG_WATCHDOG
- The watchdog must be enabled.CONFIG_RESET_ON_FATAL_ERROR
- The reset on fatal error must be disabled.
This is to ensure that the device will be blocked after a fatal error and then the watchdog will trigger the reboot.
After the reboot caused either by the watchdog or by the CPU lockup, the failsafe module erases the settings partition and clears the non-volatile settings data.