Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to get course code from a hex file

Status
Not open for further replies.

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
hi , I have a full project with a hex file ,,,,only a hex file ,,, but i want to slightly modify the project ,,,,, how could I do that ? how could I get the source code from that hex file ?

plz I really need help in this
 

brevor

Member level 1
Joined
Jul 26, 2006
Messages
36
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Valparaiso, Indiana USA
Activity points
1,435
To convert a hex file back into source code you need to use a disassembler program for the specific processor used in your project.
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,801
Converting from hex to source is not easy and not accurate. Converting to assembly source is relatively easy but to convert to a higher level language is even more difficult. Also keep in mind that you can never recover the remarks etc. High level laguages also use optimizations which make it even more difficult to recover any source code.
 

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
"Converting from hex to source is not easy and not accurate. Converting to assembly source is relatively easy but to convert to a higher level language is even more difficult. Also keep in mind that you can never recover the remarks etc. High level laguages also use optimizations which make it even more difficult to recover any source code."

bummer ,, , I am very sorry to hear that

Added after 22 minutes:

I have this very interesting project , about an sms controlled system ,,,,

I want to understand it then be able to modify it ,,,,

If anyone can help me get its source code , or anyone have a similar project with a complete source code , plz tell me about it cuz I desprately need it
 

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
I have this very interesting project , about an sms controlled system ,,,,

I want to understand it then be able to modify it ,,,,

If anyone can help me get its source code , or anyone have a similar project with a complete source code , plz tell me about it cuz I desprately need it

another link :

http://rapidshare.com/files/14840789/SMS_Controller.rar

and thanks in advance for everyone who would help ,,, and i am willing to give anything i can do in return
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,801
My advice: Dont try to reverse-engineer the code. Try to write your own code. It might take longer but you will be able to understand better.
 

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
"My advice: Dont try to reverse-engineer the code. Try to write your own code. It might take longer but you will be able to understand better."

I am a complete beginer in the AVR

Is there any similar reference projects I can use if i would write my own code ? (in C language)
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,801
There are many examples although it might be difficult to find the exact project. You can begin by making the PCB and then trying to communicate in C via serial port using AT commands. Once you do that, the rest should be quite good fun.
 

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
"then trying to communicate in C via serial port using AT commands"

could you explain this to me more plz

thanks
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,801
Well, all communications to the phone are done via serial port, using AT commands. When you send a command to the phone, the phone sends a reply. What I mean is that you should first get this communication going. There are many examples to do that in C. I have not used the AVR but I find that there are many resources avaialable.
 

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
pic examples or resourses about this communication is very welcomed ,,, do you know where I can find any ?
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,801
Microchip has loads of application notes. I am sure you would find many on serial communications.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top