Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Live Watch window

In this section:

The Live Watch window is available from the View menu.

LiveWatchWin_2_Mym80.png

This window repeatedly samples and displays the value of expressions while your application is executing. Variables in the expressions must be statically located, such as global variables.

The following possibilities for live watch apply:

Device

Cortex-M

Live watch is fully supported for Cortex-M. Access to memory or setting breakpoints is always possible during execution.

Cortex-A/R

Live watch is only possible when you use the C-SPY I-jet driver or J-Link/J-Trace driver, and only when you use the option ‑‑drv_mem_ap, see ‑‑drv_mem_ap.

Armxxx-S

The support for live watch is limited for Armxxx-S cores, see below. Setting hardware breakpoints during execution is always possible for all supported C-SPY drivers.

Arm7/Arm9, including Armxxx-S, and when using the C-SPY J-Link/J-Trace driver

Memory accesses must be made by your application. By adding a small program—a DCC handler—that communicates with the debugger through the DCC unit to your application, memory can be read/written during execution. Software breakpoints can also be set by the DCC handler.

Just add the files JLINKDCC_Process.c and JLINKDCC_HandleDataAbort.s located in arm\src\debugger\dcc to your project and call the JLINKDCC_Process function regularly, for example every millisecond.

In your local copy of the cstartup file, modify the interrupt vector table so that data aborts will call the JLINKDCC_HandleDataAbort handler. See also ‑‑jlink_dcc_timeout.

Table 20. Live watch for the different devices