2014-03-04 08:15 AM
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-vauge2014-03-05 07:47 AM
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.2014-03-05 01:23 PM
''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.