µTasker Forum

µTasker Forum => µTasker general => Topic started by: FAQ on December 25, 2010, 03:07:47 PM

Title: malloc()/free() with IAR project
Post by: FAQ on December 25, 2010, 03:07:47 PM

I trying to use the malloc() and free() function on the utasker.
can you please tell me what are changes to be done on the uTasker project.
My platform is IAR on luminary Micro.
Title: Re: malloc()/free() with IAR project
Post by: mark on December 25, 2010, 03:08:41 PM
Hi

The malloc()/free() functions are form the C library which is a part of the IAR environment.

You need to specify how much memory is to be reserved for this memory management area by setting it in the linker script file (*.icf in newest IAR versions):


/* library heap size - if required */
define symbol __size_heap__     = 0x0;  <-- modify this to suit the project


Regards

Mark