Quality RTOS & Embedded Software

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


Loading

How to detect memory leaks in FreeRTOS

Posted by Angel Eyes on October 23, 2008
Hi

How do I debug for a memory leak if at all assuming we are using heap2.c . I am not familiar with debigging to a great extent hance would like to know .

Thank you .

RE: How to detect memory leaks in FreeRTOS

Posted by Robert Warner on October 24, 2008
What little i know of the FreeRTOS is there are 3 different available heap management sub-systems/modules. If you look at the comments of each (heap_1, heap_2 and heap_3) you'll find which one may suit you best. I think by default heap_2 will 'leak' memory due to fragmentation and lack of garbage collection. The Leakage is mainly due to the heap management employed by that module. If you need less 'leakage', maybe try the heap_3, or build your own (and submit it ;) heap_4? ).

hths


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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