CONFIG_CPU_CORTEX_M

(No prompt – not directly user assignable.)

Type: bool

Help

This option signifies the use of a CPU of the Cortex-M family.

Direct dependencies

ARM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At arch/arm/core/Kconfig:11

Included via Kconfig:8Kconfig.zephyr:31arch/Kconfig:12arch/arm/Kconfig:9

Menu path: (Top) → ARM Options

config CPU_CORTEX_M
    bool
    select CPU_CORTEX
    select ARCH_HAS_CUSTOM_SWAP_TO_MAIN
    select HAS_CMSIS_CORE
    select HAS_FLASH_LOAD_OFFSET
    select ARCH_HAS_THREAD_ABORT
    select ARCH_HAS_TRUSTED_EXECUTION if ARM_TRUSTZONE_M
    select ARCH_HAS_STACK_PROTECTION if (ARM_MPU && !ARMV6_M_ARMV8_M_BASELINE) || CPU_CORTEX_M_HAS_SPLIM
    select ARCH_HAS_USERSPACE if ARM_MPU
    select ARCH_HAS_NOCACHE_MEMORY_SUPPORT if ARM_MPU && CPU_HAS_ARM_MPU && CPU_CORTEX_M7
    select ARCH_HAS_RAMFUNC_SUPPORT
    select ARCH_HAS_NESTED_EXCEPTION_DETECTION
    select SWAP_NONATOMIC
    depends on ARM
    help
      This option signifies the use of a CPU of the Cortex-M family.

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