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.

RMII driver for EMAC

Other Parts Discussed in Thread: AM1808

hi,

I need some information on how to connect with LAN8710 to AM1808 by RMII interface and how to build the driver(just define CONFIG_DA850_UI_RMII in board_da850_evm.c?), thanks .

 

regards,

pan

  • Power,

     

     Could you please provide a little more detail in regards to which platforms you are currently working with (both hardware and software). Otherwise, we may not be able to provide an answer that will help you out.

  • Hi, Drew:

    hardware platform: AM1808, software is the latest SDK 4.0.0.1.

     

    regards,

    Pan

  • Power,

         I'm not familiar with the SDK code, however did you follow the steps in the SDK user's Guide for cross platform compilation utilizing the code generation tools form CodeSourcery? You might have to look around at the #defines around the EMAC code and also in the CCS pre-define symbols to determine what needs to be defined to recompile the RMII code.

  • Hi, Drew,

    I don't have any reference design in schematic, nor I could setup the driver for RMII(I could guess but not sure), please advise.

    regards,

    Power

  • Power,

     

       I'm not sure what you mean by:

    Power Pan said:
    I don't have any reference design in schematic

     

    Where the the reference design that you posted come from?

     

    Unfortunately, I will be unable to provide any sight into the code since I didn't write it nor am I familiar with it. I would be guessing as well.

  • Hi, Drew

    the schematic is not from reference but by datasheet and modified by our team. just wanna confirm if it's working or not.

    regards,

    Power Pan

  • Pan, 

     Ok - so you've designed a custom board with the AM1808 with a ethernet phy chip(of which the schematic you've posted) and you want to know how to enable the driver (based on a reference design) to work on your custom  board?

  • yes, please help. thanks

  • Power,

        Since you are working with a custom board, but only shared part of your schematic, you will have to edit the driver to make sure the corresponding PHY signals are connected to your PHY chip. I cannot tell you exactly how to do this, because I don't know how the rest of your schematic is configured.

       You will probably need to go into the driver and determine how the signals are mapped to the corresponding pins, and then reconfigure the driver to work with your custom board. If the custom board isn't configured in the exact same way as the reference board of which the driver was written for, this might require heavy modification / recompilation of the driver code.

  • Drew:

    thanks for the reply. the define is not missing any include file and the compiler reported error but still could generate .out file, please explain.

    I could use :

    extern U_int32 something to disable the error but that's original PSP I downloaded, how come the errors pop up?

     

    Power

  • Pan,

     

       If the compiler reported an error, I don't believe it will generator a .out file. Are you sure it wasn't a warning?

    Also - if you can list the errors so we can have some insight on your issue that would be helpful and might give us some insight on your issue.

  • Power,

    Your RMII on am1808 can work propelry now?

    Now I also need use RMII interface to drive LAN8720A on am1808. can you please help to let me know where I need modify on U-BOOT and linux kernel?

    thanks!