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

There's a way to compare two HEX files?

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



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

There's a way to compare two HEX files?
PostPosted: Thu Feb 11, 2016 9:10 am     Reply with quote

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!. Rolling Eyes
_________________
Electric Blue
Ttelmah



Joined: 11 Mar 2010
Posts: 19436

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 9:31 am     Reply with quote

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: 9199
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 9:32 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 9:46 am     Reply with quote

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. Sad
_________________
Electric Blue
jeremiah



Joined: 20 Jul 2010
Posts: 1334

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 9:52 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 11:34 am     Reply with quote

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

View user's profile Send private message AIM Address

PostPosted: Thu Feb 11, 2016 12:29 pm     Reply with quote

i use Examdif on source all the time
newguy



Joined: 24 Jun 2004
Posts: 1904

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 12:40 pm     Reply with quote

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: 9199
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 11, 2016 1:23 pm     Reply with quote

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
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