CONFIG_CORTEX_M_DWT

Enable and use the DWT

Type: bool

Help

Enable and use the Data Watchpoint and Trace (DWT) unit for timing functions.

Direct dependencies

CPU_CORTEX_M_HAS_DWT && (ARMV6_M_ARMV8_M_BASELINE || ARMV7_M_ARMV8_M_MAINLINE) && CPU_CORTEX_M && !ARM64 && ARM

(Includes any dependencies from ifs and menus.)

Default

Kconfig definition

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

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12<Zephyr>/arch/arm/Kconfig:42<Zephyr>/arch/arm/core/aarch32/Kconfig:237

Menu path: (Top) → ARM Options → ARM Cortex-M0/M0+/M1/M3/M4/M7/M23/M33 options

config CORTEX_M_DWT
    bool "Enable and use the DWT"
    default y if TIMING_FUNCTIONS
    depends on CPU_CORTEX_M_HAS_DWT && (ARMV6_M_ARMV8_M_BASELINE || ARMV7_M_ARMV8_M_MAINLINE) && CPU_CORTEX_M && !ARM64 && ARM
    help
      Enable and use the Data Watchpoint and Trace (DWT) unit for
      timing functions.

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