Skip to content

Commit

Permalink
bsp: Reserve RAM space for provisioning
Browse files Browse the repository at this point in the history
The last 0x1000 bytes of the RAM are reserved for the provisioning
bundle.

Signed-off-by: Bence Balogh <[email protected]>
  • Loading branch information
bence-balogh authored and urutva committed Nov 27, 2023
1 parent f271c4b commit 0ce7d64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Bsp/corstone300/an552_ns.ld
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

__STACK_SIZE = 0x00002800;
__HEAP_SIZE = 0x00000400;

PROVISIONING_SIZE = 0x1000;
MEMORY
{
FLASH (rx) : ORIGIN = (0x28080000 + 0x400), LENGTH = (0x300000 - 0x400 - 0x800)
RAM (rwx) : ORIGIN = 0x21100000, LENGTH = 0x00100000
RAM (rwx) : ORIGIN = 0x21100000, LENGTH = (0x00100000 - PROVISIONING_SIZE)
}

/* Linker script to place sections and symbol values.
Expand Down
3 changes: 2 additions & 1 deletion Bsp/corstone300/an552_ns.sct
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ LR_CODE (0x28000000 + ((((0) + (0x80000)) + (0x400)))) {
* (+RO)
}

ER_DATA (0x21100000) {
/* The last 0x1000 bytes are reserved for the provisioning bundle */
ER_DATA (0x21100000) (0x00100000 - 0x1000) {
* (+ZI +RW)
}

Expand Down
3 changes: 2 additions & 1 deletion Bsp/corstone310/an555_ns.ld
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ __ROM_SIZE = (0x300000 - 0x400 - 0xC00);
<o1> RAM Size (in Bytes) <0x0-0xFFFFFFFF:8>
</h>
-----------------------------------------------------------------------------*/
PROVISIONING_SIZE = 0x1000;
__RAM_BASE = 0x21000000 + 0x00200000;
__RAM_SIZE = 0x00200000;
__RAM_SIZE = (0x00200000 - PROVISIONING_SIZE);

/*--------------------- Stack / Heap Configuration ----------------------------
<h> Stack / Heap Configuration
Expand Down
3 changes: 2 additions & 1 deletion Bsp/corstone310/an555_ns.sct
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ LR_CODE (0x28000000 + ((((0) + (0x80000)) + 0x400))) {
* (+RO)
}

ER_DATA (0x21000000 + ((0x00200000))) {
; The last 0x1000 bytes are reserved for the provisioning bundle
ER_DATA (0x21000000 + ((0x00200000))) (0x00200000 - 0x1000) {
* (+ZI +RW)
}

Expand Down

0 comments on commit 0ce7d64

Please sign in to comment.