marionette-daq/marionette-firmware

Version and Hardware ID strings for flash

Opened this issue · 1 comments

We're going to need a hardware and variant ID in the Marionette's flash.

From TAB:

I'm thinking something pretty free form, key value pairs like:
ID, Marionette DAQ
URL, https://github.com/marionette-daq/marionette-hardware
hardware version, 1.0
SN, 1234567890
First Flashed Date, 2015.07.29
HSE type, TCXO
HSE frequency, 26 MHz
LSE, Present
Vref Calibration, 1.206 V

For the record, the way ChibiOS is built, all the frequencies, clock dividers etc are determined via #defines at compile time.

You cannot (without a non-trivial/risky effort), have run-time determination of the external XTAL and correspondingly change dividers throughout the whole firmware stack.