Flash Magic Forum

Archive => Old Topics => Topic started by: Ingo on May 27, 2003, 04:58:23 AM

Title: reprogram 89c664 with Flash Magic
Post by: Ingo on May 27, 2003, 04:58:23 AM
Hello

I have some problem to reprogram 89c664 with Flash Magic.

Only using RxD and Txd in the communication.
To set the Micro in ISP mode I wait for
Title: Re: reprogram 89c664 with Flash Magic
Post by: Andy Ayre on May 27, 2003, 08:24:10 AM
I'm not sure I understand this.

1. Are you waiting for a 'U', then forcing the device to reset into ISP mode?

2. Is the 'U' being sent using the Start BootROM feature?

If the answers are: 1 - yes, 2 - no, then you shouldn't do it that way as you are relying on the fact that Flash Magic always sends two 'U's. That may not always be the case. Also the device reset may not happen quick enough for Flash Magic to get the echo from the second 'U', or your device may not receive the second 'U' because it is busy waiting for the watchdog to time out or resetting.

Instead try sending the 'U' manually using the Start BootROM feature on the ISP menu. That is what that feature is for. You will need to echo back the 'U' followed by a '.'. See the manual for the details.

Title: Re: reprogram 89c664 with Flash Magic
Post by: Valent on May 28, 2003, 04:48:03 AM
Hi Ingo,
Becarefully, there is a dangerous mistake in READ_STATUS_BYTE:
    "MOV R1,#6" must be "MOV R1,#7"
Also "MOV EA,#0" should be "CLR EA", at the beginning.

Valent
Title: Re: reprogram 89c664 with Flash Magic
Post by: Ingo on June 03, 2003, 05:14:14 AM
Hi Valent