choice NULL_POINTER_EXCEPTION_DETECTION: Enable and use null-pointer exception

Enable and use null-pointer exception

Type: bool

Help

There are 2 implementations available, one based
on DWT and the other based on MPU. Use this choice
symbol to select one of the options. By default the
feature is disabled. In the test suite the feature
is enabled and the DWT-based solution is preferred.

Direct dependencies

BOARD_MPS2_AN521_CPU0 || BOARD_MPS2_AN521_CPU0_NS || BOARD_MPS2_AN521_CPU1 || BOARD_QEMU_CORTEX_M3 || SOC_FAMILY_NRF || SOC_FAMILY_NRF || (CPU_CORTEX_M && ARM)

(Includes any dependencies from ifs and menus.)

Kconfig definitions

At <Zephyr>/boards/arm/mps2_an521/Kconfig.defconfig:9

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:22

Menu path: (Top)

choice NULL_POINTER_EXCEPTION_DETECTION
    bool
    default NULL_POINTER_EXCEPTION_DETECTION_NONE if QEMU_TARGET
    depends on BOARD_MPS2_AN521_CPU0 || BOARD_MPS2_AN521_CPU0_NS || BOARD_MPS2_AN521_CPU1

At <Zephyr>/boards/arm/qemu_cortex_m3/Kconfig.defconfig:16

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:22

Menu path: (Top)

choice NULL_POINTER_EXCEPTION_DETECTION
    bool
    default NULL_POINTER_EXCEPTION_DETECTION_NONE
    depends on BOARD_QEMU_CORTEX_M3

At <Zephyr>/soc/arm/nordic_nrf/Kconfig.defconfig:48

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:25<nRF>/doc/_build/kconfig/Kconfig.soc.defconfig:1

Menu path: (Top)

choice NULL_POINTER_EXCEPTION_DETECTION
    bool
    default NULL_POINTER_EXCEPTION_DETECTION_DWT if SOC_NRF5340_CPUNET
    default NULL_POINTER_EXCEPTION_DETECTION_MPU if TEST_ARM_CORTEX_M && !ARM_NONSECURE_FIRMWARE
    depends on SOC_FAMILY_NRF

At <Zephyr>/soc/arm/nordic_nrf/Kconfig.defconfig:48

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:27

Menu path: (Top)

choice NULL_POINTER_EXCEPTION_DETECTION
    bool
    default NULL_POINTER_EXCEPTION_DETECTION_DWT if SOC_NRF5340_CPUNET
    default NULL_POINTER_EXCEPTION_DETECTION_MPU if TEST_ARM_CORTEX_M && !ARM_NONSECURE_FIRMWARE
    depends on SOC_FAMILY_NRF

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

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

choice NULL_POINTER_EXCEPTION_DETECTION
    bool "Enable and use null-pointer exception"
    default NULL_POINTER_EXCEPTION_DETECTION_MPU if TEST_ARM_CORTEX_M && !ARM_NONSECURE_FIRMWARE && ARM_MPU && !CPU_CORTEX_M_HAS_DWT
    default NULL_POINTER_EXCEPTION_DETECTION_NONE
    depends on CPU_CORTEX_M && ARM
    help
      There are 2 implementations available, one based
      on DWT and the other based on MPU. Use this choice
      symbol to select one of the options. By default the
      feature is disabled. In the test suite the feature
      is enabled and the DWT-based solution is preferred.

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