Open NuclearTea opened 2 weeks ago
Is this a telecommand or a function-based API?
I propose that you should write to a file in the LittleFS filesystem (which I believe we have as a function), verify that data with a checksum, and then copy that file to the STM32's flash memory. I think telecommands to read and write to the STM32 flash memory could be helpful for debugging and verification, but I propse labelling them as "not intended for use during mission"
In order to write the initial golden copy and for testing purposes, it would be more convenient just to have a Telecommand which could write to the internal flash memory directly. It would use functions which would be used by other telecommands. As you stated, this telecommand is not intended to be used during flight operation, more for convenience sake
Develop an API to Read and Write to the internal Flash Memory.
Take Specific care to think about the bootloader