Author Topic: Unable to program P89V51RD2  (Read 6293 times)

bmn123

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Unable to program P89V51RD2
« on: October 05, 2007, 02:42:56 pm »
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.
« Last Edit: October 05, 2007, 05:25:56 pm by bmn123 »

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: Unable to program P89V51RD2
« Reply #1 on: October 05, 2007, 06:11:56 pm »
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

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Unable to program P89V51RD2
« Reply #2 on: October 13, 2007, 10:08:44 am »
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.

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage

maggidatta

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: Unable to program P89V51RD2 [This Works !!]
« Reply #4 on: March 28, 2014, 11:37:17 am »
Follow the documentation in the following link. This works fine !

http://www.nex-robotics.com/images/downloads/P89V51RD2%20Developement%20Board.pdf