Hi!
I'm trying to use FFTC_C of C6670.
But, can not get the handle from Fftc_open(). I got retVal = -2, and hFFTC = 0x00000000.
I enabled FFTC_C module using CSL_PSC_PD_BCP_FFTC_C_TCP3D_C.
FFTC_A and FFTC_B returns handle correctly using the same parameters and initilization except CSL_PSC_PD_FFTC_AB.
My code is as below.
Fftc_DrvHandle hFFTC;
Fftc_RetVal retVal;
Fftc_DrvCfg fftcInitCfg;
UInt8 fftcInstNum;
fftcInstNum = CSL_FFTC_C;
// Initialize driver configuration before use
memset(&fftcInitCfg, 0, sizeof(Fftc_DrvCfg));
// Setup the FFTC Driver Init Descriptor Params
// CPPI library gives all the memory regions in the order of insertion, for now let's assume we got Mem region 0 for Host
fftcInitCfg.cppiNumFreeDescCfg = 1;
fftcInitCfg.cppiFreeDescCfg[0].descMemRegion = Qmss_MemRegion_MEMORY_REGION0;
fftcInitCfg.cppiFreeDescCfg[0].numDesc = NUM_HOST_DESC / (2 * NUM_CORES);
fftcInitCfg.cppiFreeDescCfg[0].descSize = SIZE_HOST_DESC;
fftcInitCfg.cppiFreeDescCfg[0].descType = Cppi_DescType_HOST;
// Setup the descriptors required by this app and open the driver
hFFTC = Fftc_open(fftcInstNum, &fftcInitCfg, &retVal);
Any one knows the solution about this?
Thank you.
Hoon Lee.