-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linker _user_heap definition may conflict with Arduino IDE RAM calculation #8
Labels
question ❓
Usually converted as a discussion
Comments
Closed as no question/issue raised linked to this |
fpistm
referenced
this issue
in fpistm/Arduino_Core_STM32
Feb 14, 2018
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>
fpistm
added a commit
that referenced
this issue
Mar 6, 2018
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>
Closed
benwaffle
pushed a commit
to benwaffle/Arduino_Core_STM32
that referenced
this issue
Apr 10, 2019
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 stm32duino#8 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From @rogerclarkmelbourne on November 20, 2016 21:52
See http://stm32duino.com/viewtopic.php?f=48&t=1564&p=20198#p20198
@RickKimball posted
Copied from original issue: fpistm/Arduino_Core_STM32L4#6
The text was updated successfully, but these errors were encountered: