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.

Configuration of EMAC and MDIO modules for c6748

Other Parts Discussed in Thread: OMAPL138, AM1808

Hello,

emac.h, mdio.h and lan8710a.h have bunch of APIs in them however their input arguements in the function prototypes are hard to understand. Such as base address to input/output frequencies for mdio. Infact where can i get detailed description for the APIs provided on the page ".

thanks!

  • Hi,
    Axay Rana said:
    emac.h, mdio.h and lan8710a.h have bunch of APIs in them however their input arguements in the function prototypes are hard to understand.


    Able to see the description of the input parameters in the corresponding *.c source files, "emac.c", "mdio.c" and "lan8710a.c" in which the function definition itself exists. You can refer to it which will give you clear explanation.
  • Could you please explain me MDIOInit bit more? i don't know what i should put into MDIOinput frequency and MDIOoutput frequency.
  • Hi Axay,
    Can you refer to this source file ?
    C:\ti\OMAPL138_StarterWare_1_10_04_01\third_party\lwip-1.3.2\ports\am1808\netif

    /* MDIO input and output frequencies in Hz */
    #define MDIO_FREQ_INPUT 75000000
    #define MDIO_FREQ_OUTPUT 1000000

    MDIOInit(sitaraif->mdio_base, MDIO_FREQ_INPUT, MDIO_FREQ_OUTPUT);

    Also, we don't have example based on "MDIOInit" but some reference like above.
    Check the EMAC/MDIO clocking and MDIO registers (CLKDIV) in OMAPL138 TRM guide (spruh77a).

    15-0 CLKDIV 0-FFFFh Clock Divider bits. This field specifies the division ratio between the peripheral clock
    and the frequency of MDIO_CLK. MDIO_CLK is disabled when CLKDIV is
  • Hi Shankari,

    I want to implement communication by ethernet with phy of lan8710a (similar to lcdkc6748) and utilize RMII as communication in the DSP TMSC6748.

    Could you please guide me if you have any experience with Ethernet communication.

    Please!
  • Hi Axay,
    We have NDK examples (network stack) from NSP package.
    C:\ti\nsp_1_10_00_03\packages\ti\ndk\examples

    Starterware ethernet examples:
    C:\ti\OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\enet_echo
    C:\ti\OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\enet_lwip
  • Shankari,

    Those examples are ok. I saw them however i can't use them as i have RMII interfacing and they are only linked for the LCDKOMAP138 kit. It's very hard to manipulate them for the custom board which is almost copy of the LCDKC6748 DK.

    Though, i am following literature SPRUFL5B file and setting up my emac control, emac and mdio initialization.
  • Hi Axay,

    Once you succeed in your attempt, please post your suggestions.
    So that, it will useful for future community members.
  • Hello Shankari,

    I am still messing with the enet_lwip example and i can't get ping or echo requests. I see that my phy is having link and autoneg, results are achieved and rxgoodframes register is also increasing as i request it from pc but its not able to respond to PC.

    Do you have any idea?
  • Hi Axay,
    Can you please follow up with this post since we have addressed the actual question of this post?
    e2e.ti.com/.../489626