Author Topic: USE P89C51RD2BN to ISP (Flash Magic) => only once !?  (Read 10027 times)

losas

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
USE P89C51RD2BN to ISP (Flash Magic) => only once !?
« on: September 20, 2009, 07:14:39 pm »
HI ...

I have some new P89C51RD2BN IC and setup FlashMagic V5.35 OK.

FlashMagic Step 1 to 4 OK and run Step 5 to start.

But only once program is OK ...

Use the same HEX file(or another) to 2nd program was filded.

Step 1~4 no change , why only 1st program is ok ? (test smoe new P89C51RD2BN)

more than once ... get error message is

"Unable to connect at the specified baud rate. Try reducing the baud rate. Failed to autobaud. See http://www.flashmagictool.com/autobaud.html Reset the hardware into ISP mode again."

Baud rate is 9600. Change it to test ... get the same error message .

Help me ... thank you .

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: USE P89C51RD2BN to ISP (Flash Magic) => only once !?
« Reply #1 on: September 21, 2009, 10:00:03 am »
When devices are new from the factory the status byte is set. This causes the device to run the bootloader when it is powered up or reset.

Once you have programmed the device Flash Magic will clear the status byte.

Now if you want to run the bootloader you must meet the AC and DC conditions described in the user manual for the device. Use a scope to verify you are meeting all of the conditions.

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

losas

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
Re: USE P89C51RD2BN to ISP (Flash Magic) => only once !?
« Reply #2 on: September 22, 2009, 02:31:06 am »
Thank you,I check in the user manual for the device.

GeeMott

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: USE P89C51RD2BN to ISP (Flash Magic) => only once !?
« Reply #3 on: September 23, 2009, 01:17:09 pm »
Maybe you have the same problem I had:
http://forum.flashmagictool.com/index.php?topic=3497.0

The solution was (and still is), I have to update the bootloader BEFORE I program the device the first time.  If I fail to do this, the part programs only once.  Then if I need to update it, it goes into a little box labeled "parts not worth keeping."

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: USE P89C51RD2BN to ISP (Flash Magic) => only once !?
« Reply #4 on: September 24, 2009, 08:41:24 am »
The "V" devices are very different from the "C" devices. The bootloader cannot be upgraded in the "C" devices and the bootloader is different code.

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