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.

AM2634-Q1: How to use DP83822 driver instead of DP83869 for Ethernet (RMII)

Part Number: AM2634-Q1
Other Parts Discussed in Thread: DP83869

Tool/software:

Hi Teams,

I want to DP83822 PHY for Ethernet (RMII) instead of DP83869 PHY, Can you please guide me how can i use that

  • Hi Swati,

    You can get the driver files from: github.com/.../rtos_drivers

    You can follow this guide for integration: e2e.ti.com/.../faq-am2634-integration-of-phy-driver-on-custom-board

    Regards,
    Shaunak

  • Hi Shaunak,

    I am using this SDK Version mcu_plus_sdk_am263x_09_02_00_55  and the process you define it's already given their but when i run the command for build the SDK library i am getting this error

    And also can you guide me to verify this port configuration in my project means what should i do to verify this, I need basic guidance for this

  • Hi Swati,

    If you read the error logs, it says that the CSS 1270 (CCS 12.70) is missing. My guess is you are using some other version of CCS other than v12.70. You can either install CCS 12.70 or got to “import.mak” file in the SDK and replace all the references of “1270” to whatever CCS version you have. For example if you have CCS 12.71, then in the import.mak file, replace the “1270” with “1271” throughout the file.

    To verify if you have correctly integrated the PHY on your custom board, get your layout reviewed by our hardware team. And at your end, try to read the basic PHY registers such as BMSR, BMCR. Read about it in the guide below:

    www.ti.com/.../dp83822h.pdf

    Regards,

    Shaunak

  • I import the driver and it's compiled successfully in CCS(Version: 12.5.0.00007) using this SDK (mcu_plus_sdk_am263x_09_02_00_55).

    Now i want to use this driver and lwip integration also, So please guide me regarding this.

    Yes we will verify our schematic once it's get complete. Before that we have to build our driver and application.

    Can we follow the same step which are using for RGMII(Evaluation Board) to initialize the driver and lwip network stack

  • Hi,

    I import the driver and it's compiled successfully in CCS(Version: 12.5.0.00007) using this SDK (mcu_plus_sdk_am263x_09_02_00_55).

    Yes, you would either need CCS 12.70 OR need to change the path in import.mak file to the CCS 1250 folder as suggested in previous reply for the build commands to pass in command line interface.

    There will be no changes related to LwIP for PHY migration and RMII config.

    In your Application, you will need to make the following changes for RMII instead of RGMII.

    1. Inside the EnetApp_initLinkArgs function, make sure the "phyCfg" is correct (the phyAddr, isStrapped, loopbackEn, extended config etc) according to your custom configurations.

    2. In the same function, the mii struct will have some parameters such as layerType, sublayerType, speed etc, configure them as follows for RMII with 100M:

    mii->layerType     = ENET_MAC_LAYER_MII;
    mii->sublayerType  = ENET_MAC_SUBLAYER_REDUCED;
    mii->variantType   = ENET_MAC_VARIANT_NONE;
    linkCfg->speed     = ENET_SPEED_100MBIT;
    linkCfg->duplexity = ENET_DUPLEX_AUTO;

    Best Regards,
    Shaunak

  • Hi Shaunak,

    Actually i tried to find this function in my program i didn't find the exactly this EnetApp_initLinkArgs function and this mii structure can you please identify in which file i can exactly find this

  • Hi Swati,

    The function will be a part of app_cpswconfighandler.c (im guessing you are using the UDP LwIP example in the SDK from our previous conversations).

    And the structure is: 

    EnetMacPort_Interface *mii = &linkArgs->mii;
    Regards,
    Shaunak
  • Hi Shaunak,

    I am using Empty project and in that project i initialize Ethernet as per you guidance  

  • Hi Swati,

    We always recommend taking an existing example which is closest to your use-case and then making modifications.

    I would like to know how are you initializing the Ethernet driver and CPSW in an empty project? Only adding Syscfg Enet CPSW won't configure everything for your application You do need to port the config related files by referring to other examples. I guess your use-case was related to UDP, I recommend understanding the LwIP UDP Client example, have the config files ported to your empty project and then checking if the driver is UP, MAC ports are up.

    I would suggest to go through the code for an example , understand the code-flow, how the code initializes the hardware, what the important APIs are, and then start development.

    Regards,
    Shaunak

  • Hi Shaunak,

    Thank You so much for your support and time. This really helps me alot.

  • Hi Shaunak,

    i have a query like, you said "To verify if you have correctly integrated the PHY on your custom board, get your layout reviewed by our hardware team."  but our data is confidential so, i can't share my data here directly can you please provide me any mail or any other alternative of this. 

  • Hi Swati,

    You can raise a new E2E for it.

    Regards,
    Shaunak