Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Setting a breakpoint on an exception vector

In this section:

You can set breakpoints on exception vectors for ARM9, Cortex-R4, and Cortex-M3 devices. Use the Vector Catch dialog box to set a breakpoint directly on a vector in the interrupt vector table, without using a hardware breakpoint. For more information, see Vector Catch dialog box.

For the C-SPY I-jet driver and the C-SPY J-Link/J-Trace driver, it is also possible to set breakpoints directly on a vector already in the options dialog box, see J-Link/J-Trace — Setup.

This procedure applies to the C-SPY I-jet driver and the C-SPY J-Link/J-Trace driver.

To set a breakpoint on an exception vector:
  1. Select the correct device. Before starting C-SPY, choose Project>Options and select the General Options category. Choose the appropriate core or device from one of the Processor variant drop-down lists available on the Target page.

  2. Start C-SPY.

  3. Choose C-SPY driver>Vector Catch. By default, vectors are selected according to your settings on the Breakpoints options page, see Breakpoints options.

  4. In the Vector Catch dialog box, select the vector you want to set a breakpoint on, and click OK. The breakpoint will only be triggered at the beginning of the exception.