P89V51RD2 - Erase Page commands don't work

Started by MX, August 04, 2004, 04:38:33 PM

Previous topic - Next topic

MX

I tried using flashmagic to erase 128 byte pages in the v51 and they don't
work.  

MX

Andy Ayre

I need more info. What happens? Do you get an error message? Do you look at the contents of the page after erasing? If so what do you see?

Embedded Systems Academy, Inc.
support at esacademy dot com

MX

No error message.  Flash display shows memory still has stuff in it.  Only
page 0 seems to erase.

MX

Ravi H

I also had Similar problem.

Erase Flash page command erases either Page 0 or Page 1.
Requested page data remains same. (used Version 2.01 of Flashmagic).

Also reading flash command displays message " Reset the device in ISP mode now" and clear this message and then displays flash data.

Also in IAP mode, this chip doesn't work, althogh enabled by clearing BSEL bit in FCF register (0B1H).

IAP commands works fine on P89C51RD2BN chip.

Has somebody used 89V51RD2 chip in IAP mode, since it has very limited IAP commands as compared to 89C51RD2XX.

-Ravi


Andy Ayre

I was able to reproduce this problem and I have sent it to Philips for analysis. Hopefully there should be a solution soon. I guess the obvious workaround for the time being is to erase the flash block instead.

Regarding IAP - I haven't used it, sorry. Hopefully someone else can answer that one, although this is not an IAP forum. You might want to post your question on www.8051.com.

Embedded Systems Academy, Inc.
support at esacademy dot com

MX

I need to be able to erase individual pages, so I hope this gets resolved.

Thanks

Andy Ayre

From Philips: clear bit 1 in FCF before using IAP. It only needs to be cleared once after each reset.

Embedded Systems Academy, Inc.
support at esacademy dot com

MX

Andrew Ayre wrote:

> From Philips: clear bit 1 in FCF before using IAP. It only
> needs to be cleared once after each reset.
>
>

Is that only for IAP or does that apply to ISP also?

MX

Andy Ayre

That is a solution for the IAP problem. I don't yet have a solution for the page erase problem.

Embedded Systems Academy, Inc.
support at esacademy dot com

MX

I've been told by Philips that this is a problem they just fixed in the chip's
internal ISP code.  I guess this means new chips, unless there's a way to
flash the new ISP code.  I think it's ROM, though.

MX

Andy Ayre

The ISP code isn't in ROM on those devices. I am sure that Philips is looking into ways to update existing devices with the new ISP code.

Embedded Systems Academy, Inc.
support at esacademy dot com

Harshadbhai Ukani

Hi Ravi,Mx

Page erase is working with version 2.07. However if you give command "Display Flash" before page erase. The buffer is having the data and if you view Data after page erase, Flash Magic shows it from the buffer. However if you restart Flash and your device both you will see that the page is erased.

-Harshadbhai

KS

Hi to all,

We also had problems with the IAP mode.
Latets answer from Philips :
Bit 1 must be cleared during initialization to allow IAP
This was not in the present release of the documentation but will be added in the next  !!
So we must clear bit 1. and before calling PGM_MTP we must clear bit 1.
after the call we must reset this bit only!

Koenraad

Annibal Abreu

Hi.

What about IAP erase page commands ?

Is there any command in IAP for these ?

erikm

I just happened to see this at the comparison chart RD/V



Bootloader for V and LV devices can be obtained from the internet needs to be reprogrammed when security bit is set and full-chip erase is being performed.

Erik