Flash Magic Forum

In-System Programming Support => P89V51Rx2/P89LV51Rx2 => Topic started by: Annibal Abreu on September 28, 2004, 05:23:41 PM

Title: P89V51RD2 view memory
Post by: Annibal Abreu on September 28, 2004, 05:23:41 PM
Hi.

Flash Magic 2.07  for P89V51RD2

1) doesn't allow you erase only bytes used by HEX file.
It erase all memory !

If you have code in lower 64Kbytes and you try to load another code in the upper side. FlashMagic erase the code in the lower side.

2) you can't select memory size to see. It loads the flash memory and it doesn't stop the mouse of "flashing". It seems to try to load all the time, without stop.
Title: Re: P89V51RD2 view memory
Post by: Andy Ayre on September 29, 2004, 09:48:43 AM
Flash Magic erases all the blocks used by the hex file. For this device there is only one flash block, so the whole memory is erased.

If you want to erase only some of the Flash pages, choose Erase Flash Pages from the ISP menu. You can also set up a batch file to repeatedly erase the same set of Flash Pages if you wish.

The view memory feature views memory one block at a time. Because there is only one block, the whole memory is viewed. It is read it in chunks and displayed in chunks, so while it is reading in you should still be able to scroll down to the section you are interested in. You can close the window at any time.

Title: Re: P89V51RD2 view memory
Post by: Jesus Calvino-Fraga on July 01, 2005, 01:40:48 PM
It is true that there is just one big user block of 64k, but it is split in 512 sectors that can be erased individually.  An option to erase only the flash sectors used by the hex file wouldn't be that hard to add to FlashMagic.  The drawback is that erasing each sector takes aproximatelly 20 milliseconds, which adds up to 10 seconds if the whole flash were to be erased this way.

Jesus

Title: Re: P89V51RD2 view memory
Post by: Andy Ayre on July 01, 2005, 03:10:19 PM
Thanks for the suggestion. We'll add it to our list for inclusion in a future version.