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.

DP83640 "C" library with Freescale Kinetis K60

Other Parts Discussed in Thread: DP83640

Hi all, 

I have the DP83640 evaluation board  that I want to use with a Freescale Kinetis K60 uC. I connected this evaluation board to the K60 evaluation board (tower kit TWR-K60F120M) an managed to configure and get working in MII mode with a webserver software example and that seems to work fine. 

Now I have to setupt and use the PTP functionality, so I downloaded the software guide and C reference library.  But I have no clue of how to include that in my code and how to use it.  Some experience in that ?

Thanks 

BR

stephan

  • Stephan,

    As I am sure you can tell from a review of the SDG and the EPL C code reference library, what is provided is not a full IEEE 1588 PTP stack.  Rather, the EPL C code contains the functional blocks that can be used to build up a stack.  How to start the process of building that stack is not a trivial question.

    In the case of the Freescale Kinetis K60 uC, you may be able to leverage some existing collateral from Freescale.  In a quick search, I can see some application notes and forum posts on the Freescale web site related to IEEE 1588 implementations and support using the Kinetis K60. 

    You might try a phased approach, first getting IEEE 1588 functional on the Kinetis K60 using timestamping in the Kinetis MAC and then adapting the stack to use the timestamping capabilities in the DP83640.  I don't have the experience with the K60 to help with the first phase of that, but I can help you integrate the DP83640 capabilities once you get to that phase.

    Patrick

  • Hi Patrick, 

    First, thanks for your reply. 

    I checked the pdf and the files in the library, it seems there is the PTPd stack available no ?

    I saw that freescale have a MQX IEEE 1588 support, but then I will have to mix both code source and that might be difficult. 

    Now I'm still trying to understand what is what and which part of the C library is the "library" and what is only test purpose code (under Windows OS, specific target platform).

    All together gives me headache.

    BR

    stephan

  • Stephan,

    Perhaps it would have been more correct for me to note that the EPL C code reference library is based on the open source PTPd stack, but would require some work to integrate into a full IEEE 1588 implementation.  There are indeed elements of the original PTPd stack in the files provided.  Having had some time to review the collateral more closely, do you have any implementation questions?

    Patrick