Skip to content

Commit 618f460

Browse files
committed
[nrf fromlist] samples: code_relocation_nocopy: Add configuration for nRF54H20 DK
Add nRF54H20 DK specific entries to allow using the sample on this board. Upstream PR #: 80042 Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 533e620 commit 618f460

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_FLASH=y
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
&cpuapp_ram0x_region {
2+
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RWXS>;
3+
};
4+
5+
&xip_region {
6+
status = "okay";
7+
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RX>;
8+
};
9+
10+
&mx25uw63 {
11+
read-command = <0xEC13>;
12+
command-length = "INSTR_2_BYTE";
13+
address-length = "ADDR_4_BYTE";
14+
rx-dummy = <20>;
15+
16+
xip-config = <1 0 0x20000000 0>;
17+
};

samples/application_development/code_relocation_nocopy/linker_arm_nocopy.ld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@
4747
#define EXTFLASH_ADDR DT_REG_ADDR(DT_INST(0, st_stm32_xspi_nor))
4848
#define EXTFLASH_SIZE DT_REG_ADDR_BY_IDX(DT_INST(0, st_stm32_xspi_nor), 1)
4949

50+
#elif defined(CONFIG_FLASH_MSPI_NOR) && defined(CONFIG_SOC_NRF54H20_CPUAPP)
51+
52+
#define EXTFLASH_NODE DT_INST(0, jedec_mspi_nor)
53+
#define EXTFLASH_ADDR 0x60000000
54+
#define EXTFLASH_SIZE DT_PROP_OR(EXTFLASH_NODE, size_in_bytes, \
55+
DT_PROP(EXTFLASH_NODE, size) / 8)
56+
5057
#else
5158

5259
/*

0 commit comments

Comments
 (0)