summaryrefslogtreecommitdiff
path: root/doc/bootloader/recover.puml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/bootloader/recover.puml')
-rw-r--r--doc/bootloader/recover.puml17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/bootloader/recover.puml b/doc/bootloader/recover.puml
new file mode 100644
index 00000000..3f5bafb1
--- /dev/null
+++ b/doc/bootloader/recover.puml
@@ -0,0 +1,17 @@
+@startuml
+
+MCU -> Bootloader: reset
+activate Bootloader
+Bootloader -> Bootloader: Recover? (yes)
+Bootloader -> Bootloader: Restore previous firmware
+note left: Copy the previous firmware from secondary to primary slot
+Bootloader -> Application: Jump to primary slot
+deactivate Bootloader
+
+activate Application
+note right: This is the previous version\nof the firmware
+Application -> Application: Normal Operation
+Application -> MCU: Reset
+deactivate Application
+
+@enduml \ No newline at end of file