How to change nRF54L15DK sram size

I work on nRF54L15DK.

When building for the nRF54L15DK, only 188KB of SRAM is allocated.
The remaining 68KB seems to be allocated to the FLPR MCU.
How can I change this size?

Parents
  • Hello,

    I think you can either delete the FLPR part and adding the entire 256kB for SRAM or set the allocation zero for FLPR (if deleting is not allowed). 

    For the first one, you need to increase the RAM size range. Currently, it is set to 0x2F000 for cpuapp, which corresponds to 168k and 0x11000 for cpuflpr, which corresponds to 68k.

    You can edit the rf54l15.dtsi file in following way:

    cpuapp_sram: memory@20000000 {
          compatible = "mmio-sram";
          reg = <0x20000000 DT_SIZE_K(256)>;
          #address-cells = <1>;
          #size-cells = <1>;
          ranges = <0x0 0x20000000 0x40000>;
        };
    
     
    
        cpuflpr_sram: memory@20040000 {
          compatible = "mmio-sram";
          reg = <0x20040000 DT_SIZE_K(0)>;
          #address-cells = <1>;
          #size-cells = <1>;
          ranges = <0x0 0x20040000 0x00000>;
        };

    or 

    cpuapp_sram: memory@20000000 {
    			compatible = "mmio-sram";
    			reg = <0x20000000 DT_SIZE_K(256)>;
    			#address-cells = <1>;
    			#size-cells = <1>;
    			ranges = <0x0 0x20000000 0x40000>;
    		};

  • Hello! I have the similar issue. However, I use Partition manager, instead of defining partitions in a devicetree. In the pm_static.yml i declare the following:

    sram_primary:
      address: 0x20000000
      end_address: 0x20040000
      region: sram_primary
      size: 0x40000

    But at the end of a build I get a memory report, that says 188kB of RAM is available. During build, I see, that it uses the pm_static.yml file, so I assume, that the build system uses partition manager.
    What is the correct way to use the whole RAM region for the cpuapp with Partition manager?

  • I am also stuck here. Did you have any update on this?

  • I also just stumbled over this - we're still fine with the usage (~90kB) but still it irritates me somehow...

Reply Children
No Data
Related