CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

.HEX CHECKSUM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jamie_658
Guest







.HEX CHECKSUM
PostPosted: Sat Mar 08, 2008 9:56 am     Reply with quote

Hi,

I am using the CCS Compiler with MPLAB IDE to create a .hex file to email to a vendor for programming PIC16F676s. When I email the .hex file, should I be creating a checksum for the file to be sent in the email? If so, what utility is available to create the checksum? Is there a real risk in not sending a checksum with the email? Question

Thanks,
Jamie
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Mar 08, 2008 10:38 am     Reply with quote

You can use MPLAB to find the checksum. This thread has instructions:
http://www.ccsinfo.com/forum/viewtopic.php?t=33541

Zip up the HEX and send it as an attachment. If you send it as a zip
file, there is little chance of it being corrupted. If it is corrupted, then
when they try to unzip it, they will get an error message from Winzip.

Tell them the checksum value for the HEX file in the text of the email.
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

Checksum
PostPosted: Sun Mar 09, 2008 6:33 am     Reply with quote

A very common method of doing this is using the MD5 Hash. Search the net for a utility to encode the MD5 hash based on input file. Then send your file, utility, and hash to the vendor, they can recalculate the hash and compare results.

Regards
Wayne_



Joined: 10 Oct 2007
Posts: 681

View user's profile Send private message

PostPosted: Tue Mar 11, 2008 7:40 am     Reply with quote

The hex file should have a built in checksum.

The only reason you would want to do what you are doing is if you are encrypting the file or you have a securtiy issue where the file may be intercepted and a different file passed on.

If you are only worried about corruption during transfer then the built in check sum should cover that.
When the programmer loads the HEX file it will check the checksum to see if there are any errors.

The HEX format actually has a checksum for each line as well as a total checksum.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group