Skip to content

Commit ad0fdd2

Browse files
committed
[nrf fromlist] boards: nordic: nrf54h20dk: Fix FLASH_LOAD_SIZE
Fix FLASH_LOAD_SIZE setting for builds with !USE_DT_CODE_PARTITION (for e.g. with no MCUBoot). Having it wrongly set to 0x0 caused problems when running multiple images (radio core, application core) on the same board. Upstream PR #: 92191 Related: NCSIDB-1628 Signed-off-by: Michal Kozikowski <[email protected]>
1 parent 93aefcf commit ad0fdd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

boards/nordic/nrf54h20dk/Kconfig.defconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright (c) 2024 Nordic Semiconductor ASA
22
# SPDX-License-Identifier: Apache-2.0
33

4+
# Workaround for not being able to have commas in macro arguments
5+
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
6+
47
if BOARD_NRF54H20DK_NRF54H20_CPUAPP
58

69
config BT_HCI_IPC
@@ -26,6 +29,9 @@ config ROM_START_OFFSET
2629
config FLASH_LOAD_OFFSET
2730
default 0x30000 if !USE_DT_CODE_PARTITION
2831

32+
config FLASH_LOAD_SIZE
33+
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
34+
2935
endif # BOARD_NRF54H20DK_NRF54H20_CPUAPP_IRON
3036

3137
if BOARD_NRF54H20DK_NRF54H20_CPURAD_IRON

0 commit comments

Comments
 (0)