Difference between revisions of "Check code"

From SFPTotal Wiki
Jump to: navigation, search
(Created page with "This function allows you to create a firmware with correct checksum after any changes. In the code of firmware transceiver there are two checksum that define data integrity o...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
This function allows you to create a firmware with correct checksum after any changes.
+
This function make able to create a vendor code with correct checksums  after any change.
  
In the code of firmware transceiver there are two checksum that define data integrity of the firmware body. In the tabs FIRMWARE DETAIL and TABLE checksum bytes have addresses 0x3F and 0x5F.  
+
There are two checksums, CC_BASE and CC_EXT, that define data integrity of the code body. In the tabs CODE DETAIL and TABLE the checksum bytes have addresses 0x3F and 0x5F.  
  
By the default, software automatically recalculates checksum when you changed the firmware in the tables.  
+
The software automatically recalculates checksums when any byte changed. Remove a flag in menu '''Edit -> Autoset Checksum''' to disable this function or set up to enable.
  
To disable the automatic checksum validation, deselect flag in menu '''Options -> Auto set checksum'''.
+
[[File:Sfptotal-wizard-autoset-checksum-flag.png]]
 
+
[[File:SFPTotal autoset fitmware checksum.png]]
+
  
 
To validate the checksum in the current firmware, you must use menu item '''Edit -> Checksum'''.
 
To validate the checksum in the current firmware, you must use menu item '''Edit -> Checksum'''.

Latest revision as of 08:25, 21 October 2018

This function make able to create a vendor code with correct checksums after any change.

There are two checksums, CC_BASE and CC_EXT, that define data integrity of the code body. In the tabs CODE DETAIL and TABLE the checksum bytes have addresses 0x3F and 0x5F.

The software automatically recalculates checksums when any byte changed. Remove a flag in menu Edit -> Autoset Checksum to disable this function or set up to enable.

File:Sfptotal-wizard-autoset-checksum-flag.png

To validate the checksum in the current firmware, you must use menu item Edit -> Checksum.

SFPTotal set checksum.png

When pushed, the program will compare checksum values and highlight the cells with green if checksum is correct and red if not.

SFPTotal validate checksum.png

To set correct checksum value in the body of the firmware, click button:

SFPTotal set checksum button.png

After this there will be a recalculation of all checksums.

SFPTotal validate checksum result.png