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_crcfunction - Compile the application, generating a .elf file
- Run
canadensis_write_crcon the .elf file to calculate and fill in the CRC- Caution: Don’t use
cargo buildorcargo runat 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§
- get_crc
- Returns the CRC of the compiled image, if one has been set