cancel
Showing results for 
Search instead for 
Did you mean: 

not enough memory

anhhuy0701
Associate II
Posted on March 04, 2014 at 17:15

hello everyone, I have problem about memory

I download source code ''better string lib'' and I just add 3 C file to project, when I built no error happen, but I want to know exactly result then I debug, and program not complete, not enough memory for program. Although I increase the stack and heap size in startup_code file but nothing change

my project use keiluvision4 and st-link debugger

thank and regard!

#too-vauge
11 REPLIES 11
frankmeyer9
Associate II
Posted on March 05, 2014 at 16:47

malloc() is of rather limited use on MMU-less targets, as it only works on a static memory layout (no paging).

I guess your application is too large for the target. In this case, either strip it down, or select a better equipped target MCU.

Posted on March 05, 2014 at 22:23

''I use malloc to provide heap memory''

I guess that's probably just a problem in the English translation, but note that malloc() does not provide  heap memory - it uses  the heap.