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.

TDA2E: Configure NDK for 1 Gbps

Part Number: TDA2E

Hi,

I have used client application and used TI NDK package for default network bandwidth.What will be the changes required to configure the

network bandwidth to 1 Gbps.Are there any examples in Vision SDK in which network bandwidth of 1 gbps is already supported.

Regards

Mayank

  • Hi, Mayank,

    VSDK experts have been notified. They will reply directly here.

    Regards,
    Mariya
  • Hi,

    On reading the Tda2x datasheet i got the following info:

    G/MII Interface can operate only in MII Mode.
    • In MII Mode (100/10 Mbps): GMAC_SW operates in full-duplex and half-duplex

    The 3-port switch (GMAC_SW) Ethernet Subsystem has two 10/100/1000 Ethernet ports with selectable
    MII, RMII, and RGMII interfaces.
    The interface mode is selected by configuring the MII mode selection register bitfields (GMII1_SEL and
    GMII2_SEL) in the control module. See Section 18.5, Control Module Register Manual for details


    24.10.4.3.2.2 RGMII Interface Clocking
    RGMII_RXC, RGMII_TXC frequencies are:
    • 2.5 MHz at 10 Mbps
    • 25 MHz at 100 Mbps
    • 125 MHz at 1000 Mbps

    Also in the following post:
    e2e.ti.com/.../518068

    Steve Connell has mentioned in one of the replies:
    Usually there is some register configuration that's done in the driver to set the link speed.

    Please guide me the changes to be done in NDK,NSP driver/register configuration/settings to change the network bandwidth from 100 mbps to 1gbps(1000 mbps).

    Regards
    Mayank
  • Hello Mayank,

    If you are using NSP client example you dont need to change anything for 1Gbps link. The client example is configured for auto-negotiation so link speed will be selected depending on the max speed supported by both TDA2e and your network (switch/router)

    Please connect 1Gbps link directly and you should be able to get it working.

    If not please share what version of NSP you are using, the revision of TDA2ex EVM and client example CCS log.
  • Hi Prasad,

    Thanks for your mail.
    We have our own customised application and we have our own PHY that we have configured to work with NDK,NSP frm TI on TDA2xx based board.Right now we are configuring the above set up for 100 mpbs ethernet bandwidth speed.
    If in above set up i want to get the ethernet bandwidth to 1 gbps what all register settings we need to change.

    Regards
    Mayank
  • Mayank,

    What version of NSP you are using?

    The client application in NSP has vayu_init.c file in which GMACSW_getConfig is defined. In this function check what is mac connection type you are setting.

    pGMACSWConfig->macInitCfg[i].macConnectionType = ?; 

    Ideally you should set this connection type to "detect inband" so MAC can work with any link speeds. But if your PHY has limitation set above to 1000_FULL mode to get 1Gbps working.

  • Hi Prasad,

    Thanks for your mail.

    Right now for 100mbps ethernet speed:

    pGMACSWConfig->macInitCfg[i].macConnectionType = MAC_CONNECTION_TYPE_RGMII_FORCE_100_FULL

    is configured as given above.

    From the phy datasheet it is written the following points:

    1.Single chip 10/100/1000 Mbps IEEE 802.3 compliant ethernet transreceiver.
    2.Auto negotiation to select the highest link up speed(10/100/1000) mbps and duplex(half/full).

    You are suggesting to configure the macConnectionType to
    MAC_CONNECTION_TYPE_RGMII_DETECT_INBAND

    to get the link speed to 1000 Mbps.

    Apart from the above change what all changes are required to configure the ethernet speed to 1000 mbps.

    Thanks for helping me.

    Best Regards
    Mayank
  • Mayank,

    This alone change should be enough.

    If this doesnt work then change connection type to 1000_FULL.
  • Hi Prasad,

    Thanks for your mail.I made the above change but after that i am getting the following log in CCS console:

    Negotiated connection: FullDuplex 1000 Mbs
    but i am not able to ping the ecu.As of now i am trying to run modified client application for our tda2xx based ecu and phy.
    Are there any settings that i have to do in linux machine from where i am trying to ping the ecu.
    Is that the only change required to configure the 1 gbps link.

    Regards
    Mayank
  • Mayank,

    As Linux PC is able to negotiate connection at 1Gbps there is no change needed at PC end.

    I think the TDA2e or PHY is dropping packets. Can you please send PHY datasheet link and contents of registers 0x4848_4900 to 0x4848_498C?

     This should tell us if any packets received on TDA2e.

  • Hi Prasad,

    I am running modified client application on customised TDA2XX with third party PHY.

    Please find below the following attachments:

    1.ccs console output when the client application is run:

    2.Registers  0x4848500c onwards:

    3.Registers 0x48484900 onwards:

    Please also find the PHY data sheet link below:

    ww1.microchip.com/.../ksz9021rl-rn_ds.pdf

  • Ok, this explains. If you see register 0x4848_4910 (CRC errors) it is non-zero, so basically there is issue with PHY configuration IO delays and so it doesnt give correct data to TDA2E.
    Can you please check in PHY data manual if there any delay setting for Gbps link?
    Also do you comment out PHY delay configuration from vayu_init() function?
  • Hi Prasad,

    I modified the task delays in gmac configuration and instead of MAC_CONNECTION_TYPE_RGMII_FORCE_1000_FULL i put

    MAC_CONNECTION_TYPE_RGMII_DETECT_INBAND as pGMACSWConfig->macInitCfg[i].macConnectionType.After that please

    find the register configuration(0x48484900) attached wi th this:

  • Mayank,

    Let it run for some time and then share register log and please share console log too.

    Also you commenting out vayu_init() function? Please add return at the start on this function so not to execute anything from here.

    Is it possible to share PHY data manual? If it is not available publicly you can mail it on mail id.
  • Hi Prasad,

    Please find the PHY link below:

    ww1.microchip.com/.../ksz9021rl-rn_ds.pdf

    Please also tell if there are any registers that i check to make sure if data is ethernet link is established at 100 Mbps or 1000 Mbps.

    Regards,
    Mayank
  • Hi Mayank,

    You can read the connection speed in MAC register SL_MACCONTROL.

    0x4848 4D84  for Port1
    0x4848 4DC4  for Port2

    bit 7 = 1 indicates Gigabit link.

    Regards,

    Stan