how to recover code of PIC16C57
moonnightingale
Posts: 4
·I am stuck with problem of microcontroller.I have a microcontroller which is installed on PCB. This is basically power PCB. The microcontroller is Microchip PIC16C57.·
I have read its code and burnt in new microcontroller having same model and number. But when i installed it on PCB and when PCB was installed on machine, the output was not desired. What else can go wrong. I am having Universal Programmer 3000u.
I am·attaching·the Code file· The original microcontroller was burnt by some one else. Is there any hidden encryption which stops to work new microcontroller work properly. some body saw my code and told me that it is code protected. Can u kindly tell me steps to recover my code.
Kindly comment.
Thanks
I have read its code and burnt in new microcontroller having same model and number. But when i installed it on PCB and when PCB was installed on machine, the output was not desired. What else can go wrong. I am having Universal Programmer 3000u.
I am·attaching·the Code file· The original microcontroller was burnt by some one else. Is there any hidden encryption which stops to work new microcontroller work properly. some body saw my code and told me that it is code protected. Can u kindly tell me steps to recover my code.
Kindly comment.
Thanks
Comments
There are companies that will take your PIC16C57, remove the plastic over the chip itself using solvents, and read out the contents of the flash EEPROM using an electron beam probe to read the charge stored in each bit cell. This is very very expensive with no guarantees of success
Any comments abt that
There's no way to "break" code protection other than what I described. That method requires special expertise and equipment and is very expensive, but doable commercially.
In addition to duplicating the code, you will probably need to make sure that the FUSE settings match as well.
Can u kindly explain this to me. You want to say that it is possible that code is not protected and i am making certain mistake while reading from MCU. Might be my seetings of software are not correct. This is PIC16C57 and i am using Unversal Programmer 3000u by Xeltek.
Can u give me some solution. I am desparate to get my code back
If you are already very experienced with your programmer then you can ignore this paragraph. If not, you might want to try an experiment to see if you are using the programmer to read out the code correctly. Program a new chip with some code that you have written yourself to do something simple like blink an LED. Program the chip and make sure it works as expected. Then use your programmer to read out the code and see if it has the odd issues that I saw in your previous dump. You can also try programming a chip from this code dump that you just read out. If this works after having followed the same steps as you used for reading the other chip then I think it would definitely point to the code protect bit being set and not usage of the programmer.
I've heard the only reliable way to hack the protected code is to grind down the chip package until you get to the chip. Then etch the chip with various chemicals and read the code with a rather good microscope.
I have a bunch of SX18 chips that I treasure as they fit into the same sockets at 18 pin DIP PICs (but they require a SX programer). It seems that the PIC16c57 may be pin compatible with the SX28. One can migrate over to that if all else fails.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ain't gadetry a wonderful thing?
aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
Post Edited (Loopy Byteloose) : 7/24/2010 4:45:33 PM GMT