Skip to content

Commit e318da5

Browse files
Damian-Nordicrlubos
authored andcommitted
samples: nrf_rpc: protocols_serialization: use all [SR]RAM
Use all SRAM and RRAM space for the application in the protocols serialization samples. Signed-off-by: Damian Krolik <[email protected]>
1 parent 643712f commit e318da5

File tree

6 files changed

+64
-4
lines changed

6 files changed

+64
-4
lines changed

samples/nrf_rpc/protocols_serialization/client/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@
4141
pinctrl-1 = <&uart21_sleep>;
4242
pinctrl-names = "default", "sleep";
4343
};
44+
45+
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
46+
&cpuapp_rram {
47+
reg = <0x0 DT_SIZE_K(1524)>;
48+
};
49+
50+
&cpuapp_sram {
51+
reg = <0x20000000 DT_SIZE_K(256)>;
52+
ranges = <0x0 0x20000000 0x40000>;
53+
};
54+
55+
&rram_controller {
56+
/delete-node/ cpuflpr_sram;
57+
/delete-node/ cpuflpr_rram;
58+
};

samples/nrf_rpc/protocols_serialization/client/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@
4141
pinctrl-1 = <&uart21_sleep>;
4242
pinctrl-names = "default", "sleep";
4343
};
44+
45+
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
46+
&cpuapp_rram {
47+
reg = <0x0 DT_SIZE_K(1524)>;
48+
};
49+
50+
&cpuapp_sram {
51+
reg = <0x20000000 DT_SIZE_K(256)>;
52+
ranges = <0x0 0x20000000 0x40000>;
53+
};
54+
55+
&rram_controller {
56+
/delete-node/ cpuflpr_sram;
57+
/delete-node/ cpuflpr_rram;
58+
};

samples/nrf_rpc/protocols_serialization/server/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@
4141
pinctrl-1 = <&uart21_sleep>;
4242
pinctrl-names = "default", "sleep";
4343
};
44+
45+
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
46+
&cpuapp_rram {
47+
reg = <0x0 DT_SIZE_K(1524)>;
48+
};
49+
50+
&cpuapp_sram {
51+
reg = <0x20000000 DT_SIZE_K(256)>;
52+
ranges = <0x0 0x20000000 0x40000>;
53+
};
54+
55+
&rram_controller {
56+
/delete-node/ cpuflpr_sram;
57+
/delete-node/ cpuflpr_rram;
58+
};

samples/nrf_rpc/protocols_serialization/server/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@
4141
pinctrl-1 = <&uart21_sleep>;
4242
pinctrl-names = "default", "sleep";
4343
};
44+
45+
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
46+
&cpuapp_rram {
47+
reg = <0x0 DT_SIZE_K(1524)>;
48+
};
49+
50+
&cpuapp_sram {
51+
reg = <0x20000000 DT_SIZE_K(256)>;
52+
ranges = <0x0 0x20000000 0x40000>;
53+
};
54+
55+
&rram_controller {
56+
/delete-node/ cpuflpr_sram;
57+
/delete-node/ cpuflpr_rram;
58+
};

samples/nrf_rpc/protocols_serialization/server/snippets/log_rpc/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/ {
77
sram@2003FC00 {
88
compatible = "zephyr,memory-region", "mmio-sram";
9-
reg = <0x2002EC00 DT_SIZE_K(1)>;
9+
reg = <0x2003FC00 DT_SIZE_K(1)>;
1010
zephyr,memory-region = "RetainedMem";
1111
status = "okay";
1212

@@ -31,5 +31,5 @@
3131

3232
/* Reduce SRAM_CPUAPP usage by 1KB to account for non-init area */
3333
&cpuapp_sram {
34-
reg = <0x20000000 DT_SIZE_K(187)>;
34+
reg = <0x20000000 DT_SIZE_K(255)>;
3535
};

samples/nrf_rpc/protocols_serialization/server/snippets/log_rpc/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/ {
77
sram@2003FC00 {
88
compatible = "zephyr,memory-region", "mmio-sram";
9-
reg = <0x2002EC00 DT_SIZE_K(1)>;
9+
reg = <0x2003FC00 DT_SIZE_K(1)>;
1010
zephyr,memory-region = "RetainedMem";
1111
status = "okay";
1212

@@ -31,5 +31,5 @@
3131

3232
/* Reduce SRAM_CPUAPP usage by 1KB to account for non-init area */
3333
&cpuapp_sram {
34-
reg = <0x20000000 DT_SIZE_K(187)>;
34+
reg = <0x20000000 DT_SIZE_K(255)>;
3535
};

0 commit comments

Comments
 (0)