View previous topic :: View next topic |
Author |
Message |
pboucher
Joined: 10 Mar 2011 Posts: 2 Location: UNITED STATES
|
Any way to change the ;CRC line in the generated .hex file |
Posted: Thu Mar 10, 2011 8:43 am |
|
|
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
|
|
Posted: Thu Mar 10, 2011 10:55 am |
|
|
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: 19503
|
|
Posted: Thu Mar 10, 2011 11:07 am |
|
|
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
|
|
Posted: Thu Mar 10, 2011 11:46 am |
|
|
Thank you,
I know I could delete it post build but was wondering if there was a way built into the compiler/linker. |
|
|
|