Skip to content

Commit 0e58d8f

Browse files
committed
merged mb9bf566k ram1 and ram2 region in linkerscript
1 parent 48552e5 commit 0e58d8f

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

targets/chip/mb9bf566k/linkerscript.ld

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OUTPUT_ARCH(arm);
1010
/*
1111
The stack size used by the application. NOTE: you need to adjust according to your application.
1212
*/
13-
STACK_SIZE = 0x1000;
13+
STACK_SIZE = 0x2000;
1414

1515
/*
1616
Memories definitions
@@ -21,8 +21,9 @@ MEMORY
2121
ram (rwx) : org = 0x1fff8000, len = 32k
2222

2323
/* Note the following ranges are not on the I or D code bus */
24-
ram1 (rwx) : org = 0x2003c000, len = 16k
25-
ram2 (rwx) : org = 0x20040000, len = 16k
24+
/* ram1 and ram2 in one continuous block */
25+
ram1 (rwx) : org = 0x2003c000, len = 16k * 2
26+
/* ram2 (rwx) : org = 0x20040000, len = 16k */
2627
rom1 (rx) : org = 0x200C0000, len = 32k
2728
}
2829

@@ -168,6 +169,14 @@ SECTIONS
168169
PROVIDE(__heap_end = (ORIGIN(ram) + LENGTH(ram)));
169170
} > ram
170171

172+
.ram1 :
173+
{
174+
. = ALIGN(4);
175+
*(SORT_BY_ALIGNMENT(.ramfunc))
176+
*(SORT_BY_ALIGNMENT(.ramfunc.*))
177+
. = ALIGN(4);
178+
} > ram1
179+
171180
/* Remove information from the standard libraries */
172181
/DISCARD/ :
173182
{

0 commit comments

Comments
 (0)