Content originally posted in LPCWare by John Sinclair on Wed Sep 05 01:15:30 MST 2012
Hi Tagc,
malloc uses heap. So you have increase your heap size in the startup file. But attention, in the embedded world malloc is a taboo, because the Controller doesn't have a MMU (memory management unit). So your heap will defragmented after a lot of malloc and free calls with different sizes. Better (saver) is to use static memory like a array.
Best regards
John