Expand description
Shared state management between firmware and bootloader
Modules
State stored in the RAM TODO: Move to hardware folder together with state trait?
Structs
Store the progress of the current exchange operation
Struct used to store the state of the bootloader situation in NVM
Enums
Decision making states for the bootloader
Errors that can occur during update
Constants
Size of the serialized state
Traits
Hardware abstraction for the state storage. Can for example be stored on a flash bank, or in RAM. As long as you don’t want to perform update download, power cycle the device, and then apply the update, storing it in volatile memory is fine.
Type Definitions
Type used to store the shared state CRC