1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
LibrePilot/flight
Stacey Sheldon f886af186d bootfault: add support for recovery from init failures
After 3 failed warm start attempts, the init sequence
will force the RAM version of the HWSettings object
to its defaults.  This should allow a user to regain
connectivity to a board that is continually faulting
during init.

This is accomplished by:
 - Incrementing a boot counter that is stored in the
   STM32 BKP registers.  These registers survive a
   warm start but are cleared on a cold start (ie. powerup).
 - On multiple failures, force hwsettings to defaults
   and raise the (new) BootFault alarm to prevent arming.
 - Resetting the boot counter whenever the system manages
   to successfully run the System Module task.

NOTE: This does not actually change the hwsettings object in
      flash.  That's up to the user.

This is intended to catch ONLY faults during early initialization.
It should not be used to recover from faults after the application
is up and running.
2011-12-30 23:05:38 -05:00
..
AHRS openocd: collapse JTAG rules for STM32F1 and STM32F2 2011-08-27 10:43:02 -04:00
Bootloaders usb cdc: make HID/CDC configurable in hwsettings 2011-12-30 23:05:34 -05:00
CopterControl bootfault: add support for recovery from init failures 2011-12-30 23:05:38 -05:00
Doc useless note on documentation (needs update) 2011-03-06 00:29:50 +00:00
INS pios: remove some unused #defines 2011-09-28 23:40:12 +03:00
Libraries Make PWM/PPM and Servo drivers play nicely together 2011-08-27 21:39:56 -04:00
Modules bootfault: add support for recovery from init failures 2011-12-30 23:05:38 -05:00
OpenPilot usb cdc: make HID/CDC configurable in hwsettings 2011-12-30 23:05:34 -05:00
PiOS iap: extend API to support read/write of boot counter 2011-12-30 23:05:38 -05:00
PiOS.posix removed "special code" to start optional modules 2011-11-11 11:22:54 +01:00
PiOS.win32 Fix win32 sim macro problem 2011-09-01 21:50:13 -04:00
PipXtreme usb cdc: make HID/CDC configurable in hwsettings 2011-12-30 23:05:34 -05:00
Project Fix bug where clicking back at last screen of input wizard would go back to 2011-11-25 11:30:12 -06:00
UAVObjects UAVObjects ; Modules/ManualControl: Fixed metadata interface and segfault when retrieving it 2011-11-30 09:20:46 +01:00
UAVTalk uavtalk: convert tx to use blocking send routines 2011-12-30 23:05:36 -05:00
README.txt Says all it needs to say for now. 2009-12-22 05:07:27 +00:00

Check the wiki