AnsweredHot!How to know Hex Code of a PIC ?

Author
JoseLuis2801
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2011/10/12 05:23:06
  • Location: Colmenar Viejo - Madrid
  • Status: offline
2019/02/12 16:26:55 (permalink)
0

How to know Hex Code of a PIC ?

Hello everyone, I had made a program many time ago, and I programm it in a PIC , also I had selected code protected option in the cofiguration register.
 
Now, I need it  again but I don´t have any copy of the source program, I only have the circuit with the PIC, is there any chance to recover the code from the PIC using the PICKIT 3 ?
 
Thanking you in advance
 
Jose Luis
#1
Bob White
Super Member
  • Total Posts : 212
  • Reward points : 0
  • Joined: 2010/11/06 19:52:38
  • Location: Denver, Colorado
  • Status: online
Re: How to know Hex Code of a PIC ? 2019/02/12 16:32:32 (permalink) ☼ Best Answerby JoseLuis2801 2019/02/13 01:03:57
5 (2)
 
Why do you not have the original source code?
 
#2
qhb
Superb Member
  • Total Posts : 9170
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/12 16:34:42 (permalink)
5 (1)
Sounds like a code thief from here.
 
#3
NKurzman
A Guy on the Net
  • Total Posts : 16995
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: How to know Hex Code of a PIC ? 2019/02/12 17:24:53 (permalink)
0
so
1.You have No Source code.
2. The PIC is Locked.
 
1. You maybe able to find someone to get the hex out, Try the Internet.
2. It will not get your Source code.
3. If it was ASM, you can get some of it back.
4. If it was C, then you are starting over.
#4
du00000001
Just Some Member
  • Total Posts : 2490
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/12 17:25:53 (permalink)
0
No real chance.
The code protection is really fine.

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#5
JoseLuis2801
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2011/10/12 05:23:06
  • Location: Colmenar Viejo - Madrid
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/13 01:15:21 (permalink)
0
I´m a disaster that´s why I don´t have the complete code, I mean , I have 90-95% of the asm. source, of course if necessary to complete it again, of course I must do.
 
I had made with MPLAB IDE v8.92 and it´s full 100% asm language. Nkurzman, maybe I´m lucky, how could I recover some parts ?
#6
NKurzman
A Guy on the Net
  • Total Posts : 16995
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: How to know Hex Code of a PIC ? 2019/02/13 07:51:45 (permalink)
0
If they are locked, and they are old pics you can google place in China that will do it for several 100 dollars. I am not sure if the newer ones are easily breakable.
#7
Jan Audio
Starting Member
  • Total Posts : 33
  • Reward points : 0
  • Joined: 2018/09/24 08:12:24
  • Location: 0
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/13 09:11:00 (permalink)
5 (1)
You made it yourself, then it is not difficult to re-write and maybe improve.
Sure a hard-disk might fail, it is not a reason to lose code, make backups more often.
#8
Jim Nickerson
User 452
  • Total Posts : 5814
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: online
Re: How to know Hex Code of a PIC ? 2019/02/13 09:40:56 (permalink)
5 (1)
If you made it yourself some time ago by now you have learned new things.
Re writing the missing part will likely end up with better code using todays knowledge.
#9
1and0
Access is Denied
  • Total Posts : 8740
  • Reward points : 0
  • Joined: 2007/05/06 12:03:20
  • Location: Harry's Gray Matter
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/13 10:36:55 (permalink)
5 (1)
You don't have the complete assembly source code, but do you have the final hex file?
 
#10
Jim Nickerson
User 452
  • Total Posts : 5814
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: online
Re: How to know Hex Code of a PIC ? 2019/02/13 10:39:26 (permalink)
0
Smile: Smile
#11
JoseLuis2801
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2011/10/12 05:23:06
  • Location: Colmenar Viejo - Madrid
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/13 16:26:25 (permalink)
0
Thank you everyone, I see, I´ll think again to complete the asm source...
 
I usually save workspace , but I don´t know what happened that time, also it´s not the 1st. time so I think I must take too much care
 
Regards
#12
JoseLuis2801
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2011/10/12 05:23:06
  • Location: Colmenar Viejo - Madrid
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/14 03:16:03 (permalink)
0
Not exactly, sorry, I have the original circuit which contains the fully program, PIC which has the binary code, so hex. code.
#13
JoseLuis2801
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2011/10/12 05:23:06
  • Location: Colmenar Viejo - Madrid
  • Status: offline
Re: How to know Hex Code of a PIC ? 2019/02/14 03:21:06 (permalink)
0
Sometimes, I make some electronics circuits for my friends, especially for RC airplanes, so that´s why I´ve protected them, they are friends but, no one knows ...that´s why...
 
you are right Jim Nickerson, now, I  know that selecting code protection option, it´s a real one, I´m happy for this.
 
 grin
post edited by JoseLuis2801 - 2019/02/14 03:24:24
#14
Jump to:
© 2019 APG vNext Commercial Version 4.5