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_ACTINIUS_ICARUS_BEE && TRUSTED_EXECUTION_SECURE && (BOARD_ACTINIUS_ICARUS_BEE || BOARD_ACTINIUS_ICARUS_BEE_NS)) || (BOARD_ACTINIUS_ICARUS_BEE_NS && (BOARD_ACTINIUS_ICARUS_BEE || BOARD_ACTINIUS_ICARUS_BEE_NS)) || (BOARD_ACTINIUS_ICARUS_SOM && TRUSTED_EXECUTION_SECURE && (BOARD_ACTINIUS_ICARUS_SOM || BOARD_ACTINIUS_ICARUS_SOM_NS)) || (BOARD_ACTINIUS_ICARUS_SOM_NS && (BOARD_ACTINIUS_ICARUS_SOM || BOARD_ACTINIUS_ICARUS_SOM_NS)) || (BOARD_BL5340_DVK_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_BL5340_DVK_CPUAPP || BOARD_BL5340_DVK_CPUAPP_NS)) || (BOARD_BL5340_DVK_CPUAPP_NS && (BOARD_BL5340_DVK_CPUAPP || BOARD_BL5340_DVK_CPUAPP_NS)) || (BOARD_CIRCUITDOJO_FEATHER_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160_NS)) || (BOARD_CIRCUITDOJO_FEATHER_NRF9160_NS && (BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160_NS)) || (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_NRF5340DK_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP_NS)) || (BOARD_NRF5340DK_NRF5340_CPUAPP_NS && (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP_NS)) || (BOARD_NRF9160_INNBLUE21 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS)) || (BOARD_NRF9160_INNBLUE21_NS && (BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS)) || (BOARD_NRF9160_INNBLUE22 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22_NS)) || (BOARD_NRF9160_INNBLUE22_NS && (BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22_NS)) || (BOARD_NRF9160DK_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160_NS)) || (BOARD_NRF9160DK_NRF9160_NS && (BOARD_NRF9160DK_NRF9160 || BOARD_NRF9160DK_NRF9160_NS)) || (BOARD_SPARKFUN_THING_PLUS_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS)) || (BOARD_SPARKFUN_THING_PLUS_NRF9160_NS && (BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS)) || (BOARD_THINGY53_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS)) || (BOARD_THINGY53_NRF5340_CPUAPP_NS && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS)) || HAS_FLASH_LOAD_OFFSET

(Includes any dependencies from ifs and menus.)

Defaults

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x40000 if !TFM_BL2

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0

  • 0x0 if USE_DT_CODE_PARTITION

  • 0

Kconfig definitions

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

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

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:22

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/actinius_icarus_bee/Kconfig.defconfig:24

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_ACTINIUS_ICARUS_BEE && TRUSTED_EXECUTION_SECURE && (BOARD_ACTINIUS_ICARUS_BEE || BOARD_ACTINIUS_ICARUS_BEE_NS)

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_ACTINIUS_ICARUS_BEE_NS && (BOARD_ACTINIUS_ICARUS_BEE || BOARD_ACTINIUS_ICARUS_BEE_NS)

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_ACTINIUS_ICARUS_SOM && TRUSTED_EXECUTION_SECURE && (BOARD_ACTINIUS_ICARUS_SOM || BOARD_ACTINIUS_ICARUS_SOM_NS)

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_ACTINIUS_ICARUS_SOM_NS && (BOARD_ACTINIUS_ICARUS_SOM || BOARD_ACTINIUS_ICARUS_SOM_NS)

At <Zephyr>/boards/arm/bl5340_dvk/Kconfig.defconfig:84

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_BL5340_DVK_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_BL5340_DVK_CPUAPP || BOARD_BL5340_DVK_CPUAPP_NS)

At <Zephyr>/boards/arm/bl5340_dvk/Kconfig.defconfig:97

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_BL5340_DVK_CPUAPP_NS && (BOARD_BL5340_DVK_CPUAPP || BOARD_BL5340_DVK_CPUAPP_NS)

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

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

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_NRF9160_NS)

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

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

Menu path: (Top)

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

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

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

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:29

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

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:39

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

Menu path: (Top)

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

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF5340DK_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP_NS)

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_NRF5340DK_NRF5340_CPUAPP_NS && (BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP_NS)

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_SPARKFUN_THING_PLUS_NRF9160 && TRUSTED_EXECUTION_SECURE && (BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS)

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

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_SPARKFUN_THING_PLUS_NRF9160_NS && (BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS)

At <Zephyr>/boards/arm/thingy53_nrf5340/Kconfig.defconfig:41

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_THINGY53_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS)

At <Zephyr>/boards/arm/thingy53_nrf5340/Kconfig.defconfig:54

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

Menu path: (Top)

config FLASH_LOAD_SIZE
    hex
    default 0x0
    depends on BOARD_THINGY53_NRF5340_CPUAPP_NS && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS)

At <Zephyr>/Kconfig.zephyr:107

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.)