8000 nrf5/boards: Updating nrf51822_aa_s110.ld to be more generic, leaving… · boneskull/circuitpython@ef6d583 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef6d583

Browse files
committed
nrf5/boards: Updating nrf51822_aa_s110.ld to be more generic, leaving all RAM not used for stack, .bss and .data to the heap.
1 parent 1aeb74a commit ef6d583

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nrf5/boards/nrf51822_aa_s110.ld

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ MEMORY
99
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x040000 /* entire flash, 256 KiB */
1010
FLASH_ISR (rx) : ORIGIN = 0x00018000, LENGTH = 0x000400 /* sector 0, 1 KiB */
1111
FLASH_TEXT (rx) : ORIGIN = 0x00018400, LENGTH = 0x027c00 /* 159 KiB */
12-
RAM (xrw) : ORIGIN = 0x20001000, LENGTH = 0x003000 /* 12 KiB */
12+
RAM (xrw) : ORIGIN = 0x20002000, LENGTH = 0x002000 /* 8 KiB */
1313
}
1414

1515
/* produce a link error if there is not this amount of RAM for these sections */
1616
_minimum_stack_size = 2K;
17-
_minimum_heap_size = 8K;
18-
17+
_minimum_heap_size = 1K;
18+
1919
/* top end of the stack */
2020

2121
/*_stack_end = ORIGIN(RAM) + LENGTH(RAM);*/
2222
_estack = ORIGIN(RAM) + LENGTH(RAM);
2323

2424
/* RAM extents for the garbage collector */
2525
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
26-
_heap_end = 0x20003000; /* tunable */
26+
_heap_end = 0x20003c00; /* tunable */
2727

2828
INCLUDE "boards/common.ld"

0 commit comments

Comments
 (0)
0