diff options
Diffstat (limited to 'doc/bootloader/upgrade.puml')
-rw-r--r-- | doc/bootloader/upgrade.puml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/bootloader/upgrade.puml b/doc/bootloader/upgrade.puml new file mode 100644 index 00000000..c31b9111 --- /dev/null +++ b/doc/bootloader/upgrade.puml @@ -0,0 +1,21 @@ +@startuml + +MCU -> Bootloader: reset +activate Bootloader +Bootloader -> Bootloader: Recover? (no) +Bootloader -> Bootloader: New version? (yes) +Bootloader -> Bootloader: Swap firmwares +note left: Copy current firmware from primary to secondary\nand copy the new firmware from secondary to primary +Bootloader -> Application: Jump to primary slot +deactivate Bootloader + + +activate Application +note right: This is the new version of the firmware +Application -> Application: Write the valid bit in flash memory +note right: The application should provide a way to\ncheck that it is running correctly\n(selftest, user confirmation,...)\nbefore setting the valid bit. +Application -> Application: Normal operations... +Application -> MCU: Reset +deactivate Application + +@enduml
\ No newline at end of file |