Flash Magic Forum

In-System Programming Support => P89V51Rx2/P89LV51Rx2 => Topic started by: Family on September 05, 2006, 09:20:04 AM

Title: Problem with P89V51RB2FN
Post by: Family 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)
Title: Re: Problem with P89V51RB2FN
Post by: Andy Ayre on September 05, 2006, 10:28:51 AM
Sending a report to Philips for further info/suggestions.

Title: Re: Problem with P89V51RB2FN
Post by: BTDN 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.

Title: Re: Problem with P89V51RB2FN
Post by: nova 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.

Title: Re: Problem with P89V51RB2FN
Post by: Andy Ayre 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.

Title: Re: Problem with P89V51RB2FN
Post by: Family 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!

Title: Re: Problem with P89V51RB2FN
Post by: erikm 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

Title: Re: Problem with P89V51RB2FN
Post by: Family 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'