CONFIG_FLASH_LOAD_OFFSET

Kernel load offset

Type: hex

Help

This option specifies the byte offset from the beginning of flash that the kernel should be loaded into. Changing this value from zero will affect the Zephyr image’s link, and will decrease the total amount of flash available for use by application code.

If unsure, leave at the default value 0.

Defaults

Kconfig definitions

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

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

Menu path: (Top)

config FLASH_LOAD_OFFSET
    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:31

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

Menu path: (Top)

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

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

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

Menu path: (Top)

config FLASH_LOAD_OFFSET
    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/nrf52840dongle_nrf52840/Kconfig.defconfig:23

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

Menu path: (Top)

config FLASH_LOAD_OFFSET
    hex
    default 0x1000
    depends on BOARD_HAS_NRF5_BOOTLOADER && !USE_DT_CODE_PARTITION && BOARD_NRF52840DONGLE_NRF52840

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

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

Menu path: (Top)

config FLASH_LOAD_OFFSET
    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:34

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

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

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

Menu path: (Top)

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

At <Zephyr>/boards/riscv/hifive1_revb/Kconfig.defconfig:15

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

Menu path: (Top)

config FLASH_LOAD_OFFSET
    hex
    default 0x0
    depends on BOARD_HIFIVE1_REVB

At <Zephyr>/Kconfig.zephyr:93

Included via <Zephyr>/Kconfig:8

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

config FLASH_LOAD_OFFSET
    hex "Kernel load offset" if !USE_DT_CODE_PARTITION
    default 0x0 if USE_DT_CODE_PARTITION
    default 0
    depends on HAS_FLASH_LOAD_OFFSET
    help
      This option specifies the byte offset from the beginning of flash that
      the kernel should be loaded into. Changing this value from zero will
      affect the Zephyr image's link, and will decrease the total amount of
      flash available for use by application code.

      If unsure, leave at the default value 0.

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