使用\K1_STK_v1.1\GE,并对PHY芯片配置做了一些修改,该工程能跑通,连接电脑
测试结果如上。看起来没问题吧?
现在需要把我们的配置整合到NDK的helloWorld中,请问应该插入到哪里?
谢谢!
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.
使用\K1_STK_v1.1\GE,并对PHY芯片配置做了一些修改,该工程能跑通,连接电脑
测试结果如上。看起来没问题吧?
现在需要把我们的配置整合到NDK的helloWorld中,请问应该插入到哪里?
谢谢!
在:
\mcsdk_2_01_02_06\examples\ndk\helloWorld
中,
在helloWorld.c文件中,在main函数执行之前,将调用void EVM_init()函数,
该 EVM_init函数将调用platform_init函数(来自文件:\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\src\platform.c)
platform_init函数关于网络的部分代码为:
if (p_flags->phy) {
configSerdes();
// Init_SGMII(0);
Init_SGMII(1);
}
configSerdes和SGMII函数在\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\src\evmc6678_phy.c文件。
这一块和之前的我们6455用的ndk_2_0_0_0不一样
我在考虑把我们的配置整合到platform_init()函数之前,还是之后???
谢谢!