This is the documentation for the latest (main) 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_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 && ARM

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At arch/arm/core/aarch32/mpu/Kconfig:83

Included via Kconfig:8Kconfig.zephyr:37arch/Kconfig:12arch/arm/Kconfig:57arch/arm/core/aarch32/Kconfig:264

Menu path: (Top) → ARM Options

config CUSTOM_SECTION_ALIGN
    bool "Custom Section Align"
    depends on ARM_MPU && CPU_HAS_MPU && 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.)