View previous topic :: View next topic |
Author |
Message |
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
There's a way to compare two HEX files? |
Posted: Thu Feb 11, 2016 9:10 am |
|
|
I lost the folder where I have my code, now I have one unprotected microcontroller and a backup of about 2 month ago and need to know what are the updates made to the last lost version.
Help please!. _________________ Electric Blue |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Feb 11, 2016 9:31 am |
|
|
Use DiffNow online.
But it won't tell you what the code changes were. However if you know what addresses change, if you look at the lst file it'll tell you 'where' these changes come from. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Thu Feb 11, 2016 9:32 am |
|
|
Well MPLAB would allow you to read in both PICs and you can dump the listings. Then just highlight anything in the 'new' one compared' to the old.
You can't get the 'source (C) code' back but after an hour or two you should be able to see in ASM what's new or different.
I don't know of any 'asm to ccs c' decompiler/converter available. Had one for my RS model III...that was 30+ years ago.
USB flash drives are a real cheap,easy way to always have a THIRD set of backups..
Jay |
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Thu Feb 11, 2016 9:46 am |
|
|
I bought a new PC so I made a backup on a separate disk, but trying to make a RAID 0 on the new PC I added the backup disk to the RAID 0 so the backup disk was formatted. _________________ Electric Blue |
|
|
jeremiah
Joined: 20 Jul 2010 Posts: 1358
|
|
Posted: Thu Feb 11, 2016 9:52 am |
|
|
If you have the IDE version of CCS, it comes with a diff tool as well. |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Thu Feb 11, 2016 11:34 am |
|
|
One tool that I really like (not free though) is "Beyond Compare" from Scooter Software ( http://www.scootersoftware.com/ ) Works very well for comparing all sorts of things in a meaningful way that you can see. I am not connected with them other than through my VISA card - just a satisfied user of their software. _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Thu Feb 11, 2016 12:29 pm |
|
|
i use Examdif on source all the time |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1909
|
|
Posted: Thu Feb 11, 2016 12:40 pm |
|
|
I use Beyond Compare too. I really like that it adds the comparison to windows right-click so I don't actually have to open a program before doing a comparison. Just select one, then the other and BC opens. Very convenient. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Thu Feb 11, 2016 1:23 pm |
|
|
bare bones file compare can be done under DOS using filecomp.exe .it'd just show you which bytes are different....
I still think the MPLAB, dump listings would be the easiest.
When I make changes I copy old, rename, save, cut code, save.Yeah I can have a LOT of files for one project but can always go back. filename1.c, filename2.c, filename3.c, etc. When a project is done I'll delete all but the last 3 or 4 versions. Though these days with multiterrabyte drives who really cares about saving space?
Jay |
|
|
|