Author Topic: Flash programming problem with P89C51RD2BA  (Read 6504 times)

Koen De Ganck

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Flash programming problem with P89C51RD2BA
« on: January 16, 2006, 02:43:05 am »
I found out that there is a problem with programming this chip. The last byte of  each boundary is wrong. (I checked 4 flashblocks).  Flashmagic give 'OK' after verifying the programmed code. Reading out the last byte(0XFFFh) of each block  with Flashmagic and my application gives the same wrong byte. '1' can be '0' or vice verse, reprogramming a second time without erasing does not solve the problem.
I also tried with 'FREQ = 0' and 'FREQ = 20' as my device works at maximum speed in 6-clk mode.
I have the problem in Flashmagic V1.74 and V2.47
What could be wrong ?
Thanks for your response.

Koen De Ganck

erikm

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: Flash programming problem with P89C51RD2BA
« Reply #1 on: January 16, 2006, 05:05:00 am »
are you using checksum?

Erik

erik

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Flash programming problem with P89C51RD2BA
« Reply #2 on: January 16, 2006, 06:11:14 am »
Uncheck "Use Checksums" the main window. This feature is described in the manual.

Embedded Systems Academy, Inc.
support at esacademy dot com

Koen De Ganck

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Flash programming problem with P89C51RD2BA
« Reply #3 on: January 16, 2006, 07:23:11 am »
Thanks, indeed the problem is now solved. Erik Malund gave me this tip too.
Maybe it would be nice to give a warning when overwriting programcode.

Sanjay

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: Flash programming problem with P89C51RD2BA
« Reply #4 on: January 28, 2006, 03:54:14 am »
Hello there,

I am using 89v51RD2FN alongwith a 12MHz crystal.The problem is that whenever I try to check the Device Signature, Flash Magic displays me the message in red colored text  "Reset the Device in ISP mode now".

I have checked the device name in step 1 and have tried using different Baud rates.I am still unable to reset 89v51RD2FN in ISP mode.I have also tried switching ON and OFF the power supply.

I am using Flash Magic version 2.40 (DLL VERSION 1.90).

Shall appreciate if you can find me a solution to this problem.

Regards,

SANJAY

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: Flash programming problem with P89C51RD2BA
« Reply #5 on: January 29, 2006, 11:19:52 pm »
Ehm, the same question by "nirbhay" - I answered there.
http://www.esacademy.com/software/flashmagic/forum/read.php?f=1&i=2676&t=2676

Jan Waclawek