55
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
disconnect
Содержание FLASH Development Toolkit 3.07
Страница 16: ...2...
Страница 40: ...26 Figure 3 8 FDM Pin Settings Figure 3 9 E8Direct Pin Settings...
Страница 42: ...28 Figure 3 11 E8DirectRESET Pin Settings...
Страница 74: ...60...
Страница 78: ...64...
Страница 88: ...74...
Страница 112: ...98...
Страница 116: ...102...
Страница 120: ...106...
Страница 124: ...110...
Страница 142: ...128...
Страница 145: ......