-
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.
Direct dependencies¶
(BOARD_HAS_NRF5_BOOTLOADER
&& !USE_CODE_PARTITION
&& BOARD_NRF52840_PCA10059
) || (BOARD_NRF9160_PCA10090NS
&& (BOARD_NRF9160_PCA10090
|| BOARD_NRF9160_PCA10090NS
)) || HAS_FLASH_LOAD_OFFSET
(Includes any dependencies from if’s and menus.)
Defaults¶
- 0x1000 if
BOARD_HAS_NRF5_BOOTLOADER
&& !USE_CODE_PARTITION
&&BOARD_NRF52840_PCA10059
- 0x0 if
BOARD_NRF9160_PCA10090NS
&& (BOARD_NRF9160_PCA10090
||BOARD_NRF9160_PCA10090NS
) - 0x0 if
USE_CODE_PARTITION
&&HAS_FLASH_LOAD_OFFSET
- 0 if
HAS_FLASH_LOAD_OFFSET
Kconfig definitions¶
At boards/arm/nrf52840_pca10059/Kconfig.defconfig:25
Included via Kconfig:10
→ Kconfig.zephyr:21
Menu path: (top menu)
config FLASH_LOAD_OFFSET hex default 0x1000 ifBOARD_HAS_NRF5_BOOTLOADER
&& !USE_CODE_PARTITION
&&BOARD_NRF52840_PCA10059
depends onBOARD_HAS_NRF5_BOOTLOADER
&& !USE_CODE_PARTITION
&&BOARD_NRF52840_PCA10059
At boards/arm/nrf9160_pca10090/Kconfig.defconfig:59
Included via Kconfig:10
→ Kconfig.zephyr:21
Menu path: (top menu)
config FLASH_LOAD_OFFSET hex default 0x0 ifBOARD_NRF9160_PCA10090NS
&& (BOARD_NRF9160_PCA10090
||BOARD_NRF9160_PCA10090NS
) depends onBOARD_NRF9160_PCA10090NS
&& (BOARD_NRF9160_PCA10090
||BOARD_NRF9160_PCA10090NS
)
At Kconfig.zephyr:91
Included via Kconfig:10
Menu path: (top menu) → Build and Link Features → Linker Options
config FLASH_LOAD_OFFSET hex prompt "Kernel load offset" ifHAS_FLASH_LOAD_OFFSET
default 0x0 ifUSE_CODE_PARTITION
&&HAS_FLASH_LOAD_OFFSET
default 0 ifHAS_FLASH_LOAD_OFFSET
depends onHAS_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.
(Definitions include propagated dependencies, including from if’s and menus.)