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: tda4 mcusw eth_app polling mode error

Part Number: TDA4VM

hello:

     As i use psdk_rtos_auto_j7_07_00_00_11/mcusw\mcal_drv\mcal\examples\Eth  eth_app (hardware:tda4 evm) in defualt mode,all test case passed. Then I change to polling mode:

#define ETH_ENABLE_TX_INTERRUPT        (STD_OFF)
#define ETH_ENABLE_RX_INTERRUPT        (STD_OFF)
Some test case failed and some log like this:

-----------------------------------------------------------
test_0001: START
Receive Test Results:
Status: Fail
Requested: 0
Received: 2004
Indicated: 1003
Experimental 1: 1000
Experimental 2: 0
VLAN tagged: 0
Receive errors: 268875
EtherType errors: 2
Payload errors: 0
Controller idx errors: 0
DEM errors: 0
DET errors: 0

test_0001: failed while receiving frames
test_0001: received 1000 of 1000 frames
test_0001: END
Test Result: Fail

can you give me some advice? Thanks!

  • This test (0001) essentially reads frames from host until a "test end" frame is received. The test expects to receive 1000 frames, which it did.

    "Receive errors" which should be zero, actually means, the number of times that the target-side application tried to read a frame and none was available. This could very well happen under normal circumstances (i.e. host side not sending packets continuously).

    "EtherType errors" should also be zero. All 1000 receive packets should have an experimental EtherType, so if it's something else, it would be flagged here. A value different than zero means that the test application on the host side could have already moved on to the next test.

    So, to narrow down the issue, could you run only test_0001 on both sides? There is a "testFuncs" array in the host (HostApp.c) and target side (EthApp.c) applications, make sure that only test_0001 is there, comment out the others. Please retest and share the host and target side logs.

  • Hi:

        I modified test examples("testFuncs" array in the host (HostApp.c) and target side (EthApp.c) applications, only test_0001 is there) ,and the logs shown below:

    target side:

    Eth Application build date/time: Jan 21 2021, 14:07:16
    Eth Application Starts
    MAC Port 1 Address: 78:db:2f:e5:74:f4
    EthTrcv mode: ACTIVE
    EthTrcv link state: Up
    EthTrcv baud rate: 1000Mbps
    EthTrcv duplexity: Full
    EthIf_TrcvModeIndication: Active


    -----------------------------------------------------------
    test_0001: START
    Receive Test Results:
    Status: Fail
    Requested: 0
    Received: 2005
    Indicated: 1004
    Experimental 1: 1000
    Experimental 2: 0
    VLAN tagged: 0
    Receive errors: 267673
    EtherType errors: 3
    Payload errors: 0
    Controller idx errors: 0
    DEM errors: 0
    DET errors: 0

    test_0001: failed while receiving frames
    test_0001: received 1000 of 1000 frames
    test_0001: END
    Test Result: Fail
    -----------------------------------------------------------

    ----------------------------
    Controller 0 Counters
    ----------------------------
    Buffer overruns : 0
    CRC errors : 0
    Undersize packets : 0
    Oversized packets : 0
    Alignment errors : 0
    SQE errors : -1
    Discarded inbound : -1
    Erroneous inbound : 0
    Discarded outbound: -1
    Erroneous outbound: 0
    Single collision : 0
    Multiple collision: 0
    Deferred transm : 0
    Late collisions : 0
    Excessive colls : 0
    Carrier loss : 0
    ----------------------------
    Controller 0 Rx Statistics
    ----------------------------
    Rx Drop Events : 6
    Rx Octets : 104790
    Rx Packets : 1020
    Rx Bcast Packets : 6
    Rx Mcast Packets : 4
    Rx CRC/Align Errors : 0
    Rx Undersized Packets: 0
    Rx Oversized Packets : 0
    Rx Fragments : 0
    Rx Jabbers : 0
    Rx Collisions : -1
    Rx 64 bytes or less Packets : -1
    Rx 65 to 127 bytes Packets : -1
    Rx 128 to 255 bytes Packets : -1
    Rx 256 to 511 bytes Packets : -1
    Rx 512 to 1023 bytes Packets : -1
    Rx 1024 to 1518 bytes Packets : -1
    Rx Unicast Packets : 1000
    ----------------------------
    Controller 0 Tx Statistics
    ----------------------------
    Tx Num octets : 128
    Tx No Unicast Packets : 2
    Tx Unicast Packets : 0
    --------------------------------
    Controller 0 Tx Error Counters
    --------------------------------
    Tx Deferred transm : 0
    Tx Single collisions : 0
    Tx Multiple collisions : 0
    Tx Late collisions : 0
    Tx Excessive collisions : 0
    ETH Stack Usage: 1768 bytes
    Eth Application Completed

    host side:

    waiting for DUT..

    DUT detected: 78:db:2f:e5:74:f4

    -------------------------------------------------------------

    test_0001: START

    test_0001: transmitted 1000 of 1000 frames

    test_0001: END

    Test Tesult: Pass

    ---------------------------------------------------------------

  • Hi:

       For the above tests, the PC side uses Ubuntu 18.04。After I replaced the system with Ubuntu 16.04, the test result still failed. The content of the log is different。Please help me to confirm whether this situation is normal.

    log:

    Eth Application build date/time: Jan 21 2021, 14:07:16
    Eth Application Starts
    MAC Port 1 Address: 78:db:2f:e5:74:f4
    EthTrcv mode: ACTIVE
    EthTrcv link state: Up
    EthTrcv baud rate: 1000Mbps
    EthTrcv duplexity: Full
    EthIf_TrcvModeIndication: Active


    -----------------------------------------------------------
    test_0001: START
    Receive Test Results:
    Status: Fail
    Requested: 0
    Received: 2002
    Indicated: 1001
    Experimental 1: 1000
    Experimental 2: 0
    VLAN tagged: 0
    Receive errors: 252137
    EtherType errors: 0
    Payload errors: 0
    Controller idx errors: 0
    DEM errors: 0
    DET errors: 0

    test_0001: failed while receiving frames
    test_0001: received 1000 of 1000 frames
    test_0001: END
    Test Result: Fail
    -----------------------------------------------------------

    ----------------------------
    Controller 0 Counters
    ----------------------------
    Buffer overruns : 0
    CRC errors : 0
    Undersize packets : 0
    Oversized packets : 0
    Alignment errors : 0
    SQE errors : -1
    Discarded inbound : -1
    Erroneous inbound : 0
    Discarded outbound: -1
    Erroneous outbound: 0
    Single collision : 0
    Multiple collision: 0
    Deferred transm : 0
    Late collisions : 0
    Excessive colls : 0
    Carrier loss : 0
    ----------------------------
    Controller 0 Rx Statistics
    ----------------------------
    Rx Drop Events : 6
    Rx Octets : 104406
    Rx Packets : 1008
    Rx Bcast Packets : 0
    Rx Mcast Packets : 4
    Rx CRC/Align Errors : 0
    Rx Undersized Packets: 0
    Rx Oversized Packets : 0
    Rx Fragments : 0
    Rx Jabbers : 0
    Rx Collisions : -1
    Rx 64 bytes or less Packets : -1
    Rx 65 to 127 bytes Packets : -1
    Rx 128 to 255 bytes Packets : -1
    Rx 256 to 511 bytes Packets : -1
    Rx 512 to 1023 bytes Packets : -1
    Rx 1024 to 1518 bytes Packets : -1
    Rx Unicast Packets : 1000
    ----------------------------
    Controller 0 Tx Statistics
    ----------------------------
    Tx Num octets : 128
    Tx No Unicast Packets : 2
    Tx Unicast Packets : 0
    --------------------------------
    Controller 0 Tx Error Counters
    --------------------------------
    Tx Deferred transm : 0
    Tx Single collisions : 0
    Tx Multiple collisions : 0
    Tx Late collisions : 0
    Tx Excessive collisions : 0
    ETH Stack Usage: 1768 bytes
    Eth Application Completed

  • Hi,

    This is confirmed to be a bug in the test application, will be fixed in the future SDKs.

    Please let me know if you are looking for more details.

    Thanks & Regards,

    Sunita.