This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

VCP2 Intialization and Trying to run 4 Instances with help of interrupt



Hi,

I am using the CCS Version 6.1.0 and TI6630K2L EVM and this is the keystone version that i have C:\ti\pdk_keystone2_3_01_03_06.

We had created a project which we got from the ner as BER.zip, modified to make it work for one VCP instance, and semaphore based. It is working fine.

Now I want to make use of all the 4 VCP instances and also i want to use interrupt based, not the semaphore based. So I did changes according to that as per my knowledge. Now i am unable to verify weather all 4 instances running it parallel or not. To make sure, i tried configuring 4 different lengths to 4 VCPs still the order that i configured that interrupt only i am getting it first.

I am calling VCP2_start((vcp2Handle)) for four times to make 4 VCP's run. Do yo see any issue by calling 4 times

for(instnace = 0; instance <4; instance ++)
if (Vcp2Test(&VcpConfigParms[instance],&VcpConfigIc[instance],(VCP2_UserData *)branch_metrics[instance], decisions[ptrhvcpq->handle_vcp->perNum],output, ptrhvcpq->handle_vcp ))// ptrhvcpq->handle_vcp ))
{
    return 1;
}
/*This is the test function of VCP*/

Uint32 Vcp2Test(VCP2_Params *hVcpConfigParms, VCP2_ConfigIc *hVcpConfigIc, VCP2_UserData *hVcpUserData,
				Uint32* hVcpDecisions ,Uint32* hVcpOutParms,VCP2Handle hVcp2)
{    
  	volatile Uint32 error = 0;
  	volatile Uint32 runStat;
  	EDMA3_DRV_Result result = EDMA3_DRV_SOK;
	vcp2SubmitEdma(hVcpUserData, hVcpConfigParms, hVcpConfigIc, hVcpDecisions,
		          hVcpOutParms, hVcp2);
	/*t6 = CSL_tscRead();
	printf("SubmitEDMA = %ld\n", (t6-t5) );
    
	VCP2_start(hVcp2);
	//Semaphore_pend(CtrlCoreSynchSem, BIOS_WAIT_FOREVER);

	return(error);	    	    	    
        
} /* Vcp2Test */

or
If any one had already made a VCP2 multiple instance Working CCS project created for K2L.
Please share it, I'll understand and merge that changes for my code.
I was stuck here, kindly help to move forward,


Thanks in advance

Sarath Chandra.