|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: extracting code from robot
Quote:
|
|
#2
|
|||||
|
|||||
|
Re: extracting code from robot
|
|
#3
|
||||
|
||||
|
Re: extracting code from robot
If, and this is a significant if, If jtdowney is correct in his assertion (good word, eh?) that the code is translated into a format designed for the Microcontroller, then NO, this will not be the hex. While it might be a reversible process, the logic would be way more complex - I've spent a lot of time (for my job) parsing text files, and even fairly simple formats have challenges involved.
So, again, if jtdowney is correct, then I don't believe Mr. Anderson's approach will give you the original hex file (though he would be the best person to ask about that). Whether the binary (which is of course easily convertible to a hex, if not THE hex that you put in originally) is helpful to you or not is up to you, though I would bet that it's not, unless you have a few months on your hands to write a parser. If you do, toss it out onto the GNU !-Paul |
|
#4
|
||||
|
||||
|
Re: extracting code from robot
The format for the microcontroller I was speaking of is the .hex. IIRC the C18 compiler takes the code and compiles it to a COF (common object format) file which is then linked into a .hex file. Since that is what you send to the RC you should be able to dump it from the RC using the tool Alan provided. That will allow you to get the current .hex file which you can save in case you ever need it again. The executable format the microcontroller uses probably has a disassembler somewhere if not the format is generally not to bad from my experience working with Linux ELF files. Once disassembled you will have the original code in assembly language which will show you the logic you used assuming you have someone who knows PIC18 assembly.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Download code from robot | Luminous | Programming | 4 | 25-05-2005 13:32 |
| Recovering code from the RC | Orborde | Programming | 15 | 04-12-2004 20:02 |
| Extracting Individual bits in C | Noah | Programming | 7 | 08-01-2004 15:53 |
| Autonomous Code From Experience | EbonySeraphim | Programming | 7 | 14-03-2003 21:56 |