daniel94
Reged: Mar 17 2006
Posts: 1
|
|
I ran into the same issue and I wanted to help document the answer to this for others who may experience this. It appears there was a change in the formatting of the file specification after much of the information was posted to this thread. If you'll download the attachment in the first post, the user's manual there contains the following information:
Quote:
Additional specifications can be applied to each hex file to put restrictions or conditions on how this file should be processed. If any specifications are used they must precede the filename. The list of specications will then be separated from the filename by a comma. A range restriction can be applied with the specification rStart -End . A range restriction will cause only the address data falling within this range to be used. For example:
r100-1FF,myfile.hex
will use myfile.hex as input, but only process data which is addressed within the range 100h-1FFh (inclusive) to be read from myfile.hex.
An address shift can be applied with the specication sOffset. If an address shift is used, data read from this hex file will be shifted (by the Offset) to a new address when generating the output. The offset can be either positive or negative. For example:
r100-1FFs2000,myfile.hex
will shift the block of data from 100h-1FFh to the new address range 2100h-21FFh.
|
MartinLintzgy
Reged: Feb 19 2005
Posts: 9
|
|
glano,
did you ever get this working ? I am trying to do the same kind of check as you are, and have the same problem. I am tying to ues Fletcher's 16 bit Checksum.
here is the hexmate command for the checksum. -CK=0-7FFD@7FFE+0w2a8
Hexmate seems to ignore the option. however running "hexmate.exe" -help=CK" i see USAGE: -CK=start-end@dest[+offset][wWidth][tCode][gAlgorithm] which is not the same as descibed in the manual on page 196 (pic18 pro, 2009).
using "-CK=0-7FFD@7FFE+0w2g8" does not give me the expected sum.
Does anyone know if hexmate generates fletcher's 16 properly ?
-m
|
MartinLintzgy
Reged: Feb 19 2005
Posts: 9
|
|
I am trying to use the option to get Fletcher's checksum working. However, the result i get does not agree with that calculated by hexmate. -CK=0-3F@7FFEg7 I have a simple hex file (64 bytes). :2000000073EF36F01200120061EF2DF00100306D0000260F000008000000BD5002E13C0EB2 :20002000BD6E2D0EE66EF6EC2CF0E552BD6A2D0EE66EF6EC2CF0E55212003C0EBD5C01E18F My code generates the Fletcher 0x77, 0x53 Hexmate appends :027FFE007751B9 to the hex file. (fletcher =0x77,0x51.) - WRONG!! I have checked my program, and checked against calculating fletcher's manually using a spreadsheet.
A straightforward 8 bit addition checksum works no problem, hexmate appends the correct number, but i would like the better security that the fletcher algorithm provides.
Is anyone out there using the -CK option with Fletcher's ?
|
ChrisDiller
Reged: Aug 01 2006
Posts: 3
|
|
From where can I download the latest version? I can't seem to find a link or an attachment on any of the posts...
|
Dan Henry
Guru
  
Reged: Oct 16 2003
Posts: 3872
Loc: Colorado
|
|
It's part of the toolchain distributions.
|