Is it possible to use the standard library of the toolchain "GNU Tools for STM32" without using the heap area?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-14 9:34 PM
We are developing "STM32F769-Discovery Kit" using STM32Cube IDE.
The toolchain is "GNU Tools for STM32".
Functions such as printf call malloc_r and use the heap area.
_Puts_r ()
__sinit ()
__sfp ()
__sfmorgelue
_malloc_r
In our development project, we want to proceed with development without using the heap area.
Is there a way to use the standard library without using the heap area?
- Labels:
-
STM32CubeIDE
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-15 12:56 AM
i dont know if this is obvious or not but what if you dont use printf?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-15 1:22 AM
Thanks Reply!
Malloc_r is called twice only for the first printf.
It will not be called in the second and subsequent printf.
When using "GNU Tools for STM32", can we conclude that it is inevitable to use the heap area in the standard library?
