Flash Magic Forum

Archive => Old Topics => Topic started by: Wah on June 16, 2004, 09:31:51 PM

Title: Problem to program 89C61X2
Post by: Wah 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
Title: Re: Problem to program 89C61X2
Post by: Andy Ayre 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.

Title: Re: Problem to program 89C61X2
Post by: wah 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
Title: Re: Problem to program 89C61X2
Post by: Andy Ayre 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.

Title: Difference btwn 89c51RD2 and 89C61X2
Post by: Balamurali on July 27, 2004, 02:47:40 AM
May i know what is the exact difference between 89c51RD2 and 89C61X2?

Title: Re: Difference btwn 89c51RD2 and 89C61X2
Post by: Andy Ayre on July 27, 2004, 07:49:33 AM
The datasheets - available on www.philipsmcu.com can give you every little detail.

Title: How to work with IAP
Post by: Balamurali 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
Title: Re: How to work with IAP
Post by: Andy Ayre 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?

Title: Re: Problem to program 89C61X2
Post by: erikm 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
Title: Confusion with the concept
Post by: Balamurali 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.

Title: Re: Problem to program 89C61X2
Post by: erikm 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
Title: RC2 IAP address
Post by: Balamurali 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.
Title: Re: Problem to program 89C61X2
Post by: erikm 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
Title: Re: Problem to program 89C61X2
Post by: santhi 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
Title: Re: Problem to program 89C61X2
Post by: Andy Ayre 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.