## where to set heap_1, heap_2, heap_3?

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.

### where to set heap_1, heap_2, heap_3?

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.

### where to set heap_1, heap_2, heap_3?

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.

### where to set heap_1, heap_2, heap_3?

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?

### where to set heap_1, heap_2, heap_3?

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.