Author Topic: Cannot program my P89V51RD2  (Read 12371 times)

aybee

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
    • Email
Cannot program my P89V51RD2
« on: April 11, 2010, 03:18:48 am »
Dear Andy & other members,

I am trying to program P89V51RD2FN (with a Philips logo) in ISP mode. I have read the forum given by Andy
http://forum.flashmagictool.com/index.php?topic=3273.0


I am posting that I found:
1)   I am using a 11.0592MHz crystal. I am using flash version 5.62.1927. On the FM I am not able to find where I should put the crystal frequency. I think it has AutoBauding, atlease that s what I have read. I have tried all baud rates from 1200 onwards.
2)   Not using high-speed communications mode.
3)   Half-duplex communications feature turned off.
4)   **
5)   **
6)   Yes I have selected the correct device on FM.
7)   Com 1 is correct.
8)   The voltages are 0 and 5 respectively as checked with a scope.
9)   Power supply is stable, checked with a scope.
10)   Ground is stable, checked with a scope.
11)   **
12)   **
13)   Am checking with com debug for serial communication. I am sending U and able to see the U on RXD pin of the V51RD2 but these is no U reply from the V51RD2.
14)   I have 4 sec timeout period.
Heres what I am doing.
I am connecting the Flash Magic to the controller board. Press the START button and I can see the stream of U on the RXD of the V51RD2. Then I power on the V51RD2 (at this time there is a power on reset). There is still a stream of U. I press the RESET button. According to me there should be U sent out from the TXD of the controller, but there is nothing there.

I have the ALE connected to 5V via a 10K pullup as the circuit is for my 89C52. PSEN is grounded. Can see the oscillator frequency on the 19 and 18 pins.

The flash magic keeps on sitting on "please reset to ISP mode" ??
What am i doing wring or is there something wrong with the IC. I have used 2 IC's fro the same lot.

can there be some issue with the bootloader, but i read @"http://69.41.174.64/forum/read.phtml?id=95101" by Jan Waclawek that the P89V51RD2 does not have a bootloader. Mine is a P89V51RD2 ??? FN ??? but i think FN only stands for the package ?

I have also tried with the PSEN floating now but still no luck.
« Last Edit: April 11, 2010, 04:26:02 am by aybee »

dptxp

  • Jr. Member
  • **
  • Posts: 31
    • View Profile
Re: Cannot program my P89V51RD2
« Reply #1 on: April 11, 2010, 10:06:33 am »
You need to connect Tx and Rx only and RESET the device (power-off and then ON) or switch it ON from OFF
after you get the message to get into ISP mode.
Sometimes you may need more than 1 attempt.
Works at 57600 bps too.

aybee

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
    • Email
Re: Cannot program my P89V51RD2
« Reply #2 on: April 12, 2010, 07:23:55 am »
Yes I have done that but i guess i will try it around 100 times tomorrow and see if i am lucky !

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2167
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Cannot program my P89V51RD2
« Reply #3 on: April 12, 2010, 08:38:18 am »
Flash Magic can't do anything if it doesn't get a response from the device. Have you measured the time from reset to the first 'U' arriving at RxD? It should be less than 400ms.

It could be that your devices have been damaged by static. If you received them brand new then that wouldn't be likely however.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

aybee

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
    • Email
Re: Cannot program my P89V51RD2
« Reply #4 on: April 13, 2010, 07:47:49 am »
I have worked on AT89C51's and AT89C52's for a long time and got them from the same place from where i purchased these RD2's but none of them were damaged.
I will change the IC's (have already checked 5 that i got in the same pack) but what other options do i have ?????

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2167
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Cannot program my P89V51RD2
« Reply #5 on: April 13, 2010, 08:20:35 am »
I suggested you measure the time between the reset and the first 'U' using a scope. You might want to contact your local NXP FAE if that doesn't help.

Andy
« Last Edit: April 13, 2010, 08:27:29 am by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

dptxp

  • Jr. Member
  • **
  • Posts: 31
    • View Profile
Re: Cannot program my P89V51RD2
« Reply #6 on: April 14, 2010, 02:40:30 am »
In options>>Advanced>>Hardware Config, Have you unchecked the DTR/RTS ? If not, please do.

aybee

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
    • Email
Re: Cannot program my P89V51RD2
« Reply #7 on: April 14, 2010, 06:09:47 am »
@ Andy,
I am switching on the controller when the flash magic tell me to put the controller in ISP mode

@Dptxp
Yes i have done that.

Guys,

I today got a new new P89V51RD2BN(instead of the earlier P89V51RD2FN) from another shop and i was able to program it successfully 10 times at first attempt every time.

Whatb is wrong with the other P89V51RD2BN, are all five damaged ??


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2167
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Cannot program my P89V51RD2
« Reply #8 on: April 14, 2010, 09:15:05 am »
My recommendation is to purchase devices from distributors listed on the NXP website as they will be guaranteed brand new from the factory.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

aybee

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
    • Email
Re: Cannot program my P89V51RD2
« Reply #9 on: April 15, 2010, 08:26:31 am »
ok andy !