Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: Yeddnapuddi Sivakumar on February 16, 2004, 10:19:55 pm

Title: flash failure
Post by: Yeddnapuddi Sivakumar on February 16, 2004, 10:19:55 pm
Hi ESA team

I was using Flash magic tool for past two years.i did not find issues when i am using the 89c51rd+,89c51rd2hbp.
There was recent launch from philips microcontroller part no  is 89c51rd2BN....

Here i face issues in performing flashing using flash magic.
It fails in erasing and stucks up ....
It stucks up in erasing 0... and and flashing fails.

Further i am unable to enter ISP mode.Kindly i need your advice to perform flashing for this chip.
Title: Re: flash failure
Post by: Andy Ayre on February 17, 2004, 06:42:11 am
Have you implemented the reset solution in the errata sheet for that device?

Title: Problem to re-program
Post by: Peter on March 02, 2004, 09:03:46 pm
After loading a sample programe to check the I/O ports and then the
controller cannot to use ISP function again. I have followed errate sheet procedurce to warm boot ISP function. But it cann't work.
Please send me solution by email. Thanks a lot!

Peter
Title: Re: Problem to re-program
Post by: Andy Ayre on March 03, 2004, 07:03:34 am
The datasheet describes voltages that need to be on specific pins at reset. Have you taked a multimeter and checked that the voltages are correct? Also, what happens if you connect using a terminal program (8 bits, no parity, 1 stop bit, no flow control) and send a single uppercase 'U'? Does the device echo it back?

Title: Re: flash failure
Post by: Rons on March 03, 2004, 09:24:54 am
The reset solution is a good thing. I also noticed that if your microntroller
supply voltage is lower than spec you will see problems that FlashMagic
cannot identify.
Title: flash failure
Post by: Chirag on March 04, 2004, 08:50:50 am
hi,
this is chirag. I am facing the same problem. Unable to erase the flash blocks. Please do send me the solution if you have one.Rons wrote:

Title: flash failure
Post by: Chirag on March 04, 2004, 08:51:08 am
hi,
this is chirag. I am facing the same problem. Unable to erase the flash blocks. Please do send me the solution if you have one.
Title: Re: flash failure
Post by: Andy Ayre on March 04, 2004, 08:53:57 am
Chirag - you will need to give me more information than that. For example, which device are you using? What crystal frequency and baud rate are you using? Can you read the security bits and device signature even though you cannot erase? Etc. If you look at some of the other postings you will see the types of information that I need.

Title: Re: flash failure
Post by: sudip on March 04, 2004, 08:29:42 pm
i'm using P89C51RD2BN with crystal frequency 22.1184 Mhz, I can read the device signature and the security bits but when i try to erase it through flash magic, the software hangs....after that when i reconnected it by hardware resetting the mcu...the flash memory read all 00h..please help
Title: Re: flash failure
Post by: erik malund on March 05, 2004, 04:28:31 am
P89C51RD2BN with crystal frequency 22.1184 Mhz
have you programmed it to start in 12 clock mode, in 6 clock the Max is 20MHz.

Erik
Title: Re: flash failure
Post by: Chirag on March 05, 2004, 08:29:29 am
hi,
Sudip and I are woking together on the same project.
I suppose the P89C51RD2BN has a default 12 clock mode. on the last line on the top side of the chip it is written as 12clk(6 clk). As it is if it would have not been in 12 clock mode would it communicate with the flashmagic on first count.
So finally how to erase the flash memory
Title: Re: flash failure
Post by: Rons on March 05, 2004, 09:00:05 am
The issue brought up by erik is you cannot operate the chip in 6 clock mode
with an oscillator above 20MHz. If you use 22.1184 in 6 clock mode, that's
wrong. On a reset the device is by default in 12 clock mode, then you would
be alright.
Title: Re: flash failure
Post by: Andy Ayre on March 08, 2004, 06:37:22 am
1. Did you make sure you are using the reset solution from the errata sheet? I didn't see an answer to this question on the forum when I asked it.

2. How fast are you running the device? 12 clocks/cycle or 6 clocks/cycle? You can find out for sure by choosing "Read Clocks" from the ISP menu.

3. What happens when you choose "Erase Flash..." from the ISP menu, check "Erase All Flash + Security" and click on OK?

4. Do you have the "6 clks/cycle" option checked?

Title: Re: flash failure
Post by: erik malund on March 08, 2004, 10:58:13 am
Rons:
>>On a reset the device is by default in 12 clock mode, then you would
be alright<<
Not necessarily, there are two bits, one program and one 'flash'
Andy:
>>Do you have the "6 clks/cycle" option checked<<
That would be very bad with an xtal >20MHz

Erik
Title: Re: flash failure
Post by: sudip on March 08, 2004, 05:36:21 pm
no, 6 clks/cycle option was not checked while erasing and the device was running in 12 clks/cycle default mode after reset....then also the erasing opertion hangs.
sudip
Title: Re: flash failure
Post by: Andy Ayre on March 10, 2004, 08:06:08 am
For the benefit of others reading this thread, the problem was ripple on the power supply/EA.

Title: Re: flash failure
Post by: yogesh on October 07, 2004, 04:25:26 am
Hello everybody,
I have 89C51RD2HBP    "G"   phillips make IC
I could erase the flash & program the same only the first time
Henceforth The flash is not getting Erased
in flash Magic it is giving Commn error

If anybody has soln do let me know

Thank & regards
Yogesh
Title: Re: flash failure
Post by: erikm on October 07, 2004, 05:21:53 am
89C51RD2HBP

The "H" chips will fail if you use the stupid RC reset, use a supervisor (RC reset is stupid regardless of which chip you use).  You probably have blown the reset vector from a RC reset in which case the only salvage is in a parallel programmer.

When you get going, install NoTouch and, if developing, "the backdoor" BEFORE you blow the reset vector again and you are home frree.

Erik
Title: Re: flash failure
Post by: S.Anbarasu on December 07, 2004, 09:06:27 pm
Author: Anbarasu.S
Date:   08 DEC 2004

Help please,

   I have tried to program the P89C51RD2BN using
Title: Re: flash failure
Post by: Andy Ayre on December 08, 2004, 10:05:38 am
If the status byte is non-zero then after a reset the device will enter ISP mode. If the status byte is zero then after a reset the device will execute your code.

After programming a hex file, flash magic automatically sets the status byte to zero. So, once programmed all you need to do to execute your code is reset the device.

However, /PSEN is also used to toggle between ISP mode and user code execution at reset regardless of the value in the status byte. Check with the datasheet for the states, but depending on the voltage on /PSEN at reset you may be selecting the wrong mode.

With an 11.0592MHz crystal you should be able to use 9600 baud fine. AIf you want to go faster you just have to try it and see. You can also use the high speed communications option, however you should only use that once you can reliably communicate with the device.

Note there is an errata sheet for this device. Get it from www.philipsmcu.com and implement the workaround, if you haven't already.

Title: Re: flash failure
Post by: varun on January 13, 2005, 03:23:13 am
what is errata datasheet of 89c51rd2bn ?
i am not finding it on internet?
can anybody send me that?
my email id is:varun_rz@rediffmail.com
Title: Re: flash failure
Post by: Markus Heider on January 13, 2005, 06:14:56 am
Hello,

I have just reported a (for me) similar problem with P89C669.

Just look at the post from 12-01-2005 from Markus Heider, titled "Flash Erase Problems at P89C669".

At first I had problems with using the IAP function, but with verifing that that problem occured with FlashMagic, too.

regards

Markus
Title: Re: flash failure
Post by: varun on January 16, 2005, 04:14:55 am
hi
please give the exat address of errata datasheet of 89c51rd2bn

Title: Re: flash failure
Post by: erikm on January 17, 2005, 05:49:55 am
please give the exat address of errata datasheet of 89c51rd2bn

NO WAY! the you will come back tomorrow with "please give the exat address of datasheet for MAX232" or something like that

The links to ALL documents related to a given Philips chip are on the "header page" that comes up when you do a search on the chip at the Philips site.

Erik
Title: flash can't load
Post by: DHAVAL DEPANI on February 20, 2005, 07:05:24 pm
     we can't load program in below mcu, text written on the mcu is given below.
                     89C51RD2BN
                     1F9310
                     AJN0432F
                     12 CLK_ (6 CLK)
we use crystal frequency 22 mhz with 22nf cap.
     and for communication we use MAX232 (MAXIM) OR HIN232 with cap value is 10uf 63v but we can't load hex file in 89c51rd2bn using flash magic
please help me ...
Title: Re: flash failure
Post by: erikm on February 21, 2005, 05:42:08 am
we use crystal frequency 22 mhz with 22nf cap.  I hope that is a mistype!!!

also, if the chip is configures to 6 clock you exceed the max speed.

Erik
Title: erratasheet of at89c51rd2BN
Post by: JASMI on September 01, 2005, 02:46:43 am
HI

I M NOT GETTING ERRATASHEET OF AT89C51RD2BN

PLZ  DO  MAIL ME THIS ERRATA
THANX
Title: Re: flash failure
Post by: erikm on September 01, 2005, 05:51:12 am
I M NOT GETTING ERRATASHEET OF AT89C51RD2BN
Then ask at an ATMEL site, FlashMagic is for Philips chips


PLZ DO MAIL ME THIS ERRATA
THANX
1) you SHOUT, 2 you use Stupid Monkey **** (PLZ) so why would anyone feel like helping you?

Erik