Crate canadensis_crc[][src]

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 or cargo run at this stage. It will overwrite the binary and clear the CRC.
  • 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