owendyung 发表于 2019-3-27 12:08:44

AM5718 IPC

分配大块内存时出现如下问题

owendyung 发表于 2019-3-27 14:30:47

用SI 一路查询到 cmemk.c 中发现在 ioctl 中有关于内存池的分配1888行

case CMEM_IOCGETPOOL:这个选项
并且在 1962行打印出来的这个语句与错误完全一致__E("Failed to find a pool which fits %#llx\n", lreqsize);

飞凌-chongzi 发表于 2019-3-27 14:33:42

ti官网上有个相关的帖子,您看看是否对您有帮助
http://e2e.ti.com/support/processors/f/791/p/590859/2171380#2171380

owendyung 发表于 2019-3-27 14:33:46

    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;
    }
这段是申请内存的函数及参数配置目前任务就是这里出错

owendyung 发表于 2019-3-27 14:41:28

5728和5718 是通用的?
页: [1]
查看完整版本: AM5718 IPC