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使用Broadcom PHY芯片,请问如何把PHY寄存器配置整合到NDK的helloWorld中?

Other Parts Discussed in Thread: CCSTUDIO

使用\K1_STK_v1.1\GE,并对PHY芯片配置做了一些修改,该工程能跑通,连接电脑

测试结果如上。看起来没问题吧?

现在需要把我们的配置整合到NDK的helloWorld中,请问应该插入到哪里?

谢谢!

  • 请问有没有参考过下面的网站?
    http://processors.wiki.ti.com/index.php/Guidelines_when_porting_NDK_to_different_PHYs

  • 之前没有见过,十分感谢!!!

    我们试一下。

  • 在:

    \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()函数之前,还是之后???

    谢谢!

  • 几年前我们使用6455+Broadcom BCM5464R,直接使用\CCStudio_v3.3\ndk_2_0_0_0,运行没有问题,没有修改网络相关部分,基于helloWorld开发的我们的应用工程。

    现在还是BCM5464R,我看到6455是RGMII接口,但是6678是SGMII接口。现在用的是mcsdk_2_01_02_06,CCS7

    CCS7还支持CCS3.3的ndk_2_0_0_0吗?

  • 我看了

    ndk_2_0_0_0\packages\ti\ndk\lib

    只有:

    C64plus、C6400、hal三个文件夹,不支持6678吧?