how to determine what programmed is in a PIC?


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2004
    Location
    Calabasas, CA
    Posts
    84

    Default how to determine what programmed is in a PIC?

    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
    James

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: how to determine what programmed is in a PIC?

    No, I have overcome this limitation reserving the last 8 location of the eeprom where I write the program name.

    Cheers

    Al.
    All progress began with an idea

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: how to determine what programmed is in a PIC?

    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
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: how to determine what programmed is in a PIC?

    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.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: how to determine what programmed is in a PIC?

    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. ...
    My problem is that I often clean up comments, alignment, little details that make Verify unuseable. LOL


    ...On the other hand, if you know what what you WANT to be in it just reprogram it with the correct file.
    That won't work well if WriteProtect is on.

    (I never use it)
    Last edited by Demon; - 4th June 2011 at 16:28. Reason: 'cause I still can't use the Quote feature properly at my age...

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: how to determine what programmed is in a PIC?

    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.

  7. #7
    Join Date
    Nov 2004
    Location
    Calabasas, CA
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: how to determine what programmed is in a PIC?

    Thanks for the replys
    James

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts