Commit 34a87b0
committed
Removed ._user_heap_stack section from the Arduino reported RAM usage
Linker script defined ._user_heap_stack section to check that there
is enough RAM left.
Arduino should not report this but only the real one used.
Example for a BluePill:
.user_heap_stack section is equal to 1536 (_Min_Heap_Size+_Min_Stack_Size)
If used to compute RAM usage of blink sketch, Arduino reports: 2456 bytes
While it is not computed, it reports 916 bytes (=2456-1536-4(align))
Linker always ensures there is enough space defined thanks .user_heap_stack
Arduino will report real size and will warn if sketch use more than the
default RAM usage (build.warn_data_percentage=75)
See #8
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent f06193a commit 34a87b0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments