Skip to content

Commit 9c04819

Browse files
committed
Adding generic ram/flash size to ldscript
1 parent eef5173 commit 9c04819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variants/STM32C0xx/C011J(4-6)M/ldscript.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
4444
/* Memories definition */
4545
MEMORY
4646
{
47-
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 6K
48-
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 16K
47+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
48+
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
4949
}
5050

5151
/* Sections */

0 commit comments

Comments
 (0)