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.

Can not get the FFTC_C handle

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.

  • I tried to just change FFTC_A to FFTC_C of Madhu's reference project(posted at May 22, 2012. 07:27 AM, 5127.FFTC_TI_21MAY12.rar) on the EVM board with big-endian

    For FFTC_A, it runs ok.

    But for FFTC_C, Fftc_open() returns -2.

     

  • Hi Lee,

    I built the FFTC_Simple_testProject in the MCSDK package (mcsdk_2_01_00_03) and modified the FFTC_A instance to FFTC_C instance. After the modification I was able to successfully get a valid handle hFFTC from Fftc_open();  

    Can you please verify if all the references to CSL_FFTC_A in the code have been replaced with CSL_FFTC_C? Also, can you make sure the PSC has been properly enabled. I'm attaching the modified test_main.c file for your reference. 

    Regards,

    Arun

  • Arun,

    Thank you for exact direction.

    I did system_deInit() unintentionally during initializing FFTC and BCP simultaneously.

    Thanks.