IMO, standard newlib uses too much RAM for an ARM Cortex based system if you enable configUSE_NEWLIB_REENTRANT. So we don’t use configUSE_NEWLIB_REENTRANT. Instead, we replace the functions that use the newlib reent struct. The main ones are printf, strtod and functions related to these. Some other functions that use the reent struct have alternatives that don’t, for example we use gmtime_r instead of gmtime.
dc42
(David Crocker)
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Making sure a deleted task's OS/clib resources have been freed | 28 | 9460 | October 14, 2021 | |
| FreeRTOS(8.0.1) + newlib from ARM GCC | 4 | 499 | November 18, 2014 | |
| Possible memory leaks when configUSE_NEWLIB_REENTRANT 1 | 2 | 427 | April 9, 2014 | |
| Memory Leak using snprintf with floats | 15 | 2101 | August 23, 2021 | |
| Thread safe memory allocation | 25 | 15302 | March 17, 2021 |