Skip to content

Commit a1367f6

Browse files
committed
Update link.x memory sizes
1 parent 439e01c commit a1367f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/mlogv32/link.x

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ MEMORY {
1212
0x3000000 = 128*24 * 4096*4
1313
0x1000000 = 128*8 * 4096*4
1414
*/
15-
rom (rx) : ORIGIN = 0, LENGTH = 0x1000000
16-
ram (rw) : ORIGIN = 0x1000000, LENGTH = 0x3000000
15+
rom (rx) : ORIGIN = 0, LENGTH = 0x200000
16+
ram (rw) : ORIGIN = 0x200000, LENGTH = 0x200000
1717
}
1818

1919
REGION_ALIAS("REGION_TEXT", rom);
@@ -24,7 +24,7 @@ REGION_ALIAS("REGION_HEAP", ram);
2424
REGION_ALIAS("REGION_STACK", ram);
2525

2626
PROVIDE(_stack_start = ORIGIN(REGION_STACK) + LENGTH(REGION_STACK));
27-
PROVIDE(_stack_size = 8M);
27+
PROVIDE(_stack_size = 4K);
2828

2929
/* users can optionally enable the heap by adding another linker script to override this value */
3030
PROVIDE(_heap_size = 0);

0 commit comments

Comments
 (0)