Crate canadensis_crc
source · [−]Expand description
Applications can use this library to access CRCs written by the canadensis_write_crc
tool.
Steps (for ARM Cortex-M targets)
- In the application, call the
get_crc
function - Compile the application, generating a .elf file
- Run
canadensis_write_crc
on the .elf file to calculate and fill in the CRC- Caution: Don’t use
cargo build
orcargo run
at this stage. It will overwrite the binary and clear the CRC.
- Caution: Don’t use
- Load the .elf file onto the target microcontroller and run it as usual
Functions
Returns the CRC of the compiled image, if one has been set