I tried using flashmagic to erase 128 byte pages in the v51 and they don't
work.
MX
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?
No error message. Flash display shows memory still has stuff in it. Only
page 0 seems to erase.
MX
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
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.
I need to be able to erase individual pages, so I hope this gets resolved.
Thanks
From Philips: clear bit 1 in FCF before using IAP. It only needs to be cleared once after each reset.
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
That is a solution for the IAP problem. I don't yet have a solution for the page erase problem.
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
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.
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
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
Hi.
What about IAP erase page commands ?
Is there any command in IAP for these ?
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
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.
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.
Sorry, we only provide support for Flash Magic - however the datasheets will give you all the info you need.