beautypg.com

Batch, Batch bp – Zilog ZUSBOPTS User Manual

Page 393

background image

UM017105-0511

Supported Script File Commands

Zilog Developer Studio II – ZNEO™

User Manual

365

batch

The

batch

command runs a script file through the Command Processor. If the full path is

not supplied, the current working directory is used. The following example presents the
syntax of the

batch

command:

batch [wait] "<[path\]<filename>"

The

wait

parameter blocks processing of the current script until the invoked batch file

completes, making this parameter useful when nesting script files.

For example:

BATCH "commands.txt"

batch wait "d:\batch\do_it.cmd"

bp

The

bp

command sets a breakpoint at a given label or line in a file. The syntax can take

one of the following forms:

bp line <line number>

sets/removes a breakpoint on the given line of the active file.

bp <symbol>

sets a breakpoint at the given symbol. This version of the

bp

command can only be used

during a debug session.

For example:

bp main

bp line 20

Starting in ZDS II version 4.11.0, you can also use the

bp when

command to set access

breakpoints. You can have up to three access breakpoints set at one time. Access break-
points can be set and cleared while the target is running. The following example presents
the syntax of the

bp when

command:

bp when

[

READ

|

WRITE

] <address> [

MASK

<mask>]

If not specified,

MASK

defaults to

0xFFFFFE

(1 bit masked).

The valid

MASK

range is

0xFF8000

(15 bits masked) to

0xFFFFFF

(0 bits masked).

For example:

BP WHEN READ 0xFFBFF0 MASK 0xFFFFF0

break when read address in range

0xFFBFF0-0xFFBFFF

BP WHEN WRITE 0x1234

break when write to address

0x1234

BP WHEN 0xFFE030

break when read or write address

0xFFE030

(SFR IRQ0)

This manual is related to the following products: