-
CONFIG_TEXT_SECTION_OFFSET
¶
TEXT section offset
Type: hex
Help¶
If the application is built for chain-loading by a bootloader this variable is required to be set to value that leaves sufficient space between the beginning of the image and the start of the .text section to store an image header or any other metadata. In the particular case of the MCUboot bootloader this reserves enough space to store the image header, which should also meet vector table alignment requirements on most ARM targets, although some targets may require smaller or larger values.
Defaults¶
- 0x30 if
BOARD_ARDUINO_101
- 0x30 if
BOARD_TINYTILE
- 0x100 if
BOOTLOADER_MCUBOOT
&&BOARD_INTEL_S1000_CRB
- 0x2000 if (
BOOT_FLEXSPI_NOR
||BOOT_SEMC_NOR
) &&SOC_SERIES_IMX_RT
- 0x800 if
XIP
&&SOC_CC3220SF
&&SOC_SERIES_CC32XX
- 0x0 if !
XIP
&&SOC_CC3220SF
&&SOC_SERIES_CC32XX
- 0x200 if
BOOTLOADER_MCUBOOT
- 0
Kconfig definitions¶
At boards/x86/arduino_101/Kconfig.defconfig:8
Included via Kconfig:10
→ Kconfig.zephyr:21
Menu path: (top menu)
config TEXT_SECTION_OFFSET hex default 0x30 ifBOARD_ARDUINO_101
depends onBOARD_ARDUINO_101
At boards/x86/tinytile/Kconfig.defconfig:8
Included via Kconfig:10
→ Kconfig.zephyr:21
Menu path: (top menu)
config TEXT_SECTION_OFFSET hex default 0x30 ifBOARD_TINYTILE
depends onBOARD_TINYTILE
At boards/xtensa/intel_s1000_crb/Kconfig.defconfig:59
Included via Kconfig:10
→ Kconfig.zephyr:21
Menu path: (top menu)
config TEXT_SECTION_OFFSET hex default 0x100 ifBOOTLOADER_MCUBOOT
&&BOARD_INTEL_S1000_CRB
depends onBOOTLOADER_MCUBOOT
&&BOARD_INTEL_S1000_CRB
At soc/arm/nxp_imx/rt/Kconfig.defconfig.series:13
Included via Kconfig:10
→ Kconfig.zephyr:23
→ soc/arm/nxp_imx/Kconfig.defconfig:7
Menu path: (top menu)
config TEXT_SECTION_OFFSET hex default 0x2000 if (BOOT_FLEXSPI_NOR
||BOOT_SEMC_NOR
) &&SOC_SERIES_IMX_RT
depends onSOC_SERIES_IMX_RT
At soc/arm/ti_simplelink/cc32xx/Kconfig.defconfig.cc3220sf:22
Included via Kconfig:10
→ Kconfig.zephyr:23
→ soc/arm/ti_simplelink/Kconfig.defconfig:3
→ soc/arm/ti_simplelink/cc32xx/Kconfig.defconfig.series:8
Menu path: (top menu)
config TEXT_SECTION_OFFSET hex default 0x800 ifXIP
&&SOC_CC3220SF
&&SOC_SERIES_CC32XX
default 0x0 if !XIP
&&SOC_CC3220SF
&&SOC_SERIES_CC32XX
depends onSOC_CC3220SF
&&SOC_SERIES_CC32XX
At Kconfig.zephyr:117
Included via Kconfig:10
Menu path: (top menu) → Build and Link Features → Linker Options
config TEXT_SECTION_OFFSET hex prompt "TEXT section offset" if !BOOTLOADER_MCUBOOT
default 0x200 ifBOOTLOADER_MCUBOOT
default 0 help If the application is built for chain-loading by a bootloader this variable is required to be set to value that leaves sufficient space between the beginning of the image and the start of the .text section to store an image header or any other metadata. In the particular case of the MCUboot bootloader this reserves enough space to store the image header, which should also meet vector table alignment requirements on most ARM targets, although some targets may require smaller or larger values.
(Definitions include propagated dependencies, including from if’s and menus.)