Quality RTOS & Embedded Software

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


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 ]    [ 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