CONFIG_CUSTOM_SECTION_ALIGN

Custom Section Align

Type: bool

Help

MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT(ARMv7-M) sometimes cause memory wasting in linker scripts defined memory sections. Use this symbol to guarantee user custom section align size to avoid more memory used for respect alignment. But that needs carefully configure MPU region and sub-regions(ARMv7-M) to cover this feature.

Direct dependencies

ARM_MPU && CPU_HAS_MPU && CPU_CORTEX_M && !ARM64 && ARM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

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

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<Zephyr>/arch/arm/core/aarch32/cortex_m/Kconfig:301

Menu path: (Top) → ARM Options

config CUSTOM_SECTION_ALIGN
    bool "Custom Section Align"
    depends on ARM_MPU && CPU_HAS_MPU && CPU_CORTEX_M && !ARM64 && ARM
    help
      MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT(ARMv7-M) sometimes cause memory
      wasting in linker scripts defined memory sections. Use this symbol
      to guarantee user custom section align size to avoid more memory used
      for respect alignment. But that needs carefully configure MPU region
      and sub-regions(ARMv7-M) to cover this feature.

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