Author Topic: malloc()/free() with IAR project  (Read 8865 times)

Offline FAQ

  • Newbie
  • *
  • Posts: 26
    • View Profile
malloc()/free() with IAR project
« 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.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3188
    • View Profile
    • uTasker
Re: malloc()/free() with IAR project
« Reply #1 on: December 25, 2010, 03:08:41 PM »

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