Skip to content

Commit

Permalink
samples: nrf_rpc: protocols_serialization: use all [SR]RAM
Browse files Browse the repository at this point in the history
Use all SRAM and RRAM space for the application in the
protocols serialization samples.

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic authored and rlubos committed Oct 17, 2024
1 parent 643712f commit e318da5
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
};

/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1524)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(256)>;
ranges = <0x0 0x20000000 0x40000>;
};

&rram_controller {
/delete-node/ cpuflpr_sram;
/delete-node/ cpuflpr_rram;
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
};

/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1524)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(256)>;
ranges = <0x0 0x20000000 0x40000>;
};

&rram_controller {
/delete-node/ cpuflpr_sram;
/delete-node/ cpuflpr_rram;
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
};

/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1524)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(256)>;
ranges = <0x0 0x20000000 0x40000>;
};

&rram_controller {
/delete-node/ cpuflpr_sram;
/delete-node/ cpuflpr_rram;
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
};

/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1524)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(256)>;
ranges = <0x0 0x20000000 0x40000>;
};

&rram_controller {
/delete-node/ cpuflpr_sram;
/delete-node/ cpuflpr_rram;
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/ {
sram@2003FC00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2002EC00 DT_SIZE_K(1)>;
reg = <0x2003FC00 DT_SIZE_K(1)>;
zephyr,memory-region = "RetainedMem";
status = "okay";

Expand All @@ -31,5 +31,5 @@

/* Reduce SRAM_CPUAPP usage by 1KB to account for non-init area */
&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(187)>;
reg = <0x20000000 DT_SIZE_K(255)>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/ {
sram@2003FC00 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2002EC00 DT_SIZE_K(1)>;
reg = <0x2003FC00 DT_SIZE_K(1)>;
zephyr,memory-region = "RetainedMem";
status = "okay";

Expand All @@ -31,5 +31,5 @@

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

0 comments on commit e318da5

Please sign in to comment.