:orphan: .. title:: CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT .. kconfig:: CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT ########################################### *Use DWT for null pointer exception detection* Type: ``bool`` Help ==== .. code-block:: none 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. Direct dependencies =================== \ :kconfig:`CPU_CORTEX_M_HAS_DWT ` && !\ :kconfig:`TRUSTED_EXECUTION_NONSECURE ` && \ :ref:` ` *(Includes any dependencies from ifs and menus.)* Symbols selected by this symbol =============================== - \ :kconfig:`CORTEX_M_DWT ` - \ :kconfig:`CORTEX_M_NULL_POINTER_EXCEPTION ` Kconfig definition ================== At ``/arm/core/aarch32/cortex_m/Kconfig:366`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:39`` → ``/Kconfig:12`` → ``/arm/Kconfig:57`` → ``/arm/core/aarch32/Kconfig:294`` Menu path: (Top) → ARM Options → Enable and use null-pointer exception .. code-block:: kconfig 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 && 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.)*