jonlamb-gh / air-gradient-pro-rs

Rust bootloader, firmware and CLI tools for the AirGradient PRO
Apache License 2.0
8 stars 0 forks source link

Consider dedicating some flash for configs #10

Open jonlamb-gh opened 1 year ago

jonlamb-gh commented 1 year ago

So things like IP and MAC address can be changed without re-flashing firmware. Add some config update commands to the CLI for setting them. Other potentially useful things to have:

jonlamb-gh commented 1 year ago

Boot and application configs in sector 3 (0x0800_C000) as of adb15738a05430141ecf259f89fdc9bfbfa76ee9 Not currently exposing any configs yet, just bootloader flags

jonlamb-gh commented 1 year ago

The bootloader is pretty small, it can fit in sectors 0 and 1, could dedicate sector 2 to bootloader-specific configs, and sector 3 to application-specific configs.

jonlamb-gh commented 1 year ago

Probably use something like TicKV from Tock for a kv store.