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.

关于6670配置Rx flow出错的问题

 在6670中,我在调试运行FFTC_simple_testProject(路径:pdk_c6670_1_0_011/packages/ti/drv/exampleProjects/FFTC_simple_testProject)时,会出现Error configuring Rx flow        Rxflow open failed  ,通过问题跟踪,发现问题在Osal_cppiMalloc ()函数中,在该函数中,在正常情况下SharedRegion_getHeap(0)是不等于空,但是运行时却为空。这里不知道怎么修改。

注:我在运行该工程时在主函数中注释掉Ipc_start();  ,如果不注释掉该语句,代码跑不起来,不知道后面的出错是否与此有关?

我的运行环CCS  ccs_5.0.3.00028         bios_mcsdk_02_00_00_11   

Connection: Texas Instruments Simulator                Code Generation: tools TI v7.2.1

其具体代码如下:    

Void* Osal_cppiMalloc (UInt32 num_bytes)
{
    Error_Block       errorBlock;
    Void*           dataPtr;

    /* Increment the allocation counter. */
    fftcCppiMallocCounter++;

    /* Allocate a buffer from the default HeapMemMp */
    if (SharedRegion_getHeap(0) != NULL)
    {
        dataPtr = Memory_alloc ((xdc_runtime_IHeap_Handle) SharedRegion_getHeap(0), num_bytes, 0, &errorBlock);
    }
    else
    {
#ifdef FFTC_TEST_DEBUG      
       Fftc_osalLog ("CppiAlloc Failed for size: %d \n", num_bytes); 
#endif
         return NULL;
    }

 

 

 

x 出现错误。请重试或与管理员联系。