CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT

Use DWT for null pointer exception detection

Type: bool

Help

Null pointer dereference detection implemented
using the DWT unit functionality.
Notes:
- Not enabled for Non-Secure FW images, where
null-pointer dereferencing is likely caught as
a SecureFault.
- Requires DWT functionality in the Cortex-M SoC
implementation (1 comparator for ARMv7-M, 2 comparators
for ARMv8-M).
- Requires the Cortex-M core be in normal mode.

Symbols selected by this symbol

Kconfig definition

At <Zephyr>/arch/arm/core/aarch32/cortex_m/Kconfig:350

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:37<Zephyr>/arch/Kconfig:12<Zephyr>/arch/arm/Kconfig:57<Zephyr>/arch/arm/core/aarch32/Kconfig:261

Menu path: (Top) → ARM Options → Enable and use null-pointer exception

config NULL_POINTER_EXCEPTION_DETECTION_DWT
    bool "Use DWT for null pointer exception detection"
    select CORTEX_M_DWT
    select CORTEX_M_NULL_POINTER_EXCEPTION
    depends on CPU_CORTEX_M_HAS_DWT && !TRUSTED_EXECUTION_NONSECURE && <choice NULL_POINTER_EXCEPTION_DETECTION>
    help
      Null pointer dereference detection implemented
      using the DWT unit functionality.
      Notes:
      - Not enabled for Non-Secure FW images, where
      null-pointer dereferencing is likely caught as
      a SecureFault.
      - Requires DWT functionality in the Cortex-M SoC
      implementation (1 comparator for ARMv7-M, 2 comparators
      for ARMv8-M).
      - Requires the Cortex-M core be in normal mode.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)