AnsweredAssumed Answered

how to change arm core heap size?

Question asked by walkercc on Aug 29, 2017
Latest reply on Sep 5, 2017 by Kader.M

the SC5xx heap size default is 2KB, I need larger size. But I don't know how to change heap size.


.heap :
__heap_start = . ;
__heap_end = . ;
} >MEM_L3 = 0


I define a large array in .heap section. So the file changed.

.heap 0xc1000000 0x25a000
0xc1000000 __heap_start = .
.heap 0xc1000000 0x258000 Source/adi_ss_app_arm.o
0xc1000000 HEAP
.heap 0xc1258000 0x2000 f:/analog devices/crosscore embedded studio 2.6.0/arm/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/sc589_rev_any\libc.a(lib_a-adi_heap_obj.o)
0xc1258000 __adi_heap_object
0xc125a000 __heap_end = .


But when i malloc memory, the address is over 0xc1258000 .