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?
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!
Hi Andrew,
thank you very much for your update.
The Exit Code works fine.
Kind regards,
Marco Stolk