Unable to program P89V51RD2

Started by bmn123, October 05, 2007, 06:42:56 AM

Previous topic - Next topic

bmn123

I am programming a P89V51RD2 with a 12MHz crystal using a USB-RS232 adapter.

However, I keep getting a message which says:-

UNABLE TO COMMUNICATE. TRY REDUCING THE BAUD RATE. RESET THE HARDWARE INTO ISP MODE.

I have tried every Baud rate available and still get this message.

What should I do to solve this problem?

Edit: I have tried unchecking the "Use DTR to control RST" box. That gives me the message "RESET THE DEVICE TO ISP MODE NOW". However, switching OFF and ON the power supply or pressing an external RESET button does not help at all.

Jan Waclawek

Can you try a different USB-RS232 adapter? Or a true COM port?

Have you also read the troubleshooting guide (http://forum.flashmagictool.com/index.php?topic=3273.0 and http://forum.flashmagictool.com/index.php?topic=3375.0)?

JW

bmn123

I tried a true serial port and everything works fine. However, now I am facing another dilemma.

I am carrying out the In-Application Programming in the microcontroller. However, I am unable to write in the same location for a second time. I believe this may be because the flash needs to be erased before being written into like in the P89C51RD2.Is there any way to get around this problem?

Flash Magic has the feature to Erase Flash Pages. Is it possible to do so with software in the P89V51RD2? This would allow me to just erase my data and preserve my code.