I'm learning the VCP2 of TMS320C6670, I have two questions:
1、In the datasheet SPRS689D: XEVNT is 11; REVNT is 10(page152 ).
In the document SPRUGV6A: XEVNT is 29; REVNT is 28(page 50).
Then, which one is right?
2、I have completed the VCP2 code of 6670, by imitating the code of TMS320C6474.
Firstly, I load the "6670.gel" for open the PSC of VCP2 in emulator , then run the code.
I think , after run the line "VCP2_start (hVcp2);", the content of "vcpConfig" should be copied to "vcpConfig111",
but , only the vcp status reg turned to "waiting for IC transmission", The EDMA3 hadn't work :
The main code(I want to use VCP2_A):
main{
VCP2_ConfigIc vcpConfig;
VCP2_ConfigIc vcpConfig111;//for test XEVNT
VCP2_genParams (&vcpBaseParams, &vcpParams);
VCP2_genIc (&vcpParams, &vcpConfig);
vcp2_configEdma (inputBM, outputHD);
VCP2_setPacked32Endian (hVcp2);
VCP2_reset (hVcp2);
VCP2_emuDisable (hVcp2);
VCP2_start (hVcp2);
}
Uint16 vcp2_configEdma ( Uint32 inputBM, Uint32 outputHD)
{
CSL_edma3Init (&context);
hModule = CSL_edma3Open (&edmaObj, 2, NULL, &status);
chParam.regionNum = CSL_EDMA3_REGION_GLOBAL;
chParam.chaNum = 11; //CSL_EDMA3_CHA_VCP2XEVT :11
hChannel = CSL_edma3ChannelOpen (&ChObj, 2, &chParam, &chStatus);
CSL_edma3HwChannelSetupParam (hChannel, 0);
CSL_SOK != CSL_edma3HwChannelSetupQue (hChannel, CSL_EDMA3_QUE_0);
hParam[0] = CSL_edma3GetParamHandle (hChannel, 0, &status);
hParam[1] = CSL_edma3GetParamHandle (hChannel, 1, &status);
hParam[2] = CSL_edma3GetParamHandle (hChannel1,2, &status);
hParam[3] = CSL_edma3GetParamHandle (hChannel1,3, &status);
// set The Param 0 of CC2 for copy vcpConfig to vcpConfig111......
CSL_edma3ParamSetup (hParam[0], &myParamSetup);
//set linking ......
..........
}