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.

TMS320F28388D: 使用lwip协议栈实现udp通信时遇到malloc内存空间时返回的地址为0

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

大家好,

我现在使用自建工程,在CM内核实现udp协议的Enet通信,将CPU1采集的数据通过ipc3触发中断发送给CM,在中断代码中将数据发送出去,发送周期是625us,实现实时不间断的采集。但在发送持续了30s左右程序被打断,pc指针会跳到下面图中的代码,该代码是f2838xif.c文件中。

也就是在调用mem_malloc函数时返回的地址为0,不知道为啥会返回为0,一般在malloc空间后都会释放掉,应该不存在内存不够的情况啊

下图是我目前heap和stack设置的大小。

想请教大家给一些建议。