beautypg.com

Sample command script file – Zilog ZUSBOPTS User Manual

Page 391

background image

UM017105-0511

Sample Command Script File

Zilog Developer Studio II – ZNEO™

User Manual

363

Sample Command Script File

A script file is a text-based file that contains a collection of commands. The file can be
created with any editor that can save or export files in a text-based format. Each command
must be listed on its own line. Anything following a semicolon (

;

) is considered a com-

ment.

The following example presents a command script file:

; change to correct default directory

cd "m:\ZNEO\test\focustests"

open project "focus1.zdsproj"

log "focus1.log" ; Create log file

log on ; Enable logging

rebuild

reset

bp done

go

wait 2000 ; Wait 2 seconds

print "pc = %x" reg PC

log off ; Disable logging

quit ; Exit debug mode

close project

wait 2000

open project "focus2.zdsproj"

reset

bp done

go

wait 2000 ; Wait 2 seconds

log "focus2.log" ; Open log file

log on ; Enable logging

print "pc = %x" reg PC

log off ; Disable logging

quit

exit; Exit debug mode

Tools

Flash Loader

387

Calculate File Checksum

checksum

367

Show CRC

crc

367

Table 27. Script File Commands (Continued)

ZDS II
Menu

ZDS II Commands

Dialog Box Options

Script File Commands

Page

This manual is related to the following products: