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.

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



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

Renesas

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