Quality RTOS & Embedded Software

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


where to set heap_1, heap_2, heap_3?

Posted by Toan Pham on June 13, 2009


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) 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.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists