This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

在从核中调用malloc()函数提示heap溢出

Other Parts Discussed in Thread: SYSBIOS

用c6678进行多核编程,但是我在从核程序中只要一调用malloc()函数就会提示:

C66xx_1] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=332936
[C66xx_2] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=332936
[C66xx_3] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=332936
[C66xx_4] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=332936
[C66xx_5] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=332936
[C66xx_6] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=332936
[C66xx_7] ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x80c1f0, size=323144

在主核中调用malloc()函数就没有什么问题,应该不是我文件配置的问题,因为我试了增加heap,和减小malloc()的长度(除非把malloc的长度减小到很小)都有提示heap溢出错误,而在同样的情况下主核不会提示这些错误,请问大家遇见过这种问题吗?