Quantcast
Channel: C6000™多核 - 最近的话题
Viewing all articles
Browse latest Browse all 5545

DSP6678 修改基于IPC的 image_processing例程出错,HeapMem out of memory

$
0
0

本人修改ti MCSDK 中基于IPC的 image_processing 例程中 slave工程的cfg文件后运行出错。修改内容如下

原cfg文件相关代码如下

/* Create a Heap. */
var heapMemParams = new HeapMem.Params;
heapMemParams.size = 0x8000;
var heap0 = HeapMem.create(heapMemParams);
Memory.defaultHeapInstance = heap0;

修改后

/* Create a Heap. */
var heapMemParams = new HeapMem.Params;
heapMemParams.size = 0x8000;
heapMemParams.sectionName = "systemHeapMaster";
var heap0 = HeapMem.create(heapMemParams);
Memory.defaultHeapInstance = heap0;
Program.sectMap["systemHeapMaster"]     = "DDR3";

运行后出错信息

[C66xx_0] 

MCSDK IMAGE PROCESSING DEMONSTRATION

QMSS successfully initialized 
CPPI successfully initialized 
PA successfully initialized 
EVM in StaticIP mode at 192.168.2.100
Set IP address of PC to 192.168.2.101
PASS successfully initialized 
Ethernet subsystem successfully initialized 
Ethernet eventId : 48 and vectId (Interrupt) : 7 
ti.sysbios.heaps.HeapMem: line 294: out of memory: handle=0x8258b8, size=1536
Error allocating memory for Rx data buffer 
Error allocating Rx free descriptors 
Rx setup failed 
Error: Unable to register the EMAC
ti.sysbios.heaps.HeapMem: line 294: out of memory: handle=0x8258b8, size=2048
xdc.runtime.Error.raise: terminating execution

修改的主要目的是开辟更大的systemHeap,用于malloc

恳请高人帮忙,谢谢!


Viewing all articles
Browse latest Browse all 5545