Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑drv_catch_exceptions

In this section:
Syntax
‑‑drv_catch_exceptions=value
Parameters

value

(for Arm9, Cortex-R4, Arm11, and Cortex-A)

A value in the range of 0–0x1FF. Each bit specifies which exception to catch:

Bit 0 = Reset

Bit 1 = Undefined instruction

Bit 2 = SWI

Bit 3 = Prefetch abort

Bit 4 = Data abort

Bit 5 = Not used

Bit 6 = IRQ

Bit 7 = FIQ

Bit 8 = Other errors

value

(for Cortex-M)

A value in the range of 0–0x7FF. Each bit specifies which exception to catch:

Bit 0 = CORERESET - Reset Vector

Bit 4 = MMERR - Memory Management Fault

Bit 5 = NOCPERR - Coprocessor Access Error

Bit 6 = CHKERR - Checking Error

Bit 7 = STATERR - State Error

Bit 8 = BUSERR - Bus Error

Bit 9 = INTERR - Interrupt Service Errors

Bit 10 = HARDERR - Hard Fault

For use with

The C-SPY I-jet driver.

The C-SPY J-Link/J-Trace driver.

The C-SPY CMSIS-DAP driver.

The C-SPY ST-LINK driver.

The C-SPY TI XDS driver.

Description

Use this option to make the application stop when a certain exception occurs.

See also

Setting a breakpoint on an exception vector.

Caution

Project>Options>Debugger>Driver>Breakpoints>Catch exceptions