Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

gnu-arm -toolchain malloc not working

gnu-arm -toolchain malloc not working

2004-09-12 by lpc21xx

Greetings all,
I'm using the gnu-arm toolchain 3.4 which includes  newlib.1.12.0.
I tied to allocate dynamic memory in heap space using malloc.
But I always get back the NULL pointer instead of a location in heap.
In my linker file I use :


.stack ALIGN(256) :
  {
    . += STACK_SIZE;
    PROVIDE (_stack = .);
  } > RAM
	
  
    _end = . ;      PROVIDE (end = .);


The _end symbol isn't that the symbol that malloc hooks to ?? Or do 
I need an other symbol or do I overlook  something else.... ???
Thanks in advance 
Christian

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.