Skip to content

Commit d41deb7

Browse files
nordic-mik7ahasztag
authored andcommitted
[nrf fromlist] boards: nordic: nrf54h20dk iron board MCUBoot support
Provide proper adaptions as bootloader ROM offset, flash load offset and dts definitions for the nRF54H20 iron board to make it ready for the MCUBoot bootloader. Upstream PR #: 88576 Signed-off-by: Michal Kozikowski <[email protected]>
1 parent 81eaa46 commit d41deb7

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

boards/nordic/nrf54h20dk/Kconfig.defconfig

+10
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ config MAX_THREAD_BYTES
1717
default 3 if USERSPACE
1818

1919
endif # BOARD_NRF54H20DK_NRF54H20_CPURAD
20+
21+
if BOARD_NRF54H20DK_NRF54H20_CPUAPP_IRON
22+
23+
config ROM_START_OFFSET
24+
default 0x800 if BOOTLOADER_MCUBOOT
25+
26+
config FLASH_LOAD_OFFSET
27+
default 0x2c000 if !USE_DT_CODE_PARTITION
28+
29+
endif # BOARD_NRF54H20DK_NRF54H20_CPUAPP_IRON

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp_iron.dts

+20-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,33 @@
1313
* the application core.
1414
*/
1515

16+
/ {
17+
chosen {
18+
zephyr,code-partition = &slot0_partition;
19+
zephyr,uart-mcumgr = &uart136;
20+
};
21+
};
22+
1623
&mram1x {
1724
cpuapp_rx_partitions: cpuapp-rx-partitions {
1825
compatible = "nordic,owned-partitions", "fixed-partitions";
1926
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RXS>;
2027
#address-cells = <1>;
2128
#size-cells = <1>;
2229

23-
cpuapp_slot0_partition: partition@2c000 {
24-
reg = <0x2c000 DT_SIZE_K(480)>;
30+
boot_partition: partition@2c000 {
31+
label = "mcuboot";
32+
reg = <0x2c000 DT_SIZE_K(64)>;
33+
};
34+
35+
slot0_partition: partition@3c000 {
36+
label = "image-0";
37+
reg = <0x3c000 DT_SIZE_K(200)>;
38+
};
39+
40+
slot1_partition: partition@6E000 {
41+
label = "image-1";
42+
reg = <0x6E000 DT_SIZE_K(200)>;
2543
};
2644

2745
cpuppr_code_partition: partition@a4000 {

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp_iron_defconfig

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ CONFIG_SERIAL=y
88
CONFIG_CONSOLE=y
99
CONFIG_UART_CONSOLE=y
1010

11-
CONFIG_USE_DT_CODE_PARTITION=y
12-
1311
# Enable MPU
1412
CONFIG_ARM_MPU=y
1513

soc/nordic/nrf54h/Kconfig

+3
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,6 @@ config SOC_NRF54H20_CPUFLPR
7474

7575
rsource "bicr/Kconfig"
7676
rsource "gpd/Kconfig"
77+
78+
config SOC_NRF54H20_IRON
79+
select EXPERIMENTAL if MCUBOOT

0 commit comments

Comments
 (0)