Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ports/stm/boards/common_default.ld
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ SECTIONS
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM);
/* The stack sits at the top of RAM, so end the heap below it. The extra 1K matches
CIRCUITPY_EXCEPTION_STACK_SIZE, which port_stack_get_limit() counts as stack too. */
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM) - _ld_default_stack_size - 1K;

/* this just checks there is enough RAM for the stack */
.stack :
Expand Down
4 changes: 3 additions & 1 deletion ports/stm/boards/common_nvm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ SECTIONS
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM);
/* The stack sits at the top of RAM, so end the heap below it. The extra 1K matches
CIRCUITPY_EXCEPTION_STACK_SIZE, which port_stack_get_limit() counts as stack too. */
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM) - _ld_default_stack_size - 1K;

/* this just checks there is enough RAM for the stack */
.stack :
Expand Down
Loading