STM32CubeIDE System Memory calls file. More...
#include <errno.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
void * | _sbrk (ptrdiff_t incr) |
_sbrk() allocates memory to the newlib heap and is used by malloc and others from the C library More... | |
Variables | |
static uint8_t * | __sbrk_heap_end = NULL |
STM32CubeIDE System Memory calls file.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32h735/stm32h735g-dk/Src/sysmem.c.
void* _sbrk | ( | ptrdiff_t | incr | ) |
_sbrk() allocates memory to the newlib heap and is used by malloc and others from the C library
* ############################################################################ * # .data # .bss # newlib heap # MSP stack # * # # # # Reserved by _Min_Stack_Size # * ############################################################################ * ^-- RAM start ^-- _end _estack, RAM end --^ *
This implementation starts allocating at the '_end' linker symbol The '_Min_Stack_Size' linker symbol reserves a memory for the MSP stack The implementation considers '_estack' linker symbol to be RAM end NOTE: If the MSP stack, at any point during execution, grows larger than the reserved size, please increase the '_Min_Stack_Size'.
incr | Memory size |
Definition at line 54 of file stm32h735/stm32h735g-dk/Src/sysmem.c.
|
static |
Pointer to the current high watermark of the heap usage
Definition at line 31 of file stm32h735/stm32h735g-dk/Src/sysmem.c.