cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use the standard library of the toolchain "GNU Tools for STM32" without using the heap area?

Shin-H
Associate

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?

2 REPLIES 2
Javier1
Principal

i dont know if this is obvious or not but what if you dont use printf?

we dont need to firmware by ourselves, lets talk
Shin-H
Associate

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?