在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;
]