Automated Loading Using a Batch File
56800E Flash Programmer User Guide, Rev. 0
Freescale Semiconductor
21
FFLASH 56801x_flash.cfg module.s -ltemp.txt
SET GOTERROR=0
IF ERRORLEVEL 1 SET GOTERROR=1
ECHO --------------------------------------------->>log.txt
type temp.txt >> log.txt
IF %GOTERROR%==1 GOTO :ERROR
ECHO UNIT LOADED Successfully
Echo Press any key to load the next unit or
Echo press Ctrl+Break to abort.
PAUSE > NUL
GOTO TOP
:ERROR
Echo An error occurred loading the last unit...
Echo Press any key to load the next unit or
Echo press Ctrl+Break to abort.
PAUSE > NUL
GOTO TOP
Explanation:
To run the program, activate a command prompt and type LOADIT. The batch file will attempt to load
module.s
. using the configuration file 56801x_flash.cfg. The batch file will next place the log of the
execution to the bottom of the file log.txt. Next it notifies of any error, or if the device was programmed
properly. To stop loading the next device press the
CTRL+BREAK
at this point. Since the batch file
automatically records when it was run to the log file, diagnosing potential problems may become easier.