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_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_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_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_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_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_NRF9160NS)) || (BOARD_SPARKFUN_THING_PLUS_NRF9160NS && (BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160NS)) || (BOARD_THINGY53_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPPNS)) || (BOARD_THINGY53_NRF5340_CPUAPPNS && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPPNS)) || 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 boards/arm/actinius_icarus/Kconfig.defconfig:24

Included via Kconfig:8Kconfig.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 boards/arm/actinius_icarus/Kconfig.defconfig:33

Included via Kconfig:8Kconfig.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 boards/arm/actinius_icarus_bee/Kconfig.defconfig:24

Included via Kconfig:8Kconfig.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 boards/arm/actinius_icarus_bee/Kconfig.defconfig:33

Included via Kconfig:8Kconfig.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 boards/arm/actinius_icarus_som/Kconfig.defconfig:24

Included via Kconfig:8Kconfig.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 boards/arm/actinius_icarus_som/Kconfig.defconfig:33

Included via Kconfig:8Kconfig.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 boards/arm/bl5340_dvk/Kconfig.defconfig:72

Included via Kconfig:8Kconfig.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 boards/arm/bl5340_dvk/Kconfig.defconfig:85

Included via Kconfig:8Kconfig.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 boards/arm/circuitdojo_feather_nrf9160/Kconfig.defconfig:25

Included via Kconfig:8Kconfig.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_NRF9160NS)

At boards/arm/circuitdojo_feather_nrf9160/Kconfig.defconfig:34

Included via Kconfig:8Kconfig.zephyr:22

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 boards/arm/lpcxpresso55s28/Kconfig.defconfig:28

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

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

At boards/arm/lpcxpresso55s69/Kconfig.defconfig:29

Included via Kconfig:8Kconfig.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 boards/arm/lpcxpresso55s69/Kconfig.defconfig:39

Included via Kconfig:8Kconfig.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 boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig:58

Included via Kconfig:8Kconfig.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 boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig:71

Included via Kconfig:8Kconfig.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 boards/arm/nrf9160_innblue21/Kconfig.defconfig:27

Included via Kconfig:8Kconfig.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_INNBLUE21NS)

At boards/arm/nrf9160_innblue21/Kconfig.defconfig:37

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

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

At boards/arm/nrf9160_innblue22/Kconfig.defconfig:27

Included via Kconfig:8Kconfig.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_INNBLUE22NS)

At boards/arm/nrf9160_innblue22/Kconfig.defconfig:37

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

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

At boards/arm/nrf9160dk_nrf9160/Kconfig.defconfig:41

Included via Kconfig:8Kconfig.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 boards/arm/nrf9160dk_nrf9160/Kconfig.defconfig:50

Included via Kconfig:8Kconfig.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 boards/arm/sparkfun_thing_plus_nrf9160/Kconfig.defconfig:25

Included via Kconfig:8Kconfig.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_NRF9160NS)

At boards/arm/sparkfun_thing_plus_nrf9160/Kconfig.defconfig:34

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

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

At boards/arm/thingy53_nrf5340/Kconfig.defconfig:41

Included via Kconfig:8Kconfig.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_CPUAPPNS)

At boards/arm/thingy53_nrf5340/Kconfig.defconfig:54

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

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

At Kconfig.zephyr:105

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