reprogram 89c664 with Flash Magic

Started by Ingo, May 27, 2003, 04:58:23 AM

Previous topic - Next topic

Ingo

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

Andy Ayre

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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Valent

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

Ingo