Is there a way to determine what program is in one of my PIC's?
I can read it using the programmer, but of coarse no program name is there, only hex code. Is the name of the program in the hex code?
Thanks
Printable View
Is there a way to determine what program is in one of my PIC's?
I can read it using the programmer, but of coarse no program name is there, only hex code. Is the name of the program in the hex code?
Thanks
No, I have overcome this limitation reserving the last 8 location of the eeprom where I write the program name.
Cheers
Al.
I wouldn't say no, I've seen decompilers before.
It's possible to "recreate" a program, it's just a matter of having the right software. I just don't know of one for PBP, or MPASM.
All the information is there, except for comments, I believe those are lost. Same with fancy formatting and indentation, the best you could wish for out of decompiling would be a straightforward program.
EDIT: Here's some info on decompilers:
http://www.program-transformation.or.../DeCompilation
If you have the source (or .hex file rather) for what you think is in the PIC you can use the Verify feature of your programmer software to compare the .hex that is in the chip with compiled and assembled version you have on disc. If they match you know what is in your PIC.
On the other hand, if you know what what you WANT to be in it just reprogram it with the correct file.
/Henrik.
My problem is that I often clean up comments, alignment, little details that make Verify unuseable. LOLQuote:
If you have the source (or .hex file rather) for what you think is in the PIC you can use the Verify feature of your programmer software to compare the .hex that is in the chip with compiled and assembled version you have on disc. If they match you know what is in your PIC. ...
That won't work well if WriteProtect is on. :DQuote:
...On the other hand, if you know what what you WANT to be in it just reprogram it with the correct file.
(I never use it)
There's no comments or formating information available in the in the .hex file so you can edit and tweak that as much as you want. As long as you don't change the actual code the resulting .hex will look the same no matter how much formating, commenting and tidy-up'ing you've done.
Thanks for the replys