Author Topic: Problem with P89V51RB2FN  (Read 5791 times)

Family

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Problem with P89V51RB2FN
« on: September 05, 2006, 09:20:04 am »
Hi Andrew!
I'm using P89V51RB2FN.
Manufacturer  ID: BF
Device ID: 91
When using FlashMagic to program, I met prob same Benoit at: http://www.esacademy.com/software/flashmagic/forum/read.php?f=1&i=2725&t=2725
So, I do something as your suggestion. It has no problem in the first time!
But, when reprogramming, FlashMagic can't verify the code. And when I select:  (ISP)erase flash- then (ISP) Display memory, the first code is no change in flash!
What happen with my chip?
Thanks before!



Post Edited (09-05-06 09:21)
-------------------------

Family
Good luck!
-------------------------

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2167
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem with P89V51RB2FN
« Reply #1 on: September 05, 2006, 10:28:51 am »
Sending a report to Philips for further info/suggestions.

Embedded Systems Academy, Inc.
support at esacademy dot com

BTDN

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: Problem with P89V51RB2FN
« Reply #2 on: September 07, 2006, 10:47:15 pm »
When using P89V51RB2FN, I had same prob as Family and nova. This way maybe helpful for you:
+You must erase all flash memory (ISP-->Erase Flash pages-->Select all pages) before reprogramming.

=====================
Change your life, if you want!

nova

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Problem with P89V51RB2FN
« Reply #3 on: September 09, 2006, 08:15:43 pm »
  Yes, I agree with with BTDN, we can reprogram by erase Flash pages first and after that download the program. But, you know, It is very inconvenient when we must erase many pages. I don't know with Flash Magic how is different between "erase all flash" and "erase flash pages". Why can we erase flash page, but can not erase all flash.

duy382135

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2167
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem with P89V51RB2FN
« Reply #4 on: September 11, 2006, 07:39:13 am »
Erase all flash sends either the full device erase command or - if there is only one flash block, sends the command to erase that block. Erase flash pages allows you to erase individual pages.

See the Flash memory section of the datasheet for information on the difference between blocks and pages. Note that the datasheet might refer to a block as a sector.

Embedded Systems Academy, Inc.
support at esacademy dot com

Family

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Problem with P89V51RB2FN
« Reply #5 on: September 18, 2006, 11:44:18 am »
Hi!
Thanks to BTDN because of your suggestion! But it seems so complicated when we must erase all flash pages ̣(ISP-->Erase Flash pages-->Select all pages) before reprogramming!
Could you give any advices to solution this prob?
Thanks before!

-------------------------

Family
Good luck!
-------------------------

erikm

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: Problem with P89V51RB2FN
« Reply #6 on: September 19, 2006, 05:38:17 am »
Could you give any advices to solution this prob?

a guess

You have some protection bit(s) set.

for obvious reasons, if any protection is set a full erase is required.

erik

erik

Family

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Problem with P89V51RB2FN
« Reply #7 on: September 19, 2006, 06:33:37 am »
Hi Erik!
I'm sure that security bit is not set!
FlashMagic:
ISP --> Read Security --> Display: 'Security Bit 1 unset'

-------------------------

Family
Good luck!
-------------------------