How to detect memory leaks in FreeRTOS
Posted by Angel Eyes
on October 23, 2008
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? ).
Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.