How to allocate more heap on stm32f3?

Hi,

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!

Hi,

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.

Alex