I am trying to incorporate ACPY3 into my project by following the exmaple of the fastCopy non-algorithm approach. When I call status = DMAN3_createChannels(0, &dmaTab, 1); I always get the error code DMAN3_EOUTOFTCCS. Here is my DMAN3 setup code that is in my .cfg file.
var ACPY3 = xdc.useModule('ti.sdo.fc.acpy3.ACPY3');
var DMAN3 = xdc.useModule('ti.sdo.fc.dman3.DMAN3');
DMAN3.heapInternal = "L1DHEAP";
DMAN3.heapExternal = "EXTERNALHEAP";
DMAN3.paRamBaseIndex = 78;
DMAN3.numPaRamEntries = 48;
DMAN3.nullPaRamIndex = 127;
DMAN3.tccAllocationMaskH = 0xffffffff;
DMAN3.tccAllocationMaskL = 0x0;
DMAN3.numTccGroup = [6, 6, 6, 6, 6, 3];
DMAN3.numPaRamGroup = [6, 6, 6, 6, 6, 6];
DMAN3.qdmaChannels = [0, 1, 2, 3, 4, 5];
DMAN3.maxQdmaChannels = 8;
DMAN3.numQdmaChannels = 6;
For the tccAllocationMasks I have also tried:
DMAN3.tccAllocationMaskL = 0xffffffff;
DMAN3.tccAllocationMaskH = 0x0;
and
DMAN3.tccAllocationMaskH = 0xfff;
DMAN3.tccAllocationMaskL = 0x0;
Upon inspection of the DMAN3_PARAMS struct during runtime I noticed that the numTccGroup array is set to all "." . The numPaRamGroup, however, is set correctly (matches my cfg). I can change numPaRamGroup in the .cfg and runtime and observe the changes but, after everyhting I have tried, I cannot get the numTccGroup array to be anything other than all "." . I am guessing this is why I am getting the DMAN3_EOUTOFTCCS error because there are no TCC's being allocated? Can anyone shed some light on what might be my problem?