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.

TDA4VM: CPSW2G&CPSW9G Question

Part Number: TDA4VM

Hi TI Professor

        I am develop an autosar appliction in MCU Domain,

        I use mcusw as mcal and use EthDrv provided by TI SDK7.3

        I need to use MCU CPSW2G as MAC1 and  it's MDIO to manage my PHY

        Also I need to control another PHY and our Hardware engineer connect the PHY‘s MDIO to the MDIO(MAIN).

        I find that in TI MCAL EB Tresos configuration Tool,I can only use CPSW2G or CPSW9G.

       In this Use case is this means in mcu domain project ,I can not use MDIO(Main) function

       Thanks

  • Hello,

    Just to clarify, are you asking if there is support from the MCAL Ethernet driver for the Main domain CPSW?

    Regards,

    Erick

  • Hi Sir

          Sorry for a long-time-delay reply,

          Yes,In Mcu 1_0 Domain core,I am using MCAL for CPSW to control CPSW2G,

          And I still want to control CPSW for MainDomain in the same CORE(MCU 1_0)

          Thanks~

  • Short answer is: no, MCAL Eth driver (MCU domain) can't control MDIO in Main domain.

    MCAL Eth native driver supports CPSW2G and its MDIO. So, you can control any PHY as long as it's connected to the MDIO in MCU domain. MDIO itself is not restricted to single PHY, but in practice, only one PHY is connected to this MDIO bus as CPSW2G has a single MAC port.

    CPSW9G (and its MDIO) is controlled by Ethernet Firmware in TI SDK. It's not possible to control it from MCAL Eth driver. I'd suggest to stick with the Ethernet Firmware approach.

    Ethernet Firmware supports MCAL Virtual MAC client for AUTOSAR core. This is a virtual Ethernet interface where remote clients can send/receive packets but ownership of CPSW9G/MDIO configuration is with Ethernet Firmware running natively on a dedicated R5F core.

    Documentation here: software-dl.ti.com/.../ethfw_c_ug_top.html

    Hope this helps.

    -Misa