NC_NetStart abort
问题:
Hi, I am running a client example in NDK on evmc6678l. The project abort and the console print:
QMSS successfully initialized
CPPI successfully initialized
PA successfully initialized
TCP/IP Stack Example Client
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 354: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
I debuged and found it's abort at NC_NetStart(), as show below:
do
{
rc = NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr );
} while( rc > 0 );
I never modify the source code which TI provide.
解决方法:
Can you try the following:
- pause the core(s) running the code
- Do a system reset
- Run global default setup from the GEL script
- reload and re-run your program
This will do a SOC reset in-between runs. Without doing an SOC reset, the next program run will take on the previously-initialized hardware settings.
System Reset:
Global Default Setup (note that you must have loaded the GEL script beforehand. Refer to "Loading and Setting up the EVM with the Gel File" section in the GSG http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_Getting_Started_Guide#Use_JTAG_to_Load_the_Application)
Let me know if this works.
来源:oschina
链接:https://my.oschina.net/u/4419414/blog/4275913