Skip to content

Commit 5628861

Browse files
hakonfamcarlescufi
authored andcommitted
boards: arm: nRF9160: avoid resizing sram0 for nRF9160_dk
sram0 node is needed to hold the size of the total, physical SRAM available on nRF9160 SoC. We use sram0_s to represent the Secure image SRAM for nRF9160_dk builds. Signed-off-by: Håkon Øye Amundsen <[email protected]> Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent e03db70 commit 5628861

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/ {
1212
chosen {
13-
zephyr,sram = &sram0;
13+
zephyr,sram = &sram0_s;
1414
zephyr,flash = &flash0;
1515
zephyr,code-partition = &slot0_partition;
1616
};

boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@
180180
};
181181

182182
/ {
183+
/* SRAM allocated to the Secure image */
184+
sram0_s: memory@20000000 {
185+
label = "secure_sram_memory";
186+
};
187+
183188
/* SRAM allocated and used by the BSD library */
184189
sram0_bsd: memory@20010000 {
185190
compatible = "mmio-sram";

boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_partition_conf.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939

4040
/* Default SRAM planning when building for nRF9160 with
4141
* ARM TrustZone-M support
42-
* - Lowest 64 kB SRAM allocated to Secure image (sram0).
42+
* - Lowest 64 kB SRAM allocated to Secure image (sram0_s).
4343
* - 64 kB SRAM reserved for and used by the BSD socket
44-
* library.
44+
* library (sram0_bsd).
4545
* - Upper 128 kB allocated to Non-Secure image (sram0_ns).
4646
*/
4747

48-
&sram0 {
48+
&sram0_s {
4949
reg = <0x20000000 DT_SIZE_K(64)>;
5050
};
5151

0 commit comments

Comments
 (0)