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.

NDK transplant on C6657?

HI,all:

hardware:6657,software:CCS5.4,ndk_2_22_02_16

I have some questions:

1.In the example C:\ti\mcsdk_2_01_02_06\examples\ndk\helloWorld,where initialize EMAC and PHY in program? is the function platform_init?

2.for our company customization 'board,it has a two'port PHY,our engineers had initialize the EMAC and PHY successful(wiitout NDK),and communication with wireshark on PC,how can I make the NDK associate with the EMAC and PHY'code?

I had no idea,can you give me some suggestion,Thank you!!!

  • PHY is initialized by platform_init, see function: C:\ti\pdk_C6657_1_1_2_6\packages\ti\platform\evmc6657l\platform_lib\src\platform.c, Platform_STATUS platform_init()

    EMAC is however initialized by NIMU driver: C:\ti\pdk_C6657_1_1_2_6\packages\ti\transport\ndk\nimu\nimu_eth.c, static int EmacInit (STKEVENT_Handle hEvent)

    Regards, Eric

  • Hi,Eric:

               Thanks for your reply!!!

                For the second question upper, I don't knok how to transplant the customization' EMAC and PHY initialized code to the NDK,could you give me some details?


                Best regards

                     Atower

  • If you want to use NDK on C6657, you don't need to worry about the EMAC initialization. Inside the NDK client or helloworld project, there is a .cfg file which has

    var NdkTransport = xdc.loadPackage('ti.transport.ndk');

    var EmacLLD = xdc.loadPackage('ti.drv.emac');

    It added the NIMU/EMAC library for the intialization.

    If you don't want to use NDK, you look at the EMAC test projects under C:\ti\pdk_C6657_1_1_2_6\packages\ti\drv\exampleProjects.

    Regards, Eric

  • Thank you, Eric