Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: Joze on March 03, 2009, 05:31:21 AM

Title: Window / Command line
Post by: Joze on March 03, 2009, 05:31:21 AM
Hello!

I have problem with programming LPC2368 throught ISP.
In Flash Magic window works excellent, but in command line doesn't.
I use next steps in command line:
     FM COM(1, 57600)
     FM DEVICE(LPC2368, 14.7456)
     FM HARDWARE(BOOTEXEC, 50, 100)
     FM ERASE(DEVICE, PROTECTISP)
After this command is answer:
     Connection failed: unable to connect (no response from device)

Did I miss any directive or command before executing "FM ERASE(DEVICE, PROTECTISP)"?
Title: Re: Window / Command line
Post by: Andy Ayre on March 03, 2009, 08:18:02 AM
Get it working in the GUI version of Flash Magic. Then go to File -> Save Command Line Directives. Save the file with a name like directives.txt. Then run Flash Magic with:

  FM @directives.txt

Your problem is that you are only giving Flash Magic one directive at a time.

Andy
Title: Re: Window / Command line
Post by: Joze on March 04, 2009, 12:33:20 AM
Thank you!

Now I understand the concept.
I should call:

FM COM(1, 57600) DEVICE(LPC2368, 14.7456) HARDWARE(BOOTEXEC, 50, 100) ERASE(DEVICE, PROTECTISP)

It is working now.

Joze