How to allocate more heap on stm32f3?


I met an unexpected exit() today because the malloc() return a NULL

I try to get more heap space by modifying the _Min_Heap_Size at LinkerScript.ld: 58, but it didn’t work, so what should I do?

Thank you!


How much are you trying to allocate? I’m not too sure how malloc works on an embedded platform, but it might just allocate all of the unused RAM as heap.