Author Topic: reprogram 89c664 with Flash Magic  (Read 6463 times)

Ingo

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
reprogram 89c664 with Flash Magic
« 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: reprogram 89c664 with Flash Magic
« Reply #1 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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Valent

  • Guest
Re: reprogram 89c664 with Flash Magic
« Reply #2 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

Ingo

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: reprogram 89c664 with Flash Magic
« Reply #3 on: June 03, 2003, 05:14:14 am »
Hi Valent