General Forums >> Interesting Projects and Tutorials

Pages: 1 | 2 | 3 | 4 | 5 | (show all)
daniel94



Reged: Mar 17 2006
Posts: 1
Re: Intel HEX editing utility (v1.118) [Re: TJO]
      #88972 - Wed Dec 10 2008 01:58 PM

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.




Post Extras: Print Post   Remind Me!   Notify Moderator  
MartinLintzgy



Reged: Feb 19 2005
Posts: 9
Re: Intel HEX editing utility (v??) [Re: glano]
      #141962 - Tue Jan 05 2010 08:22 AM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
MartinLintzgy



Reged: Feb 19 2005
Posts: 9
Re: Intel HEX editing utility (v1.13) [Re: garth]
      #142222 - Wed Jan 06 2010 10:26 AM

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 ?


Post Extras: Print Post   Remind Me!   Notify Moderator  
ChrisDiller



Reged: Aug 01 2006
Posts: 3
Re: Intel HEX editing utility (v1.118) [Re: garth]
      #144102 - Thu Jan 21 2010 10:44 AM

From where can I download the latest version? I can't seem to find a link or an attachment on any of the posts...

Post Extras: Print Post   Remind Me!   Notify Moderator  
Dan HenryModerator
Guru
****

Reged: Oct 16 2003
Posts: 3872
Loc: Colorado
Re: Intel HEX editing utility (v1.118) [Re: ChrisDiller]
      #144112 - Thu Jan 21 2010 11:01 AM

It's part of the toolchain distributions.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | 3 | 4 | 5 | (show all)



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  jtemples, mikerj, Dan Henry, Andrew L 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating: *****
Topic views: 74517

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5