AM5718 IPC
分配大块内存时出现如下问题用SI 一路查询到 cmemk.c 中发现在 ioctl 中有关于内存池的分配1888行
case CMEM_IOCGETPOOL:这个选项
并且在 1962行打印出来的这个语句与错误完全一致__E("Failed to find a pool which fits %#llx\n", lreqsize);
ti官网上有个相关的帖子,您看看是否对您有帮助
http://e2e.ti.com/support/processors/f/791/p/590859/2171380#2171380 cmemAttrs.type = CMEM_POOL;
cmemAttrs.flags = CMEM_NONCACHED;
cmemAttrs.alignment = 0;
Module.intPtr = (UInt32 *)CMEM_alloc(sizeof(UInt32), &cmemAttrs);
if (Module.intPtr < 0) {
printf("GateMPApp_create: Could not allocate CMEM shared memory\n");
status = GATEMPAPP_E_FAILURE;
goto leave;
}
这段是申请内存的函数及参数配置目前任务就是这里出错 5728和5718 是通用的?
页:
[1]