Other Parts Discussed in Thread: SYSBIOS
Hello!
I'm developing function that would perform Datapath configuration without CLI util. As a reference I use source code frome ods_point_cloud_68xx_hwa lab. I use SDK 3.3.
I did all the neccessary init and configuration steps up to DPM_int and launching DPM execute task.
I also have successfuly sent DPC_OBJDET_IOCTL__STATIC_PRE_START_COMMON_CFG command and filled StaticCfg and DynCfg of DPC_ObjectDetection_PreStartCfg structure in preparation of sending DPC_OBJDET_IOCTL__STATIC_PRE_START_CFG.
My question is how to fill DPC_ObjectDetection_DPC_IOCTL_preStartCfg_memUsage structure of DPC_ObjectDetection_PreStartCfg? I can't find suggestions about that in documentation.
When I try to hardcode values, discovered during debugging of ods_point_cloud_68xx_hwa lab, I get
ti.sysbios.heaps.HeapMem: line 259: assertion failure: A_zeroBlock: Cannot allocate size 0
xdc.runtime.Error.raise: terminating execution
Here is content of DPC_ObjectDetection_DPC_IOCTL_preStartCfg_memUsage structure of ods_point_cloud_68xx_hwa lab (screenshot) and pease of my code my code:
DPC_ObjectDetection_DPC_IOCTL_preStartCfg_memUsage *memUsage = &preStartCfg.memUsage;
memUsage->L3RamUsage = 134343948; //sizeof(gMmwL3);
memUsage->CoreLocalRamUsage = 134246872; //sizeof(gDPC_ObjDetTCM);
memUsage->SystemHeapTotal = 94871;
memUsage->CoreLocalRamTotal = 0;
memUsage->SystemHeapUsed = 0;
memUsage->SystemHeapDPCUsed = 0;
errCode = DPM_ioctl(dpm, DPC_OBJDET_IOCTL__STATIC_PRE_START_CFG, &preStartCfg, sizeof(DPC_ObjectDetection_PreStartCfg));
___
Denis