CONFIG_FLASH_LOAD_SIZE

Kernel load size

Type: hex

Help

If non-zero, this option specifies the size, in bytes, of the flash area that the Zephyr image will be allowed to occupy. If zero, the image will be able to occupy from the FLASH_LOAD_OFFSET to the end of the device.

If unsure, leave at the default value 0.

Direct dependencies

(BOARD_ACTINIUS_ICARUS && TRUSTED_EXECUTION_SECURE && (BOARD_ACTINIUS_ICARUS || BOARD_ACTINIUS_ICARUS_NS)) || (BOARD_ACTINIUS_ICARUS_NS && (BOARD_ACTINIUS_ICARUS || BOARD_ACTINIUS_ICARUS_NS)) || (BOARD_CIRCUITDOJO_FEATHER_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160NS)) || (BOARD_CIRCUITDOJO_FEATHER_NRF9160NS && (BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160NS)) || (BOARD_LPCXPRESSO55S28 && TRUSTED_EXECUTION_SECURE && BOARD_LPCXPRESSO55S28) || (BOARD_LPCXPRESSO55S69_CPU0 && TRUSTED_EXECUTION_SECURE && (BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1)) || ((TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_CPU1) && (BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1)) || ((BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP) && TRUSTED_EXECUTION_SECURE && (BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS)) || ((BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPPNS) && (BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS)) || (BOARD_NRF9160_INNBLUE21 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21NS)) || (BOARD_NRF9160_INNBLUE21NS && (BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21NS)) || (BOARD_NRF9160_INNBLUE22 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22NS)) || (BOARD_NRF9160_INNBLUE22NS && (BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22NS)) || (BOARD_NRF9160DK_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160NS)) || (BOARD_NRF9160DK_NRF9160NS && (BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160NS)) || HAS_FLASH_LOAD_OFFSET

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definitions

At <Zephyr>/boards/arm/actinius_icarus/Kconfig.defconfig:24

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_ACTINIUS_ICARUS && TRUSTED_EXECUTION_SECURE && (BOARD_ACTINIUS_ICARUS || BOARD_ACTINIUS_ICARUS_NS)

At <Zephyr>/boards/arm/actinius_icarus/Kconfig.defconfig:33

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_ACTINIUS_ICARUS_NS && (BOARD_ACTINIUS_ICARUS || BOARD_ACTINIUS_ICARUS_NS)

At <Zephyr>/boards/arm/circuitdojo_feather_nrf9160/Kconfig.defconfig:25

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_CIRCUITDOJO_FEATHER_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160NS)

At <Zephyr>/boards/arm/circuitdojo_feather_nrf9160/Kconfig.defconfig:34

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_CIRCUITDOJO_FEATHER_NRF9160NS && (BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160NS)

At <Zephyr>/boards/arm/lpcxpresso55s28/Kconfig.defconfig:52

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_LPCXPRESSO55S28 && TRUSTED_EXECUTION_SECURE && BOARD_LPCXPRESSO55S28

At <Zephyr>/boards/arm/lpcxpresso55s69/Kconfig.defconfig:53

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_LPCXPRESSO55S69_CPU0 && TRUSTED_EXECUTION_SECURE && (BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1)

At <Zephyr>/boards/arm/lpcxpresso55s69/Kconfig.defconfig:63

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x40000 if TFM_BL2_FALSE
    default 0x0
    depends on (TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_CPU1) && (BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1)

At <Zephyr>/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig:58

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on (BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP) && TRUSTED_EXECUTION_SECURE && (BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS)

At <Zephyr>/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig:71

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on (BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPPNS) && (BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340PDK_NRF5340_CPUAPPNS || BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS)

At <Zephyr>/boards/arm/nrf9160_innblue21/Kconfig.defconfig:27

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF9160_INNBLUE21 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21NS)

At <Zephyr>/boards/arm/nrf9160_innblue21/Kconfig.defconfig:37

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF9160_INNBLUE21NS && (BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21NS)

At <Zephyr>/boards/arm/nrf9160_innblue22/Kconfig.defconfig:27

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF9160_INNBLUE22 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22NS)

At <Zephyr>/boards/arm/nrf9160_innblue22/Kconfig.defconfig:37

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF9160_INNBLUE22NS && (BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22NS)

At <Zephyr>/boards/arm/nrf9160dk_nrf9160/Kconfig.defconfig:24

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF9160DK_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160NS)

At <Zephyr>/boards/arm/nrf9160dk_nrf9160/Kconfig.defconfig:33

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:18

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF9160DK_NRF9160NS && (BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160NS)

At <Zephyr>/Kconfig.zephyr:106

Included via <Zephyr>/Kconfig:8

Menu path: (Top) → Build and Link Features → Linker Options

config FLASH_LOAD_SIZE
    hex "Kernel load size" if !USE_DT_CODE_PARTITION
    default 0x0 if USE_DT_CODE_PARTITION
    default 0
    depends on HAS_FLASH_LOAD_OFFSET
    help
      If non-zero, this option specifies the size, in bytes, of the flash
      area that the Zephyr image will be allowed to occupy.  If zero, the
      image will be able to occupy from the FLASH_LOAD_OFFSET to the end of
      the device.

      If unsure, leave at the default value 0.

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