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.

RTOS/AM5746: About ”NIMU_BasicExample_idkAM574x_armExampleproject" of PROCESSOR-SDK-RTOS-AM57X

Guru 10235 points
Part Number: AM5746

Tool/software: TI-RTOS

Hello, TI Experts,

 

We have a question about ”NIMU_BasicExample_idkAM574x_armExampleproject" of PROCESSOR-SDK-RTOS-AM57X.

We checked the sample code behavior under below both version pdk.

- pdk_am57xx_1_0_11

- pdk_am57xx_1_0_13

 

We success to run ping operation from PC when both TMDSIDK574(J10) and PC are connected to 100Mbps network by each ethernet cable.

But we failed to run ping operation from PC when both TMDSIDK574(J10) and PC are connected to 10Mbps network by each ethernet cable.

(We'd like also to attach teraterm console logs of pdk_am57xx_1_0_13 case as a reference.)

 

Question:

Do you have same experience?

 

We would appreciate if you tell us how to solve this problem.

(Why this example failed in 10Mbps network case?)

 

Best regards,

--------------------------------------------------------------------------------------
SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

SYS/BIOS Ethernet/IP (CPSW) Sample application, EVM IP address I/F 1: 192.168.1.4
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

 All tests have passed.
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
ENETPHY_FindingState: PhyNum: 0
ENETPHY_FindingState: PhyNum: 1
ENETPHY_DisablePhy(0)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10 
ENETPHY_DisablePhy(1)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10 
--------------------------------------------------------------------------------------
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
Phy: 0, NegMode 01e1, NWAYadvertise 01e1, NWAYREadvertise 41e1
Negotiated connection: FullDuplex 100 Mbs
--------------------------------------------------------------------------------------
 RX |     Good:      16 |   Bcast:       7 |    Mcast:       9 |    Oct:        1718 |
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:      16 |   Bcast:       7 |    Mcast:       9 |    Oct:        1718 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
 RX |     Good:      24 |   Bcast:      15 |    Mcast:       9 |    Oct:        2781 |
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:      24 |   Bcast:      15 |    Mcast:       9 |    Oct:        2781 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
 RX |     Good:      41 |   Bcast:      10 |    Mcast:      31 |    Oct:       11573 |
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:      41 |   Bcast:      10 |    Mcast:      31 |    Oct:       11573 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------
SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

SYS/BIOS Ethernet/IP (CPSW) Sample application, EVM IP address I/F 1: 192.168.1.4
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

 All tests have passed.
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
ENETPHY_FindingState: PhyNum: 0
ENETPHY_FindingState: PhyNum: 1
ENETPHY_DisablePhy(0)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10
ENETPHY_DisablePhy(1)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10
--------------------------------------------------------------------------------------
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 RX |    Pause:       0 |     CRC:       0 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
Phy: 0, NegMode 0020, NWAYadvertise 01e1, NWAYREadvertise 0020
Negotiated connection: HalfDuplex 10 Mbs
--------------------------------------------------------------------------------------
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 RX |    Pause:       0 |     CRC:      54 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 RX |    Pause:       0 |     CRC:      18 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
 RX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 RX |    Pause:       0 |     CRC:       4 | AlignErr:       0 | Oversz:           0 |
 RX |   Jabber:       0 | Undersz:       0 |     Frag:       0 |   Filt:           0 |
 RX |      QoS:       0 |  SOFOvr:       0 |   MOFOvr:       0 | DMAOvr:           0 |
 TX |     Good:       0 |   Bcast:       0 |    Mcast:       0 |    Oct:           0 |
 TX |    Pause:       0 | Deferred:      0 |     Coll:       0 |   Udrn:           0 |
--------------------------------------------------------------------------------------

  • Hi,

    We typically test 1000Mbps with PC, and ping the EVM to see if it worked or not. Let me try to see if 10Mbps work or not and update here.

    Regards, Eric
  • Hi,

    I tested the NIMU_BasicExample_idkAM572x_armExampleproject of Processor SDK RTOS 5.2 release ( pdk_am57xx_1_0_13) on AM572x IDK EVM (this is the same as idkAM574x in Ethernet part), using J10 port.

    On 1Gbps through auto-negotiation, I don't see any problem using ping.

    In the host Windows 7 PC, I changed the link speed to 100 Mbps, ping still worked. Then, I changed to 10 Mbps. The ping failed intermittently. I opened a ticket for this.

    Changing link speed:

    Got link as Negotiated connection: HalfDuplex 10 Mbs

    --------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------
    SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

    SYS/BIOS Ethernet/IP (CPSW) Sample application, EVM IP address I/F 1: 192.168.1.4
    RX | Good: 0 | Bcast: 0 | Mcast: 0 | Oct: 0 |
    SetPhyMode:000021e1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

    All tests have passed.
    RX | Pause: 0 | CRC: 0 | AlignErr: 0 | Oversz: 0 |
    RX | Jabber: 0 | Undersz: 0 | Frag: 0 | Filt: 0 |
    RX | QoS: 0 | SOFOvr: 0 | MOFOvr: 0 | DMAOvr: 0 |
    TX | Good: 0 | Bcast: 0 | Mcast: 0 | Oct: 0 |
    TX | Pause: 0 | Deferred: 0 | Coll: 0 | Udrn: 0 |
    --------------------------------------------------------------------------------------
    ENETPHY_FindingState: PhyNum: 0
    ENETPHY_FindingState: PhyNum: 1
    ENETPHY_DisablePhy(0)
    Enable Phy to negotiate external connection
    NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10
    ENETPHY_DisablePhy(1)
    Enable Phy to negotiate external connection
    NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10
    Phy: 0, NegMode 0020, NWAYadvertise 01e1, NWAYREadvertise 0020
    Negotiated connection: HalfDuplex 10 Mbs
    --------------------------------------------------------------------------------------
    RX | Good: 36 | Bcast: 10 | Mcast: 24 | Oct: 3056 |
    RX | Pause: 0 | CRC: 30 | AlignErr: 0 | Oversz: 0 |
    RX | Jabber: 0 | Undersz: 0 | Frag: 0 | Filt: 0 |
    RX | QoS: 0 | SOFOvr: 0 | MOFOvr: 0 | DMAOvr: 0 |
    TX | Good: 37 | Bcast: 10 | Mcast: 24 | Oct: 3120 |
    TX | Pause: 0 | Deferred: 0 | Coll: 0 | Udrn: 0 |
    --------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------
    RX | Good: 21 | Bcast: 6 | Mcast: 13 | Oct: 1722 |
    RX | Pause: 0 | CRC: 15 | AlignErr: 0 | Oversz: 0 |
    RX | Jabber: 0 | Undersz: 0 | Frag: 0 | Filt: 0 |
    RX | QoS: 0 | SOFOvr: 0 | MOFOvr: 0 | DMAOvr: 0 |
    TX | Good: 21 | Bcast: 6 | Mcast: 13 | Oct: 1722 |
    TX | Pause: 0 | Deferred: 0 | Coll: 0 | Udrn: 0 |
    --------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------
    RX | Good: 5 | Bcast: 3 | Mcast: 0 | Oct: 348 |
    RX | Pause: 0 | CRC: 2 | AlignErr: 0 | Oversz: 0 |
    RX | Jabber: 0 | Undersz: 0 | Frag: 0 | Filt: 0 |
    RX | QoS: 0 | SOFOvr: 0 | MOFOvr: 0 | DMAOvr: 0 |
    TX | Good: 5 | Bcast: 3 | Mcast: 0 | Oct: 348 |
    TX | Pause: 0 | Deferred: 0 | Coll: 0 | Udrn: 0 |
    --------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------
    RX | Good: 11 | Bcast: 9 | Mcast: 1 | Oct: 824 |
    RX | Pause: 0 | CRC: 4 | AlignErr: 0 | Oversz: 0 |
    RX | Jabber: 0 | Undersz: 0 | Frag: 0 | Filt: 0 |
    RX | QoS: 0 | SOFOvr: 0 | MOFOvr: 0 | DMAOvr: 0 |
    TX | Good: 11 | Bcast: 9 | Mcast: 1 | Oct: 824 |
    TX | Pause: 0 | Deferred: 0 | Coll: 0 | Udrn: 0 |
    --------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------

    There is ping loss:

    Regards, Eric

  • Hi,

    Thank you very much for your kindness.

    I really appreciate your help.

     

    We understand you also found to fail to run ping operation of the sample project under 10Mbps network with your EVM.

    We are waiting for your proposal to solve this problem.

     

    Best regards,

  • Hi,

    Status update:
    - issue was reproduced by TI
    - ticket was opened in bug tracking system
    - debug underway by TI engineers, not root caused yet

    Regards, Eric
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.

    We understand the situation.
    We are waiting for the update.

    Best regards,
  • Hi,

     

    Thank you for your help.

    Do you have any update?

     

    Now, our customer is waiting for the answer.

     

    I would appreciate if you tell us about the progress on this.

     

    Best regards,

  • Hi,

    Sorry we are still working on it. This is not necessarily a software bug, need to identify at CPSW switch level if packets dropped first. I will update you.

    Regards, Eric
  • Hi,

     

    Thank you very much for your kindness.

    I really appreciate your help.

     

    We understand the situation.

    We are waiting for the next update.

     

    Best regards,

  • Hi Matusan,

    Our engineer is still looking into the issue and I will update once they have any progress.

    Regards, Eric
  • Hi,

    This issue was recorded in TI internal bug tracking system and was assigned to engineer team to investigate. The fix is preliminarily planned in the PRSDK RTOS 6.0 release (by end of Q2 2019). Please check with that release once is available. I am closing this thread.

    Regards, Eric
  • Hi,

    Thank you very much for your kindness.

    I really appreciate your help.

     

    We'd like to check PRSDK RTOS 6.0 release.

     

    Best regards,

  • Hi,

    We are still working on this issue. We used the AM572/4x IDK EVM directly connected to a host PC, running Windows 7 or Windows 10. Some setup we can reproduce the issue and some can't.

    Can you explain what is your test setup? Is the other side a windows or Linux PC? Did you configure the network adapter to 10Mbps full duplex or 10Mbps half Duplex? I saw your AM574x EVM UART console log showed half Duplex.

    And what is your real usage case with 10Mbps Ethernet? What is connected?

    For the failure we reproduced here, if you still have the setup for quick test. Can you:

    1. Rebuild the NIMU test application by commenting out the app_stats() task. This task periodically query the CPSW statistics then clear it (so we can't see the counters in an accumulated way in CCS).

    #if !defined (NIMU_DUAL_MAC_MODE) && !defined (NIMU_FTP_APP)
    Task_Params_init(&taskParams);
    taskParams.priority = 9;
    taskParams.instance->name = "EmacStats";
    //Task_create(app_stats, &taskParams, NULL);
    #endif

    2. In CCS expression window:

    3. In CCS memory window:

    We looked at the NDK_ICMPIn[8], NDK_ICMPOut[0] and found the In/Out matched each other and the increment matched the ICMP received by PC. NDK_ICMPInErrors and  NDK_ICMPOutErrors are clean.

    The CPSW host port stat showed RX_CRC_ERRORS (address 0x48484910), the increment matched with the number of the ICMP packet not replied.

    Will you see the same behavior? If yes, the issue is not in the NDK/NIMU driver. But maybe underlying PHY issue we continue to debug. 

    Regards, Eric

  • Also, if you can elaborate: will disabling auto negotiation work in customers network environment. Do they always know what is the speed on other end. Use case details which is driving this test or if this is a lab test.

    Regards, Eric
  • Hi,

    Thank you for sending us your situation.

    If we get the feedback from the customer from your message, we would like to post here.

     

    Best regards,