Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MarcoStolk

#1
Old Topics / Re: ExitCode FlashMagic
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

#2
Old Topics / ExitCode FlashMagic
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?