Raptor:Calc Checksum Block: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 29: Line 29:
! Code
! Code
| This memory segment includes all the generated code for the model.
| This memory segment includes all the generated code for the model.
|}
== Parameters ==
{| class="wikitable" style="width:75%;"
|-
! scope="col" style="width: 15%;"|Parameter
! scope="col" style="width: 15%;"|Type
! scope="col" style="width: 70%;"|Description
|-
! Name
| String
| Defines the name of this memory checksum to be used with the read checksum block.
|-
! Constant (FLASH) Variables
|
| Includes the constant memory segment in the checksum.
|-
! NonVolatile (EEPROM) Variables
|
| Includes the non volatile memory segment in the checksum.
|-
! Calibration Variables
|
| Includes calibration data in the checksum.
|-
! Code
|
| Includes the executed code in the checksum.
|-
! Execution Mode
|
| Chooses whether the checksum calculates once on startup or continuously.
|}
|}

Revision as of 12:38, 1 September 2016

Return to the main Raptor page

Return to CAN page

Read Checksum block
Read Checksum block

Description

This block is used to calculate the checksum of memory segments in the controller. These checksums can be used to validate that the the data stored in a memory segment has not changed. The block uses the CRC16-CCITT method to calculate the checksum. Due to the computationally intense nature of this algorithm the checksum is calculated incrementally over multiple executions of this block. This means that the Calculate Checksum block must be in a regularly triggered subsystem. The value of the checksum can be read using the Read Checksum block.

The available memory segments are detailed below.

Memory Segments

Segment Description
Constant (FLASH) Variables This memory segment includes all data in the Constant location including calibrations if set to Constant.
NonVolatile (EEPROM) Variables This memory segment includes all data in the NonVolatile location including calibrations is set to NonVolatile.
Calibration Variables This memory segment includes all data in the Calibration location. This does not include all items in the memory location that the calibration is stored in.
Code This memory segment includes all the generated code for the model.

Parameters

Parameter Type Description
Name String Defines the name of this memory checksum to be used with the read checksum block.
Constant (FLASH) Variables Includes the constant memory segment in the checksum.
NonVolatile (EEPROM) Variables Includes the non volatile memory segment in the checksum.
Calibration Variables Includes calibration data in the checksum.
Code Includes the executed code in the checksum.
Execution Mode Chooses whether the checksum calculates once on startup or continuously.