Author Topic: Read P87C51  (Read 1073 times)

0 Members and 1 Guest are viewing this topic.

Offline koba30Topic starter

  • Contributor
  • Posts: 20
  • Country: co
Read P87C51
« on: May 18, 2020, 01:00:15 pm »
Hi,

I am using a TL866CSS to read a P87C51, the reading is succefull, the question is: Is this data encrypted?, can be used to programm another uC? How can I check if the code protection is activated?

Thanks in advance for you time.
 

Online Wiljan

  • Regular Contributor
  • *
  • Posts: 227
  • Country: dk
Re: Read P87C51
« Reply #1 on: May 18, 2020, 01:28:49 pm »
I recall that a more symmetrical hex pattern normal comes when it's encrypted so I guess it's not

If you program a new chip and put into the board where the old one was and it works you know it not encrypted
Also you could try to dissemble the dump and see if it makes sense

I also recall way back the the 8751 can run with external Eprom and some guy did that an output pin did drive the input pin telling to read internal or external.
In the external Eprom he had a uart code sending data to external terminal and when start sending he flipped the pin so the dump came from internal Eprom, pretty clever  8)
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1545
  • Country: au
Re: Read P87C51
« Reply #2 on: May 19, 2020, 01:10:54 am »
How can I check if the code protection is activated?
Save the read code to a hex file and run an 8051 disassembler on the hex file, and see if the assembler looks like gibberish...
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8276
Re: Read P87C51
« Reply #3 on: May 19, 2020, 01:48:21 am »
A protected one will read all FF or 00; that looks like valid '51 machine code to me.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: Read P87C51
« Reply #4 on: May 19, 2020, 01:55:55 am »
A protected one will read all FF or 00; that looks like valid '51 machine code to me.
ROM Encryption and read lock are two different things available in this MCU.
 

Offline greenpossum

  • Frequent Contributor
  • **
  • Posts: 408
  • Country: au
Re: Read P87C51
« Reply #5 on: May 19, 2020, 02:38:58 am »
The first 3 bytes are the reset vector 02 0C 4F which is LJMP 0C4F. As said before, put it through a disassembler to see if the dump makes sense.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf