This is the documentation for the latest (master) 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_CPU_CORTEX_M_HAS_DWT

(No prompt – not directly user assignable.)

Type: bool

Help

This option signifies that the CPU implements the Data Watchpoint and Trace (DWT) unit specified by the ARMv7-M and above.

While ARMv6-M does define a “DWT” unit, this is significantly different from the DWT specified by the ARMv7-M and above in terms of both feature set and register mappings.

Direct dependencies

!CPU_CORTEX_M0 && !CPU_CORTEX_M0PLUS && !CPU_CORTEX_M1 && CPU_CORTEX_M && !ARM64 && 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:80

Included via Kconfig:8Kconfig.zephyr:29arch/Kconfig:12arch/arm/Kconfig:48arch/arm/core/aarch32/Kconfig:237

Menu path: (Top) → ARM Options

config CPU_CORTEX_M_HAS_DWT
    bool
    depends on !CPU_CORTEX_M0 && !CPU_CORTEX_M0PLUS && !CPU_CORTEX_M1 && CPU_CORTEX_M && !ARM64 && ARM
    help
      This option signifies that the CPU implements the Data Watchpoint and
      Trace (DWT) unit specified by the ARMv7-M and above.

      While ARMv6-M does define a "DWT" unit, this is significantly different
      from the DWT specified by the ARMv7-M and above in terms of both feature
      set and register mappings.

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