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.

6678关于运行hua_evm6678l 例程的相关问题



您好,

新做的板子,

问题1:在跑hua_evm6678l 例程的时候为什么platform_init(&sFlags, &sConfig);这个函数通不过。

以下是该例程初始化的配置值

sFlags.pll = 0; /* PLLs for clocking */
sFlags.ddr = 0; /* External memory */
sFlags.tcsl = 1; /* Time stamp counter */
sFlags.phy = 1; /* Ethernet */
sFlags.ecc = 0; /* Memory ECC */

sConfig.pllm = 0; /* Use libraries default clock divisor */

从上述看该初始化函数只做了PHY的初始化,查看源码,它只做了如下工作

/* Save frequency, its needed by platform_delay */
if(!platform_mcb.frequency) {
platform_mcb.frequency = platform_get_frequency();
}
PowerUpDomains();

if (p_flags->phy) {
configSerdes();
// Init_SGMII(0);
Init_SGMII(1);
}

这些操作与是否在评估板上运行有什么影响吗?

问题2:在跑hua_evm6678l 例程的时候为什么

do
{
rc = NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr );
} while( rc > 0 );

这个函数通不过。

运行NC_NetStart,程序一直处于running状态,点击暂停,出现如下错误:

C66xx_0: Trouble Halting Target CPU: (Error -1202 @ 0x0) Device core is hung. The debugger will attempt to force the device to a ready state to recover debug control. Your application's state will be corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 5.1.232.0) 

请问这是什么原因呢?

谢谢!