15 abort, 6 wait for script – example script file – Renesas Single-Chip Microcomputer M306NKT3 User Manual
Page 74

58
Required
The file\directory the source
file is to be
copied\moved\renamed to
Example:
Move $script |\\server\networkfiles\done.txt
Copy
$script|C:\backups\
4.5.15
Abort
Description = stop processing the script and return failure. NB: This command is primarily designed to
be used in an error processing script
Arguments:
NONE
- -
Example:
Abort
4.6
Wait For Script – Example Script File
What follows is an example of how a script file for FDT may look. This highlights some of the available
commands and gives an idea of how they might be used:
# EXAMPLE SCRIPT FILE
# open this workspace and associated project
# (for which the flash project wizard must have completed successfully)
workspace C:\Workspaces\2215usbdirect\2215UsbDirect.AWS
# Ensure that comms is closed (in case previous attempt failed and didn’t disconnect)
disconnect
# connect over the USB to the device with this Product ID + Bus ID
connect USB|0x000D|0
# do an initial blank check
blankcheck
# download the file "C:\2215uAuto.mot" and verify that programming was OK
# (script processing will stop if this verify fails)
download C:\2215uAuto.mot|user|verify
# upload data from address 0 to address 0x1000 and save to file “upload.mot”
upload c:\UPLOADS\upload.mot|0x0|0x1000
# erase all blocks
erase device
# do a blank check (and stop if the user area is dirty)
blankcheck stoponwritten
# rebuild the user area image
RebuildImage user
# download the user image
download image|user
# get the checksum for the user area of the device
checksum device
# pause for 100 milliseconds
pause 100
# disconnect from the device