Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider dedicating some flash for configs #10

Open
jonlamb-gh opened this issue Apr 10, 2023 · 3 comments
Open

Consider dedicating some flash for configs #10

jonlamb-gh opened this issue Apr 10, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@jonlamb-gh
Copy link
Owner

jonlamb-gh commented Apr 10, 2023

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:

  • max log level (i.e. trace vs info)
  • last panic message
  • last reset reason from panic
  • env-config constants are used to build up the default config struct values
@jonlamb-gh jonlamb-gh added the enhancement New feature or request label Apr 10, 2023
@jonlamb-gh
Copy link
Owner Author

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

@jonlamb-gh
Copy link
Owner Author

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant