Skip to content

Commit ea6e6c6

Browse files
nordic-mik7kartben
authored andcommitted
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. Signed-off-by: Michal Kozikowski <[email protected]>
1 parent 7ea1bb7 commit ea6e6c6

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
@@ -14,15 +14,33 @@
1414
* the application core.
1515
*/
1616

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

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

2846
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
@@ -76,3 +76,6 @@ config SOC_NRF54H20_CPUFLPR
7676

7777
rsource "bicr/Kconfig"
7878
rsource "gpd/Kconfig"
79+
80+
config SOC_NRF54H20_IRON
81+
select EXPERIMENTAL if MCUBOOT

0 commit comments

Comments
 (0)