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_CORTEX_M_NULL_POINTER_EXCEPTION

(No prompt – not directly user assignable.)

Type: bool

Help

Enable and use the null pointer exception option.
This is a debug feature in Cortex-M, allowing for
detecting null pointer dereferencing (raising a
CPU fault). Supporting the feature results in an
increased code footprint, determined by option
CORTEX_M_NULL_POINTER_EXCEPTION_PAGE_SIZE.

Note: this hidden option is selected by the choice
symbols corresponding to the DWT-based or to the
MPU-based solution.

Direct dependencies

CPU_CORTEX_M && ARM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At arch/arm/core/aarch32/cortex_m/Kconfig:411

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

Menu path: (Top) → ARM Options

config CORTEX_M_NULL_POINTER_EXCEPTION
    bool
    depends on CPU_CORTEX_M && ARM
    help
      Enable and use the null pointer exception option.
      This is a debug feature in Cortex-M, allowing for
      detecting null pointer dereferencing (raising a
      CPU fault). Supporting the feature results in an
      increased code footprint, determined by option
      CORTEX_M_NULL_POINTER_EXCEPTION_PAGE_SIZE.

      Note: this hidden option is selected by the choice
      symbols corresponding to the DWT-based or to the
      MPU-based solution.

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