This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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 arch/arm/core/aarch32/cortex_m/Kconfig:366

Included via Kconfig:8Kconfig.zephyr:39arch/Kconfig:12arch/arm/Kconfig:57arch/arm/core/aarch32/Kconfig:294

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.)