Skip to content

Commit 7082217

Browse files
boards: nordic: bm_nrf54l15dk: sram adjustments
Adjust sram sizes to not overlap with Viper context. Signed-off-by: Eivind Jølsgard <eivind.jolsgard@nordicsemi.no>
1 parent 5cfa317 commit 7082217

6 files changed

+19
-12
lines changed

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_common.dtsi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@
2525
compatible = "mmio-sram";
2626
#address-cells = <1>;
2727
#size-cells = <1>;
28-
reg = <0x20000080 (DT_SIZE_K(256) - 0x80)>;
29-
ranges = <0x0 0x20000080 (DT_SIZE_K(256) - 0x80)>;
28+
/* Size reduced by 0x80 bytes to account for the start address offset.
29+
* As total size of SRAM is not 1kB aligned,
30+
* 0x200 bytes are added to the 255 kB.
31+
*/
32+
reg = <0x20000080 (DT_SIZE_K(255) - 0x80 + 0x200)>;
33+
ranges = <0x0 0x20000080 (DT_SIZE_K(255) - 0x80 + 0x200)>;
3034
};
3135
};
3236

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_s115_softdevice.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171

7272
app_ram: sram@4380 {
7373
label = "app_ram";
74-
reg = <0x4380 DT_SIZE_K(238)>;
74+
reg = <0x4380 (DT_SIZE_K(238) + 0x200)>;
7575
};
7676
};

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_s115_softdevice_mcuboot.dts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,12 @@
9797
&cpuapp_sram {
9898
status = "okay";
9999

100-
/* Override setting in bm_nrf54l15dk_nrf54l15_cpuapp_common.dtsi
100+
/* Override setting in bm_nrf54lv10dk_nrf54lv10a_cpuapp_common.dtsi
101101
* to adjust sram size to not overlap with retainedmem
102+
* (here we ignore the extra 512 bytes at the top end)
102103
*/
103-
reg = <0x20000080 (DT_SIZE_K(256) - DT_SIZE_K(1) - 0x80)>;
104-
ranges = <0x0 0x20000080 (DT_SIZE_K(256) - DT_SIZE_K(1) - 0x80)>;
104+
reg = <0x20000080 (DT_SIZE_K(255) - DT_SIZE_K(1) - 0x80)>;
105+
ranges = <0x0 0x20000080 (DT_SIZE_K(255) - DT_SIZE_K(1) - 0x80)>;
105106

106107
softdevice_static_ram: sram@0 {
107108
label = "softdevice_static_ram";
@@ -115,6 +116,6 @@
115116

116117
app_ram: sram@4380 {
117118
label = "app_ram";
118-
reg = <0x4380 DT_SIZE_K(238)>;
119+
reg = <0x4380 DT_SIZE_K(237)>;
119120
};
120121
};

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_s145_softdevice.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171

7272
app_ram: sram@4780 {
7373
label = "app_ram";
74-
reg = <0x4780 DT_SIZE_K(237)>;
74+
reg = <0x4780 (DT_SIZE_K(237) + 0x200)>;
7575
};
7676
};

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_s145_softdevice_mcuboot.dts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@
9999
&cpuapp_sram {
100100
status = "okay";
101101

102-
/* Override setting in bm_nrf54l15dk_nrf54l15_cpuapp_common.dtsi
102+
/* Override setting in bm_nrf54lv10dk_nrf54lv10a_cpuapp_common.dtsi
103103
* to adjust sram size to not overlap with retainedmem
104+
* (here we ignore the extra 512 bytes at the top end)
104105
*/
105-
reg = <0x20000080 (DT_SIZE_K(256) - DT_SIZE_K(1) - 0x80)>;
106-
ranges = <0x0 0x20000080 (DT_SIZE_K(256) - DT_SIZE_K(1) - 0x80)>;
106+
reg = <0x20000080 (DT_SIZE_K(255) - DT_SIZE_K(1) - 0x80)>;
107+
ranges = <0x0 0x20000080 (DT_SIZE_K(255) - DT_SIZE_K(1) - 0x80)>;
107108

108109
softdevice_static_ram: sram@0 {
109110
label = "softdevice_static_ram";
@@ -117,6 +118,6 @@
117118

118119
app_ram: sram@4780 {
119120
label = "app_ram";
120-
reg = <0x4780 DT_SIZE_K(237)>;
121+
reg = <0x4780 DT_SIZE_K(236)>;
121122
};
122123
};

doc/nrf-bm/release_notes/release_notes_changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Boards
3939

4040
* Added experimental support for PCA10188 (`nRF54LV10 DK`_)
4141
* Disabled all Peripheral Resource Sharing (PRS) boxes for the ``bm_nrf54l15dk`` board variants.
42+
* Adjusted sram sizes for the ``bm_nrf54l15dk`` to not overlap with Viper context.
4243

4344
Build system
4445
============

0 commit comments

Comments
 (0)