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.

TMS320C6670 评估板NDK报错

我用的是C6670 芯片,在跑NDK的例程时,程序报错了。

[C66xx_0] QMSS successfully initialized 
CPPI successfully initialized 
PA successfully initialized

TCP/IP Stack 'Hello World!' Application


TCP/IP Stack 'Hello World!' Application

PASS successfully initialized 
Ethernet subsystem successfully initialized 
Ethernet eventId : 48 and vectId (Interrupt) : 7 
Timeout waiting for reply from PA to Pa_addMac command
ti.sysbios.heaps.HeapMem: line 367: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution

我从工程师提供的05-KeyStone NETCP PA手册看到PA配置流程:

Step 1: Set up memory:
Pa_getBufferReq()
Pa_create()

Step 2: Initialize PA and load
the firmware:
Pa_resetControl(DISABLE)
Pa_downloadImage()
Pa_resetControl(ENABLE)

PA LLD: Rx Configuration
Step 1: Call PA LLD
configuration or custom
configuration API with routing
information:
Pa_addMac() or
Pa_addIp() or
Pa_addPort()

Step 2: Receive
formatted command
to be sent to PA

Step 3: Send command:
/* Mark as command packet */
Cppi_setPSData()
/* Send command to PA */
QMSS_queuePush()

等等。在例程中res_mgr_init_pass()初始化中 只有到Download_PAFirmware (),后面的过程就没有了。应该从哪里找呢?

还有就是NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr ),不能单步运行,PASS successfully initialized 和Ethernet subsystem successfully initialized  这两个打印内容我不知道从哪儿来的。

还请各位前辈解惑。多谢各位!