Everything
2.11.5.1 Set a break event (access type)

Use one of the following methods to set a break event (access type) that stops programs with the access to a variable/I/O register.

Caution

Also see "2.19.7 Notes for setting events" for details on breakpoints (e.g. limits on the number of enabled events).

(1)

Set a break event to a variable/I/O register in the Editor panel/Disassemble panel

Perform this operation in the Editor panel/Disassemble panel in which the source text/disassembled text is displayed.

Follow the operation listed below from the context menu, in accordance with your desired access type, after selecting an arbitrary variable or I/O register on the source text or the disassembled text. Note, however, that only global variables, static variables inside functions, and file-internal static variables can be used.

Access Type

Operation

Read

Select [Break Settings] >> [Set Read Break to], and then press the [Enter] key.

Write

Select [Break Settings] >> [Set Write Break to], and then press the [Enter] key.

Read/Write

Select [Break Settings] >> [Set R/W Break to], and then press the [Enter] key.

 

At this time, if you have specified a value in the text box in the context menu, break will occur only when the specified value is used for the reading, writing or reading/writing. On the other hand, if no value is specified, reading., writing or reading/writing the selected variable by any value will cause the break to occur.

Caution 1.

Variables within the current scope can be specified.

Caution 2.

Variables or I/O register at lines that have no valid addresses cannot be used for break events.

Figure 2.37

Example of Setting Break Event (Access Type) on Variable in Editor Panel

(2)

Set a break event (access type) to a registered watch-expression

You can set break events in the Watch panel.

Follow the operation listed below from the context menu, in accordance with your desired access type, after selecting the registered watch-expression (multiple selections not allowed).

Note, however, that only global variables, static variables inside functions, file-internal static variables, and I/O register can be used.

Access Type

Operation

Read

Select [Access Break] >> [Set Read Break to], and then press the [Enter] key.

Write

Select [Access Break] >> [Set Write Break to], and then press the [Enter] key.

Read/Write

Select [Access Break] >> [Set R/W Break to], and then press the [Enter] key.

 

At this time, if you have specified a value in the text box in the context menu, break will occur only when the specified value is used for the reading., writing or reading/writing. On the other hand, if no value is specified, reading., writing or reading/writing the selected watch-expression by any value will cause the break to occur.

Caution

A watch-expression within the current scope can be specified.
To target a watch-expression outside the current scope, select a watch-expression with a specified scope.

Figure 2.38

Example of Setting Hardware Break Event (Access Type) on Watch-Expression

 

When you have performed the above operation, the set break event (access type) is managed in the Events panel as a Hardware Break event (access type) (see "2.19 Manage Events" for details).

Figure 2.39

Example of Setting Hardware Break Event (Access Type) in Events Panel