Author Topic: p89v51rd2 security  (Read 16254 times)

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: p89v51rd2 security
« Reply #15 on: July 07, 2004, 10:18:40 am »
Version 2.01 is now available that allows you to program the device even though security bit 1 is set. Thanks for pointing this out!

Embedded Systems Academy, Inc.
support at esacademy dot com

lambros sirivlis

  • Guest
Re: p89v51rd2 security
« Reply #16 on: July 07, 2004, 12:38:54 pm »
Thank you Andy.
it sounds great!!!
many thanks to you and to Eric for help.
Regards
Lambros

lambros sirivlis

  • Guest
Re: p89v51rd2 security
« Reply #17 on: July 08, 2004, 01:16:57 am »
hi andy.
2.01 works fine.

A small observation:

IF  clock bit was previously set and security bit unset

and you select in step 4 of flash magic
verify after programming,
fill unused flash,
set security bit 1,
and 6 clocks/cycle
then  flash magic does not  set security bit.

You have to select in step 4 of flash magic
verify after programming,
fill unused flash,
set security bit 1,
and "uncheck" 6 clocks/cycle.
Then  flash magic   sets security bit.

Can flash magic "first read" and then write  if a bit is not set?

Regards
Lambros Sirivlis

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: p89v51rd2 security
« Reply #18 on: July 08, 2004, 09:25:44 am »
I tried this and I cannot reproduce it. When you choose "Read Security Bits..." from the ISP menu, does it show security bit 1 as being set?

Embedded Systems Academy, Inc.
support at esacademy dot com

lambros sirivlis

  • Guest
Re: p89v51rd2 security
« Reply #19 on: July 08, 2004, 10:06:20 am »
1) select in step 4 of flash magic
verify after programming,
fill unused flash,
6 clocks/cycle
After reset magic flash shows correctly that
security bit is unset and clock bit set(6 cycles)

2) select in step 4 of flash magic
verify after programming,
fill unused flash,
set security bit 1,
and 6 clocks/cycle
then flash magic does not set security bit.
(security bit is "unset")

3) select in step 4 of flash magic
verify after programming,
fill unused flash,
set security bit 1,
and "uncheck" 6 clocks/cycle.
Then flash magic sets security bit.
Now security bit is set and clock bit is set.


Andy i'm not very shure about this cause i done this 3 steps only
one time with a single chip.
I'll try it again tomorrow.



regards
Lambros Sirivlis

lambros sirivlis

  • Guest
Re: p89v51rd2 security
« Reply #20 on: July 09, 2004, 02:25:40 am »
1) select in step 4 of flash magic
verify after programming,
fill unused flash,
6 clocks/cycle
After reset magic flash shows correctly that
 clock bit set (6 cycles)
security bit 1 is "unset" (correct)
my program runs ok

2) select in step 4 of flash magic
verify after programming,
fill unused flash,
set security bit 1,
and 6 clocks/cycle
Message: Operation failed(programming security bit )

I read :
 clock bit set (6 cycles)
security bit 1 is "unset"  (wrong)
my program runs ok


3) select in step 4 of flash magic
verify after programming,
fill unused flash,
set security bit 1,
and "uncheck" 6 clocks/cycle.

I read :
 clock bit set (6 cycles)
security bit 1 is set  (correct)
my program runs ok

Maybe  flash magic (in my 2nd step) quits because has to set
an already programmed bit (clock bit)

lambros sirivlis

  • Guest
Re: p89v51rd2 security
« Reply #21 on: July 09, 2004, 03:10:12 am »
Andy,
if i'm not asking too much
can you add an  option to serial number window?

A box to check that says:
"Always use the same serial number".
And if you check this box flash magic after programming
automatically sets this serial number.
Serial number works like password so you can use the same
number  always.
(it's easier to remember it  if you want to unlock the device later)

Regards
Lambros Sirivlis

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: p89v51rd2 security
« Reply #22 on: July 09, 2004, 09:38:36 am »
It appears the device is switching baud rate, so I've sent the problem to Philips for analysis.

I'll add your suggestion to our to do list. Thanks.

Embedded Systems Academy, Inc.
support at esacademy dot com

lambros sirivlis

  • Guest
Re: p89v51rd2 security
« Reply #23 on: July 10, 2004, 02:24:25 am »
thank you Andy.