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 CCS Technical Support

Any way to change the ;CRC line in the generated .hex file

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



Joined: 10 Mar 2011
Posts: 2
Location: UNITED STATES

View user's profile Send private message

Any way to change the ;CRC line in the generated .hex file
PostPosted: Thu Mar 10, 2011 8:43 am     Reply with quote

We have a request from our customer to modify the generated .hex file

(currently using CCSC.exe version 4.3.0.293)

At the bottom of the .hex file are 3 comment lines:

Code:

;VER: 1.2
;PIC24FJ256GB110
;CRC=F728  CREATED="20-Jan-11 11:40"


our customer want us to remove the CREATED="[data]" part.
Is there an easy way to do this?

I haven't found see a compiler/linker option to do this. should I be looking someplace else?
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Mar 10, 2011 10:55 am     Reply with quote

Hi,

If you modify the .hex file the checksum will no longer be valid, and most programmers will reject the file. There are .hex file editors out there that will allow you to manipulate the .hex file while maintaining the checksum. I haven't done this in a while, but here is the software I think I used for a similar purpose: http://www.sf-soft.de/hex-editor.html

Good Luck!

John
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Thu Mar 10, 2011 11:07 am     Reply with quote

Anything beginning with ';', is a remark, and should be ignored by the programmer. The actual file has the Intel CRC above this line. Just use a scriptable text editor, and program it to look for the 'created' word, and delete the stuff.

Best Wishes
pboucher



Joined: 10 Mar 2011
Posts: 2
Location: UNITED STATES

View user's profile Send private message

PostPosted: Thu Mar 10, 2011 11:46 am     Reply with quote

Thank you,

I know I could delete it post build but was wondering if there was a way built into the compiler/linker.
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