Doubts on FlashMagic settings for programming P89V51RD2

Started by SrinivasNayak, July 13, 2012, 05:26:35 AM

Previous topic - Next topic


Hi All,

I have some doubts on FlashMagic setting for programming P89V51RD2.

There are two check boxes,
1. check box near to "Erase all Flash".
2. check box near to "Erase Flash used by Hexfile".

What are the exact behavior of these two Items when checked?

I made my P89V51RD2 system using circuit diagram from
Yesterday when I programed P89V51RD2 through RS232, I was afraid of my bootloader damage.
So I didn't dare to check any of them.
Fortunately, I was able to successfully program my P89V51RD2 and my boot loader was still intact.
I checked this by re-programming my P89V51RD2.

But, which box we shall check, while programming P89V51RD2 by ISP method using RS232?

From Google searches I found that, "Erase All Flash" shall erase the bootloader. And this box is checked while programming P89V51RD2 using a separate parallel programmer device.

Just wanted to know, which box we can safely check while programming P89V51RD2 by ISP method using RS232. And what exactly are the behaviors of these boxes. I refered the FlashMagic documentation, but couldn't get any unambiguous answer.

Srinivas Nayak

Andy Ayre

The first one erases the entire flash in the device. The second only erases the blocks used by the hexfile you have chosen in section 3 of the main window.

Flash Magic will automatically modify the erase routines to protect the bootloader, unless you turn that feature off. It can be found in Options -> Advanced Options and is called "Protect ISP". Make sure this is always checked.

Flash Magic does not support parallel programmers.

Embedded Systems Academy, Inc.
support at esacademy dot com