Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

heap_4.c

Posted by michaeln32 on December 24, 2017

Hi,

I'm using heap4.c for the memory management of dynamic allocation for kernel objects in the heap.

Does the API xPortGetFreeHeapSize() gives me the total amount of heap space that remains unallocated includes the fragmented memory or without the fragmented memory ?

fragmented memory is the memory that I cannot use for memory allocation.

Thank you

Michael


heap_4.c

Posted by rtel on December 24, 2017

It gives you the total amount of free memory - it doesn't tell you anything about how that memory may be fragmented. https://www.freertos.org/a00111.html


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Careers

FreeRTOS and other careers at AWS.


Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner