Flash Magic Forum

Archive => Old Topics => Topic started by: MX on August 04, 2004, 04:38:33 PM

Title: P89V51RD2 - Erase Page commands don't work
Post by: MX on August 04, 2004, 04:38:33 PM
I tried using flashmagic to erase 128 byte pages in the v51 and they don't
work.  

MX
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Andy Ayre on August 04, 2004, 04:46:19 PM
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?

Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: MX on August 04, 2004, 04:59:51 PM
No error message.  Flash display shows memory still has stuff in it.  Only
page 0 seems to erase.

MX
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Ravi H on August 05, 2004, 12:36:52 AM
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

Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Andy Ayre on August 05, 2004, 10:40:47 AM
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.

Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: MX on August 05, 2004, 11:43:05 AM
I need to be able to erase individual pages, so I hope this gets resolved.

Thanks
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Andy Ayre on August 05, 2004, 03:22:36 PM
From Philips: clear bit 1 in FCF before using IAP. It only needs to be cleared once after each reset.

Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: MX on August 05, 2004, 03:50:19 PM
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
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Andy Ayre on August 05, 2004, 03:52:15 PM
That is a solution for the IAP problem. I don't yet have a solution for the page erase problem.

Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: MX on August 09, 2004, 10:43:22 AM
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
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Andy Ayre on August 09, 2004, 10:47:11 AM
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.

Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Harshadbhai Ukani on September 09, 2004, 11:01:10 PM
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
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: KS on September 18, 2004, 02:59:09 AM
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
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Annibal Abreu on September 24, 2004, 05:10:00 AM
Hi.

What about IAP erase page commands ?

Is there any command in IAP for these ?
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: erikm on September 24, 2004, 06:17:00 AM
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
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Annibal Abreu on September 27, 2004, 05:11:33 AM
These are the answer that I had receive from two smart Guys:

+++++++++++++++++++++++++++++++++++++++++++++++++++++
Dear Annibal,
Sorry as I was out and busy in other matter, have not opened my mail, you
can erase a sector by
    mov    20H,#00
    setb    008h

    mov    0B1H,#00
    mov    r1,#8
    mov    dptr,#Sector Address
    call     1ff0h
    mov    0b1h,#01h

Your programme must be executing above 2000h, while executing above code.
It is recommnaded that you after finishing you IAP call you better start a
fresh, as IAP uses some registers from 30H to 35H and 80H.

Harshadbhai.

++++++++++++++++++++++++++++++++++++++++++++++++++++

Dear Annibal Abreu,
  You can erase any sector of 128 bytes.  
  Set DPH and DPL for the add. locs to be erased.  Make sure that bits  0-6   of  DPL are zeroes. ( DPH - higher address & DPL-Lower address)
  Clear bit 1 of FCF register (B1H). ( This has to be done once only after reset).
  Clear BSEL bit .  As mentioned in the data sheet ,avoid clearing BSEL bit  when the user program is operating in the range 0000-1FFFH.
  Set R1 = 08H
  Call PGM_MTP at 1FF0H
  Set BSEL bit.

S.Poduval.
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: M.SH on October 12, 2004, 06:43:30 AM
Dear sirs.
Thank you for your very interest site.
I use IAP free software for P89c51RD2 at my project.
please help me about observable notes and changes
for use this code for P89v51RD2.
Title: Re: P89V51RD2 - Erase Page commands don't work
Post by: Andy Ayre on October 12, 2004, 08:33:46 AM
Sorry, we only provide support for Flash Magic - however the datasheets will give you all the info you need.