Raptor:Calc Checksum Block: Difference between revisions
Jump to navigation
Jump to search
(Created page) |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[[ | [[Raptor-Platform|Return to the main Raptor page]] | ||
[[Raptor | [[Raptor-Dev-Checksum|Return to Checksum page]] | ||
[[ | [[file:raptor_calc_checksum.JPG|frameless|border|Calc Checksum block|center]] | ||
== Description == | == Description == | ||
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. | |||
|} | |} |
Latest revision as of 16:56, 16 December 2016
Return to the main Raptor page
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. |