Skip to content

Commit 5e54100

Browse files
tomchykartben
authored andcommitted
boards: nrf54h20_iron: Allow radio updates
Add necessary changes to provide a simple, updateable radio image. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
1 parent a280fbf commit 5e54100

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

boards/nordic/nrf54h20dk/Kconfig.defconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ config FLASH_LOAD_OFFSET
2727
default 0x2c000 if !USE_DT_CODE_PARTITION
2828

2929
endif # BOARD_NRF54H20DK_NRF54H20_CPUAPP_IRON
30+
31+
if BOARD_NRF54H20DK_NRF54H20_CPURAD_IRON
32+
33+
config ROM_START_OFFSET
34+
default 0x800 if BOOTLOADER_MCUBOOT
35+
36+
endif # BOARD_NRF54H20DK_NRF54H20_CPURAD_IRON

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp_iron.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ slot0_partition: &cpuapp_slot0_partition {
3535
slot1_partition: &cpuapp_slot1_partition {
3636
label = "image-1";
3737
};
38+
39+
slot2_partition: &cpurad_slot0_partition {
40+
label = "image-2";
41+
};
42+
43+
slot3_partition: &cpurad_slot1_partition {
44+
label = "image-3";
45+
};

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad_iron.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@
1919
mbox-names = "tx", "rx";
2020
status = "okay";
2121
};
22+
23+
slot0_partition: &cpurad_slot0_partition {
24+
label = "image-0";
25+
};
26+
27+
slot1_partition: &cpurad_slot1_partition {
28+
label = "image-1";
29+
};

modules/Kconfig.mcuboot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ config MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP
227227

228228
config MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT
229229
bool "MCUboot has been configured for DirectXIP with revert"
230+
select MCUBOOT_BOOTUTIL_LIB
230231
select MCUBOOT_BOOTUTIL_LIB_FOR_DIRECT_XIP
231232
select MCUBOOT_BOOTLOADER_MODE_HAS_NO_DOWNGRADE
232233
select MCUBOOT_BOOTLOADER_NO_DOWNGRADE

soc/nordic/nrf54h/soc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ void soc_late_init_hook(void)
173173

174174
void *radiocore_address =
175175
(void *)(DT_REG_ADDR(DT_GPARENT(DT_NODELABEL_CPURAD_SLOT0_PARTITION)) +
176-
DT_REG_ADDR(DT_NODELABEL_CPURAD_SLOT0_PARTITION));
176+
DT_REG_ADDR(DT_NODELABEL_CPURAD_SLOT0_PARTITION) +
177+
CONFIG_ROM_START_OFFSET);
177178

178179
/* Don't wait as this is not yet supported. */
179180
bool cpu_wait = false;

0 commit comments

Comments
 (0)