Author Topic: memory allocation  (Read 27587 times)

Offline Forrest

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: memory allocation
« Reply #15 on: May 06, 2009, 11:42:11 AM »
Hi all,

I have problem with printing float numbers into string. I use sprintf function and develop project with yagartoo 4.2.2 tools.

So I have added this changes
First I set  __HEAPSIZE__ = 8192; heap size in uTaskerLPC23XX.ld
Second i include <stdlib.h> in config.h
Thirt I add _sbrk function at the end of application.c

So I compile this with error that _sbrk function is defined in libc.a. If I remove _sbrk function compilation was OK but, problem with printing float numbers stayed.

Another different solution is discriped here http://www.utasker.com/forum/index.php?topic=96.0
So i add #define GNU_MALLOC_SIZE      8192 into config.h file.
The result was same as first sollution. If program must print float numer info string, proccesor was reset.

Have you any idea, how to solve this problem?

Regards Forrest