Skip to main content

IAR Embedded Workbench for RISC-V 3.40

__setDataBreak

In this section:
Syntax
__setDataBreak(location, count, condition, cond_type, access, action)
Parameters
location

A string that defines the data location of the breakpoint, either a valid C-SPY expression whose value evaluates to a valid address or an absolute location. For information about the location types, see Enter Location dialog box.

count

An integer that specifies the number of times that a breakpoint condition must be fulfilled before a break occurs the next time.

condition

The breakpoint condition (string).

cond_type

The condition type; either "CHANGED" or "TRUE" (string).

access

The memory access type: "R", for read, "W" for write, or "RW" for read/write.

action

An expression, typically a call to a macro, which is evaluated when the breakpoint is detected.

Return value

Result

Value

Successful

An unsigned integer uniquely identifying the breakpoint. This value must be used to clear the breakpoint.

Unsuccessful

0

Table 40. __setDataBreak return values 


For use with

The C-SPY simulator.

Description

Sets a data breakpoint, that is, a breakpoint which is triggered directly after the processor has read or written data at the specified location.

Example
__var brk;
brk = __setDataBreak(":0x4710", 3, "d>6", "TRUE",
      "W", "ActionData()");
...
__clearBreak(brk);
See also

Breakpoints.