Author Topic: ExitCode FlashMagic  (Read 4278 times)

MarcoStolk

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
ExitCode FlashMagic
« on: May 01, 2003, 07:00:08 am »
Flash Magic returns always ExitCode 0 when calling it from command line.
In case of success or failure of programming a device the ExitCode is 0.
This is what I see when using FlashMagic version 1.65.
This can be verified by examining variable %errorlevel% after FM command:

I am using Flash Magic as follows in a .bat file (on one line):

FM   COM(1, 57600) DEVICE(89C664, 10.000) ERASE(0,PROTECTISP) ERASE(1,PROTECTISP) ERASE(2,PROTECTISP) ERASE(3,PROTECTISP) ERASE(4,PROTECTISP) HEXFILE(%TARGETFILE%, NOCHECKSUMS, FILL, PROTECTISP)
ECHO %errorlevel%

Flash Magic is in our application a part of a lot of actions that are executed in a .bat file.
There is no feedback if programming of a device is successful or not.

It would be nice when Flash Magic does not successfully programs a device, an ExitCode not equal to 0 is returned. Our .bat file can then jump to a special error condition.

Can an ExitCode for Errors be added?


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ExitCode FlashMagic
« Reply #1 on: May 01, 2003, 08:38:39 am »
Thanks for the suggestion! I've Emailed you a beta version. If it works ok, let me know and it will be incorporated into the next revision and documented in the release notes.

Thanks!

Embedded Systems Academy, Inc.
support at esacademy dot com

MarcoStolk

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: ExitCode FlashMagic
« Reply #2 on: May 02, 2003, 02:20:49 am »
Hi Andrew,

thank you very much for your update.
The Exit Code works fine.

Kind regards,

Marco Stolk