
FLASHER 5 Manual 17
-clearACBP Clears option 'Automatic clear before program'.
-clearCOD Clears option 'Clear on demand'.
-clearDE Clears option 'Detailed errorlevel on return'.
-clearDNVBP Clears option 'Do not verify blank pages'.
-index<X> Allows selection of an individual setup data set for Flasher.
This is useful when multiple Flasher should be handled con-
currently with one PC. After setting up all options together
with the –index command, further calls of Flasher with the
same index command will restore all previous settings for
that index.
-exit Finish execution after performing all commands
-help Displays available commands.
-? The same as –help
NOTE:
To open a HEX file, place the file name as first parameter just behind the call of Flasher.exe, the openfile
command is not required when only one file should be opened.
Return values
The following return values are sent as errorlevel unless “Options | Filling & misc. | Detailed errorlevel on re-
turn” is selected:
Value Meaning
2 Target not blank
3 Verify error, Contents of target data not identical to FLASHERs internal data.
4 Erase error. Target CPU could not be erased.
5 Error during Program & Verify function
6 Eror during programming of target CPU
7 Error during target readback.
8 Error during “Start application”.
9 Timeout error.
10 HEX file could not be opened.
>10 Corresponds to error number which would normally shown on PC screen when program was
used in normal mode.
When “Detailed errorlevel on return” is set as option, the returned value equals to error codes described un-
der chapter “Error messages”.
Examples
Program and verify
In the following example the software
• reads the file TEST.MOT
• tells the Flasher to program and verify,
• exits.
Flasher.exe test.mot -programverify -exit
Programming using specified com port
In the following example the software
• reads the file TEST.MOT
• sets the COM-port of the PC to Port 2,
• tells the Flasher to program,
• exits.
Flasher.exe test.mot -com2 -program -exit
Usage in production environment
This example shows a batch file that executes a download to the Flasher once. After the first call of Flasher
the batch file runs in a loop that programs the last downloaded file continuously after pressing a key. After
every execution of Flasher the return code is evaluated.
NOTE: Evaluating the return code only works under WindowsNT or Windows2000. If you use Windows9x
Flasher will be started in a new task and you can’t evaluate the return code from the DOS-box from which
you started Flasher, because your DOS-Box will not halt execution until FLASHER finished!
Kommentare zu diesen Handbüchern