CalgaryToSpace / CTS-SAT-1-OBC-Firmware

Firmware for the CTS-SAT-1 ("FrontierSat") mission. Runs on the STM32-based Onboard Computer.
MIT License
6 stars 0 forks source link

Telecommands for reading/writing to STM32 flash memory #172

Open NuclearTea opened 2 weeks ago

NuclearTea commented 2 weeks ago

Develop an API to Read and Write to the internal Flash Memory.

Take Specific care to think about the bootloader

DeflateAwning commented 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"

NuclearTea commented 2 weeks ago

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