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.

C6670 NDK中helloworld工程中以太网链路初始化的问题

大家好,

发这个帖子,主要是想问一下,C6670 NDK中helloworld工程中,在什么位置对以太网链路进行了初始化。比如SGMII serdes PLL、SGMII工作在10M/100M还是1000M的、是auto-negotiation还是强制的设置等等。

在调试NDK helloworld工程时,加断点,当程序执行

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

正常会打印如下几行信息:

[C66xx_0] PASS successfully initialized 
[C66xx_0] Ethernet subsystem successfully initialized 
[C66xx_0] Ethernet eventId : 48 and vectId (Interrupt) : 7 
[C66xx_0] Registration of the EMAC Successful, waiting for link up ..

....等等

感觉这里是对以太网链路进行了初始化,可是怎么搜也搜不到'Ethernet subsystem initialization successfully'这样的文字。

希望得到各位帮助!

  • Hi, 您好!

     

    是在EVM_init() - > platform_init() 里做的

     platform.c / platform_init()可以在PDK的安装目录下搜索到,您可以看到初始化的代码

    谢谢!

  • 已经找到,谢谢!

  • 你好,为什么我在pdk中找不到platform.c文件 我安装的是BIOS-MCSDK_2.1.2.5 后来我又安装了 BIOS-MCSDK_2.1.2.6 发现也没有这个文件

    我运行platform_test_evmc6678l例程 运行到platform_init函数时就会出现

    Can't find a source file at "/home/gtbldadm/ti/pdk_C6678_1_1_2_5/packages/ti/platform/evmc6678l/platform_lib/Debug/../src/platform.c"

    然后我自己在电脑里也的确找不到这个文件。

  • 你好,在BIOS上配置NDK ?Q175611453,加下交流可以吗?

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