Author Topic: Problem to program 89C61X2  (Read 13169 times)

Wah

  • Guest
Problem to program 89C61X2
« on: June 16, 2004, 09:31:51 pm »
Hi,

When I try to read security bits, Flash Magic has a message "Unable to connect at a specified baud rate. Try reducing the baud rate. Reset the hardware into ISP mode again." I already use the lowest baud rate. Why the MCU cannot be connected? Also, I don't know how to use the "Start Bootrom". Would you explain? Thanks.

Wah

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem to program 89C61X2
« Reply #1 on: June 17, 2004, 08:29:22 am »
Which device are you using? I guess it is the 89V51RD2? If so you need to Email me your schematic diagram, because your other posting makes me think you might have a problem with it.

The Start Bootrom feature is used when you implement your own ISP entry method. For example, if your code has a command line interface you might allow it to accept the command "BOOT" followed by a carriage return to enter ISP mode. By using the Start Bootrom option in Flash Magic, you can send the "BOOT" command or anything else at a baud rate seperate from the ISP baudrate. The Flash Magic manual describes some additional commands you can enter to turn on and off echo, insert delays, etc. So infact you could enter a sequence of commands, a password, etc. with the necessary delays between the commands.

Embedded Systems Academy, Inc.
support at esacademy dot com

wah

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Problem to program 89C61X2
« Reply #2 on: June 17, 2004, 07:39:32 pm »
Hi, Andy

How can I send email to you? I don't know your email. Thanks.

Wah

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem to program 89C61X2
« Reply #3 on: June 18, 2004, 09:45:36 am »
It's at the bottom of every posting I make and also in the Help -> About window of Flash Magic.

Embedded Systems Academy, Inc.
support at esacademy dot com

Balamurali

  • Guest
Difference btwn 89c51RD2 and 89C61X2
« Reply #4 on: July 27, 2004, 02:47:40 am »
May i know what is the exact difference between 89c51RD2 and 89C61X2?


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Difference btwn 89c51RD2 and 89C61X2
« Reply #5 on: July 27, 2004, 07:49:33 am »
The datasheets - available on www.philipsmcu.com can give you every little detail.

Embedded Systems Academy, Inc.
support at esacademy dot com

Balamurali

  • Guest
How to work with IAP
« Reply #6 on: September 08, 2004, 06:15:51 am »
Hi andy,

 Actually i  worked with P89c51RD2 IAP routines. Now i couldnt able to get that part in our region. So i have switched to P89V51RD2 processor. But in the datasheet the IAP routine call details are that much enough. Can you please post a small code example to erase the address between FF80 and FFFF also i want to program a byte in FFFFh. Please tell me register settings to erase and program. I read the datasheet but its confused. If i call IAP address 1FF0,will the processor executes the instruction in the 1FF1 user program address when the IAP routine completes its execution?

Thanks andy

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: How to work with IAP
« Reply #7 on: September 08, 2004, 08:48:36 am »
I'm afraid I don't have any examples for that device. Sorry. I've never used the IAP on that part. Maybe someone else reading this can help?

Embedded Systems Academy, Inc.
support at esacademy dot com

erikm

  • Guest
Re: Problem to program 89C61X2
« Reply #8 on: September 08, 2004, 02:12:44 pm »
Can you please post a small code example to erase the address between FF80 and FFFF also i want to program a byte in FFFFh

from the datasheet
The P89V51RD2 program memory consists of a 64 kB block.

one block = erase all or nothing


Erik

Balamurali

  • Guest
Confusion with the concept
« Reply #9 on: September 09, 2004, 02:17:47 am »
Hi erikm,

 As you have specifed, the 89v51 datasheet says that we can erase  full 64k program memory with a IAP call. But if i need to write a byte in a specifc address through my program, first i have to erase the data in that particular program memory address then i have to write the data in the specifed memory address. isnt it? As it is like this if i call the erase IAP call then it will erase total user code know, then how my user code will be exist in the progrm memory to write in a address?Please clarify if you find any solution to this.


erikm

  • Guest
Re: Problem to program 89C61X2
« Reply #10 on: September 09, 2004, 05:40:01 am »
first i have to erase the data in that particular program memory address
Which is IMPOSSIBLE with flash.  With flash you must erase a 'page'.

A means of overcoming this is a 'walking write'.  since erased flash always read xff (unless used inverted =0) allocate an area and the valid byte will always be the last one before the 0xff.  If you need to update more than a few times, attach an external FRAM (millions of updates) or serial EPROM (thousands of updates)

Erik

Balamurali

  • Guest
RC2 IAP address
« Reply #11 on: September 13, 2004, 03:12:54 am »
Hi

 May i know the IAP call address of  89c51 RC2? I have used FFF0 in 89c51 RD2.

erikm

  • Guest
Re: Problem to program 89C61X2
« Reply #12 on: September 13, 2004, 05:39:41 am »
May i know the IAP call address of 89c51 RC2? I have used FFF0 in 89c51 RD2.
They are both discussed a Rx2.  The ONLY difference is flash size.  The IAP code is not in flash, it is in ROM.

Erik

santhi

  • Guest
Re: Problem to program 89C61X2
« Reply #13 on: November 16, 2004, 01:16:49 am »
I am facing problem in making the 89c61X2 device enter ISP. I have included Erik's backdoor to IAP and that helped in one device. But always the device enters ISP only after activating the port pin and resetting. However the device gets programmed when fresh( factory default). Whenever you select P89C61X2 on Flash Magic a warning is flashed saying " Ensure correct device selection else You may lose ISP functionality and may require a parrallel programmer " and this is what is happening. Can you please help regarding likely fault. Iam using the same setup to progam RD2 devices without any problem.Due to nonavailability of RD2 with my supplier I am forced to change over to X2 now.
Thanks in advance
Santhi

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2124
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem to program 89C61X2
« Reply #14 on: November 16, 2004, 06:33:46 am »
That warning is there because if you select the 89C61x2 and you actually have an 89C51Rx2 then you can render the device useless. I'm not aware of any specific problems with the 6Xx2 family. Please go through the application note "What to do when ISP does not work" on the Flash Magic web page.

Embedded Systems Academy, Inc.
support at esacademy dot com