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

is there a way to retrieve the source code again?

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







is there a way to retrieve the source code again?
PostPosted: Wed Nov 23, 2005 1:48 pm     Reply with quote

Hi,
I accidently deleted all the source code, but I still have the object flashed in the chip. I could read the object file from the chip out ( I hope!)
Is there a way can we convert from the object file to the source code again?

Many thanks.
Jim
Guest








PostPosted: Wed Nov 23, 2005 2:21 pm     Reply with quote

yeah, you can retrieve the assembly, but it will be all hexadecimal digits and assembly code. You're better off re-writing the program from scratch.

I think you would use MPLAB to do that. And the chip must not be secured from reading.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Nov 24, 2005 1:16 pm     Reply with quote

A disassembler will get you the assembly code. There is probably one out there somewhere for your PIC. I know of no way to get the C code back.
Beware some may suspect you are trying to steal someone else's code!
_________________
The search for better is endless. Instead simply find very good and get the job done.
Kieran



Joined: 28 Nov 2003
Posts: 39
Location: Essex UK

View user's profile Send private message

PostPosted: Thu Nov 24, 2005 2:15 pm     Reply with quote

The list file includes the source, with editing its posible to recover the source.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Nov 24, 2005 10:42 pm     Reply with quote

Look in the recycle bin Laughing
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