Quality RTOS & Embedded Software

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




Loading

where to set heap_1, heap_2, heap_3?

Posted by Toan Pham on June 13, 2009

Hi,

I read through the online documentation and looked at some of the demo application and I couldn't find where to set the type of memory manager to use.
how/where do i specify what type of memory model i want to use: heap 1, heap 2, or heap 3.

I am a notice to freeRtos, please help. thank you.

RE: where to set heap_1, heap_2, heap_3?

Posted by sotd on June 13, 2009
heap_1 is in heap_1.c, heap_2 in heap_2.c, heap_3 in heap_3.c. Include one c file in your project to use that heap.

RE: where to set heap_1, heap_2, heap_3?

Posted by Toan Pham on June 13, 2009


yeah, i thought so; just that the demo projects i looked at SAM7S eclipse and the SAM7X Rowley did not include those files.

or maybe i was included somewhere that i missed.

RE: where to set heap_1, heap_2, heap_3?

Posted by Toan Pham on June 13, 2009
When i added heap_2.c, i got duplicate declaration to pvPortFree etc....

I need to include heap_2.c in my webservice.c file to debug the memory manager.

I've looked all the files in the source code and I couldn't find heap_2 included anywhere else.


am i missing something?

RE: where to set heap_1, heap_2, heap_3?

Posted by MEdwards on June 14, 2009
You can only have one of heap_1, heap_2 or heap_3 included at any one time. If you ap was compiling already then you must have had one of the three files included already. If you want to add a different heap_x version then you must first remove the version that is being used.


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




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

Latest News

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


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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