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.

MCU-PLUS-SDK-AM263PX: Ethernet LWIP TCP Client SDK Example for Control Card - Abort Error

Part Number: MCU-PLUS-SDK-AM263PX
Other Parts Discussed in Thread: UNIFLASH, DP83869

I am getting an About Error (-13) at netconn_connect() when I run the MCU-PLUS-SDK-AM263PX SDK example: enet_cpsw_tcpclient_am263px-cc_r5fss0-0_freertos_ti-arm-clang

I made some minor changes for handling the IPv4 addresses. Namely, the sever address is hard-coded, and the client is using static IP instead of DHCP.

When I run the same 'application code' on the AM263x Control Card version of the project, it works.

The hardware setup is the same.

The TCP Server is running Wireshark. I can see the transmissions for AM263x, but there are none for AM263Px.

The Ethernet cable is connected to the middle (with sticker) port on AM263x.

Before I spend additional time troubleshooting, I want to check:

Is there any differences between the Control Cards, or SDKs that would cause the About Error (-13) on AM263Px when running the same application-layer code?

 

  • Hi TollMan,

    Just to eliminate confusions and isolate the problem, can you please let me know the result of running enet_loopback or enet_layer2_cpsw example on AM263Px. 

    The out of box applications are expected to work and if the logic works for AM263x, it should have for AM263Px as well. 

    Can you also let me know the bootmode? Are you flashing your application image or loading the .out file from CCS (for AM263Px)

    Regards,

    Shaunak

  • Hi Shaunak,

    I am running Bootmode == SPI (8S) - Octal Read Mode

    The SBL is SBL_NULL.

    I tested with: enet_loopback_am263px-cc_r5fss0-0_freertos_ti-arm-clang running only the first core. Hopefully this is a valid test.

    This is gEnetLpbk halted upon the call to EnetApp_showMenu():

    Observations:

    1)

    Is the value of the gEnetLpbk.hostMacAddr suspicious?

    Perhaps the value was not written to the EVK?

    2)

    I do not see any meaningful Debug_Log() printfs when I run enet_loopback_am263px-cc_r5fss0-0_freertos_ti-arm-clang.

    This is what I see:

    *** Enabling Peripheral Clocks ***
    Cortex_R5_0: GEL Output: Enabling RTI[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling RTI_WDT[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling UART[0:5]/LIN[0:5] Clocks
    Cortex_R5_0: GEL Output: Enabling QSPI Clocks
    Cortex_R5_0: GEL Output: Enabling I2C Clocks
    Cortex_R5_0: GEL Output: Enabling TRACE Clocks
    Cortex_R5_0: GEL Output: Enabling MCAN[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling MMCSD Clocks
    Cortex_R5_0: GEL Output: Enabling MCSPI[0:4] Clocks
    Cortex_R5_0: GEL Output: Enabling CONTROLSS Clocks
    Cortex_R5_0: GEL Output: Enabling CPTS Clocks
    Cortex_R5_0: GEL Output: Enabling RGMI[5,50,250] Clocks
    Cortex_R5_0: GEL Output: Enabling XTAL_TEMPSENSE_32K Clocks
    Cortex_R5_0: GEL Output: Enabling XTAL_MMC_32K Clocks
    Cortex_R5_0: GEL Output:

    ***All IP Clocks are Enabled***

     

    Regards,

    Tollman

  • Hi Tollman,

    Do you not see any prints in the terminal window? The above prints are the gel script logs. Do you not see any application initialization logs in the terminal?

    Regards,

    Shaunak

  • Hi Shaunak,

    Regarding:

      "Do you not see any prints in the terminal window?"

    I retested with the same results. Running the loopback SDK example without breakpoint only outputs:

    *** Enabling Peripheral Clocks ***
    Cortex_R5_0: GEL Output: Enabling RTI[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling RTI_WDT[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling UART[0:5]/LIN[0:5] Clocks
    Cortex_R5_0: GEL Output: Enabling QSPI Clocks
    Cortex_R5_0: GEL Output: Enabling I2C Clocks
    Cortex_R5_0: GEL Output: Enabling TRACE Clocks
    Cortex_R5_0: GEL Output: Enabling MCAN[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling MMCSD Clocks
    Cortex_R5_0: GEL Output: Enabling MCSPI[0:4] Clocks
    Cortex_R5_0: GEL Output: Enabling CONTROLSS Clocks
    Cortex_R5_0: GEL Output: Enabling CPTS Clocks
    Cortex_R5_0: GEL Output: Enabling RGMI[5,50,250] Clocks
    Cortex_R5_0: GEL Output: Enabling XTAL_TEMPSENSE_32K Clocks
    Cortex_R5_0: GEL Output: Enabling XTAL_MMC_32K Clocks
    Cortex_R5_0: GEL Output:

    ***All IP Clocks are Enabled***

    Regarding:

      "Do you not see any prints in the terminal window?"

    I do not see any. I verified that:

      EnetApp_showMenu()

    ...is executing which contains:

      DebugP_log("%s", loopbackTestMenu);

    I also ran a 'known good' SDK example:

      adc_soc_continuous_am263px-cc_r5fss0-0_nortos_ti-arm-clang

    ...to verify there is not a setup issue. I see prints running that example:

    [Cortex_R5_0] ADC Soc Continuous Test Started
    ADC 1 channel 0 output:
    9
    1081
    1080
    1080
    1080
    1082
    1081
    1081
    1081
    1082
    1081
    ADC Soc Continuous Test Passed
    All tests have passed!!

    Regards,

    Tollman

  • Hi Tollman,

    Apologies for the delayed response and thanks for being patient. I tried to replicate the issue but I was not able to.

    I suspect it might also be due to some incorrect configurations in PLL clocks (coming from the gel files). Can we once test the same application by flashing the image to the board. We do have a known issue with CCS 12.5 and CCS 12.6 where the gel files incorrectly configure the clock and the board Rx does not work properly. This issue is seen only in the case of AM263Px and I suspect that is the blocker here.

    Please follow the steps shown here: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263X/latest/exports/docs/api_guide_am263x/TI_UNIFLASH_TOOL.html

    Wanted to try it on your end since I was unable to replicate it

    Regards,
    Shaunak

  • The application appears to run normally when I execute the image loaded from OSPI. I'll bottom-paste the printf log below for confirmation.


    What can be done to allow me to develop, and debug a project based on the enet_cpsw_tcpclient_am263px-cc_r5fss0-0_freertos_ti-arm-clang SDK example?

    Regards,

    Tollman

    Here is the printf log:

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

    [HSM_CLIENT] New Client Registered with Client Id = 0<CR><LF>
    Starting OSPI Bootloader ... <CR><LF>
    [BOOTLOADER_PROFILE] Boot Media : NOR SPI FLASH <CR><LF>
    [BOOTLOADER_PROFILE] Boot Media Clock : 133.333 MHz <CR><LF>
    [BOOTLOADER_PROFILE] Boot Image Size : 0 KB <CR><LF>
    [BOOTLOADER_PROFILE] Cores present : <CR><LF>
    r5f0-0<CR><LF>
    [BOOTLOADER PROFILE] System_init : 265us <CR><LF>
    [BOOTLOADER PROFILE] Drivers_open : 107us <CR><LF>
    [BOOTLOADER PROFILE] LoadHsmRtFw : 13414us <CR><LF>
    [BOOTLOADER PROFILE] Board_driversOpen : 33724us <CR><LF>
    [BOOTLOADER PROFILE] CPU load : 78us <CR><LF>
    [BOOTLOADER_PROFILE] SBL Total Time Taken : 47593us <CR><LF>
    <CR><LF>
    Image loading done, switching to application ...<CR><LF>
    <CR><LF>
    0: Internal MAC loopback <CR><LF>
    1: External PHY loopback <CR><LF>
    <CR><LF>
    Enter option:
    4/22/2024 13:13:09.998 [TX] - 0
    4/22/2024 13:13:10.011 [RX] - 0
    4/22/2024 13:13:13.163 [TX] - <CR><LF>

    4/22/2024 13:13:13.177 [RX] - <CR><LF>
    =============================<CR><LF>
    Enet Loopback: Iteration 1 <CR><LF>
    =============================<CR><LF>
    CPSW_3G Test<CR><LF>
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 <CR><LF>
    PHY 0 is alive<CR><LF>
    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>
    Received 5000 packets<CR><LF>
    Delete EnetApp_rxTask() and exit..<CR><LF>
    Transmitted 5000 packets <CR><LF>
    Delete EnetApp_txTask() and exit..<CR><LF>
    <CR><LF>
    Port 0 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    <CR><LF>
    Port 1 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    Cpsw_handleLinkDown:1655 <CR><LF>
    Test complete: PASS<CR><LF>
    =============================<CR><LF>
    Enet Loopback: Iteration 2 <CR><LF>
    =============================<CR><LF>
    CPSW_3G Test<CR><LF>
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 <CR><LF>
    PHY 0 is alive<CR><LF>
    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>
    Received 5000 packets<CR><LF>
    Delete EnetApp_rxTask() and exit..<CR><LF>
    Transmitted 5000 packets <CR><LF>
    Delete EnetApp_txTask() and exit..<CR><LF>
    <CR><LF>
    Port 0 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    <CR><LF>
    Port 1 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    Cpsw_handleLinkDown:1655 <CR><LF>
    Test complete: PASS<CR><LF>
    =============================<CR><LF>
    Enet Loopback: Iteration 3 <CR><LF>
    =============================<CR><LF>
    CPSW_3G Test<CR><LF>
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 1 <CR><LF>
    PHY 0 is alive<CR><LF>
    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>
    Received 5000 packets<CR><LF>
    Delete EnetApp_rxTask() and exit..<CR><LF>
    Transmitted 5000 packets <CR><LF>
    Delete EnetApp_txTask() and exit..<CR><LF>
    <CR><LF>
    Port 0 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    <CR><LF>
    Port 1 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    Cpsw_handleLinkDown:1655 <CR><LF>
    Test complete: PASS<CR><LF>
    =============================<CR><LF>
    Enet Loopback: Iteration 4 <CR><LF>
    =============================<CR><LF>
    CPSW_3G Test<CR><LF>
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 1 <CR><LF>
    PHY 0 is alive<CR><LF>
    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>
    Received 5000 packets<CR><LF>
    Delete EnetApp_rxTask() and exit..<CR><LF>
    Transmitted 5000 packets <CR><LF>
    Delete EnetApp_txTask() and exit..<CR><LF>
    <CR><LF>
    Port 0 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    <CR><LF>
    Port 1 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    Cpsw_handleLinkDown:1655 <CR><LF>
    Test complete: PASS<CR><LF>
    =============================<CR><LF>
    Enet Loopback: Iteration 5 <CR><LF>
    =============================<CR><LF>
    CPSW_3G Test<CR><LF>
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 1 <CR><LF>
    PHY 0 is alive<CR><LF>
    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>
    Received 5000 packets<CR><LF>
    Delete EnetApp_rxTask() and exit..<CR><LF>
    Transmitted 5000 packets <CR><LF>
    Delete EnetApp_txTask() and exit..<CR><LF>
    <CR><LF>
    Port 0 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    <CR><LF>
    Port 1 Statistics<CR><LF>
    -----------------------------------------<CR><LF>
    rxGoodFrames = 5000<CR><LF>
    rxBcastFrames = 5000<CR><LF>
    rxOctets = 2590000<CR><LF>
    txGoodFrames = 5000<CR><LF>
    txBcastFrames = 5000<CR><LF>
    txOctets = 2590000<CR><LF>
    octetsFrames512to1023 = 10000<CR><LF>
    netOctets = 5180000<CR><LF>
    txPri[0] = 5000<CR><LF>
    txPriBcnt[0] = 2590000<CR><LF>
    <CR><LF>
    Cpsw_handleLinkDown:1655 <CR><LF>
    Test complete: PASS<CR><LF>
    Loopback application completed<CR><LF>
    All tests have passed!!<CR><LF>

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

  • Hi Tollman,

    Thanks for running the tests and confirming the issue. So the issue is with the gel files which are incorrectly initializing the PLL clocks. These gel files shall be fixed in the next CCS release. I will provide the gel files. Please replace it in the mentioned path and try running again with the correct gel files.

    Path: C:\ti\ccs1260\ccs\ccs_base\emulation\gel\AM263P\AM263Px_PLL

    AM263Px_PLL.gel

    Replace the gel file here. Restart your CCS and try again

    OR

    Alternatively, since the issue persists because of the gel files, in CCS, open your target configuration for AM263Px, go to Advanced, select Cortex_R5_0 and remove the csp gel file path is in the Initialization script field. Then launch your target config, run in OSPI bootmode with SBL NULL.

    Regards,
    Shaunak

  • I replaced the gel file, and restarted CCS as suggested. However, I think there is still a problem since I do not see the printfs that were seen when running from OSPI.


    When I run:

      enet_loopback_am263px-cc_r5fss0-0_freertos_ti-arm-clang

    ... in debug mode I see on the console:

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

    Cortex_R5_0: GEL Output: Gel files loading on R5F0 Complete
    Cortex_R5_0: GEL Output: ***OnTargetConnect() Launched***

    Cortex_R5_0: GEL Output: AM263Px Initialization Scripts Launched.
    Please Wait...


    Cortex_R5_0: GEL Output: AM263Px_Cryst_Clock_Loss_Status() Launched
    Cortex_R5_0: GEL Output: Crystal Clock present
    Cortex_R5_0: GEL Output: AM263Px_SOP_Mode() Launched
    Cortex_R5_0: GEL Output: SOP MODE = 0x00000003
    Cortex_R5_0: GEL Output:
    OSPI - 8S Functional boot mode
    Cortex_R5_0: GEL Output: AM263Px_Read_Device_Type() Launched
    Cortex_R5_0: GEL Output: EFuse Device Type Value = 0x000000AA
    Cortex_R5_0: GEL Output: AM263Px_dual_or_lockstep_mode() Launched
    Cortex_R5_0: GEL Output: r5fss0 = 0x00000001
    Cortex_R5_0: GEL Output: r5fss1 = 0x00000000
    Cortex_R5_0: GEL Output:
    R5FSS0 is in Dual core mode
    Cortex_R5_0: GEL Output:
    R5FSS1 is in Dual core mode
    Cortex_R5_0: GEL Output: MSS_CTRL Control Registers Unlocked
    Cortex_R5_0: GEL Output: MSS_TOP_RCM Control Registers Unlocked
    Cortex_R5_0: GEL Output: MSS_RCM Control Registers Unlocked
    Cortex_R5_0: GEL Output: MSS_IOMUX Control Registers Unlocked
    Cortex_R5_0: GEL Output: TOP_CTRL Control Registers Unlocked
    Cortex_R5_0: GEL Output:

    *** R5FSS0 Reset DualCore ***
    Cortex_R5_0: GEL Output:

    ***R5FSS1 Reset DualCore ***
    Cortex_R5_0: GEL Output: R5F ROM Eclipse
    Cortex_R5_0: GEL Output: R5FSS0_0 Released
    Cortex_R5_0: GEL Output: R5FSS0_1 Released
    Cortex_R5_0: GEL Output: R5FSS1_0 Released
    Cortex_R5_0: GEL Output: R5FSS1_1 Released
    Cortex_R5_0: GEL Output: L2 Mem Init Complete
    Cortex_R5_0: GEL Output: MailBox Mem Init Complete
    Cortex_R5_0: GEL Output: *********** R5FSS0/1 Dual Core mode Configured********
    Cortex_R5_0: GEL Output: In ROM Setting Mode
    Cortex_R5_0: GEL Output: Switch to XTAL Complete
    Cortex_R5_0: GEL Output: CORE PLL Configuration Complete
    Cortex_R5_0: GEL Output: SYS_CLK DIVBY2
    Cortex_R5_0: GEL Output: DPLL_CORE_HSDIV0_CLKOUT0 selected as CLK source for R5FSS & SYS CLKs
    Cortex_R5_0: GEL Output:
    CLK Programmed R5F=400MHz and SYS_CLK=200MHz
    Cortex_R5_0: GEL Output:

    *** Enabling Peripheral Clocks ***
    Cortex_R5_0: GEL Output: Enabling RTI[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling RTI_WDT[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling UART[0:5]/LIN[0:5] Clocks
    Cortex_R5_0: GEL Output: Enabling QSPI Clocks
    Cortex_R5_0: GEL Output: Enabling I2C Clocks
    Cortex_R5_0: GEL Output: Enabling TRACE Clocks
    Cortex_R5_0: GEL Output: Enabling MCAN[0:3] Clocks
    Cortex_R5_0: GEL Output: Enabling MMCSD Clocks
    Cortex_R5_0: GEL Output: Enabling MCSPI[0:4] Clocks
    Cortex_R5_0: GEL Output: Enabling CONTROLSS Clocks
    Cortex_R5_0: GEL Output: Enabling CPTS Clocks
    Cortex_R5_0: GEL Output: Enabling RGMI[5,50,250] Clocks
    Cortex_R5_0: GEL Output: Enabling XTAL_TEMPSENSE_32K Clocks
    Cortex_R5_0: GEL Output: Enabling XTAL_MMC_32K Clocks
    Cortex_R5_0: GEL Output:

    ***All IP Clocks are Enabled***

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

    I know the application is running because it halts at a breakpoint in EnetApp_showMenu() as seen here:

    I am running in OSPI bootmode with SBL NULL, but did not modify any Target Configuration yet:

    .

    What should I try next?

    Regards,

    Tollman

  • Hi Tollman,

    Unfortunately, I'm not able to reproduce this issue. The only known issues were with the PLL gel scripts. In your case, replacing the gel file did not help.

    Can you please try the following as well:

    1. Open CSS console and check for prints when you run the application

    2. Open CCS terminal and open the correct UART COM port as well. Do you see multiple 'C' being printed in the terminal when you switch the boot mode to UART? The COM port in which these multiple 'C' prints are visible (in UART boot mode), will be the one which will show you the application prints when running the application in SBL_NULL + OSPI boot mode.

    I do not think the issue is with the networking software now as you confirmed the breakpoints being hit.

    Regards,

    Shaunak 

  • I can see the printfs (that are not seen on in the CCS console) in my terminal connected to UART0.

    Remember that I created this thread because:

    I am getting an About Error (-13) at netconn_connect() when I run the MCU-PLUS-SDK-AM263PX SDK example: enet_cpsw_tcpclient_am263px-cc_r5fss0-0_freertos_ti-arm-clang

    Although I hit breakpoints Lwip2Enet_sendTxPackets(), I do not see any packets in Wireshark running on my Ethernet LAN.

    Question 1:

    Do you think that the issue with the PLL / gel script, and the Ethernet communication are related?

    Question 2a:

    How can I troubleshoot the Ethernet communication issue?

    Question 2b:

    Can you recommend a place for breakpoint, or a good Watch Expression? 

    Regards,

    Tollman

  • Hi Tollman,

    1. The issue with the PLL clocks would lead to the board communication being unstable. The PLL clocks will configure the PHY clocks and incorrect config might lead to the Tx/Rx of packets to fail, thus leading to lwIP connection being aborted. But we need to confirm this. Since you hit the breakpoint, it does not seem to be a lwIP or the driver issue to me and maybe something related to the PHY. 

    2. I am not able to reproduce the issue with the out-of-box example, but I do have some debug pointers for you that can help

    3. Before you try to establish a TCP client server connection, try to ping the microcontroller with the IP that would be shown in the prints (for example: Enet IF UP Event. Local interface IP:10.24.72.91), ping this IP and check if you get a reply. 

    4. In your CCS expressions window, pause the after you get the lwIP connection abort (-13) error and type "lwip_stats". In these lwIP stats, check the "tcp", "ip", "icmp". Expand each one and check if there are drops, protocol errors, or any other unexpected statistics getting incremented.

    5. Paste this in your expressions window: (CSL_Xge_cpswRegs *) 0x52820000. These are the CPSW stats. Scroll down until you find P0_STATS and PN_STATS. Expand each one and check for packet drops or CRC errors or ALE overrun. If possible please share the screenshot so I can review it as well.

    Similarly check for the PN_STATS[0].

    6. If all the stats seem fine. Try putting a breakpoint at "EnetDma_submitTxPktQ" function. This is the last Enet driver function that handles the packet. After this, the DMA takes care of the packet transfer.

    Also can you share some details about your network setup (between TCP Client and TCP server, their IP addresses etc)

    Regards,

    Shaunak

  • Hi Tollman,

    I would also like to know about the changes made in the application. The out of box example works fine, configuring the microcontroller to have a static IP is also fine (assuming you followed these steps: AM263x MCU+ SDK: Ethernet LwIP TCP/IP Static IP
    I would like to know how you configured the server static IP and also your application logs.

    Regards,

    Shaunak

  • Hi Shaunak,

    1)

    Regarding:

    "I would also like to know about the changes made in the application... "

    The changes I made were to:

    a) Use a static IP address for the Sitara. I do not want to rely on needing a DHCP server on the LAN. However, when using the unmodified SDK examples, I use the DHCP discovery packets as a way to verify that the stack is working. I can see the packets on Wireshark.

    b) Use a static IP address for the TCP Server address. I do not want to type the address in the console each execution.

    Again, when I run this application code on my TMDSCNCD263-AM263x Sitara Control Card it works.

    2)

    Regarding:

    "Before you try to establish a TCP client server connection, try to ping the microcontroller with the IP ...".

    I will try this with my application with Static IP. The DHCP version will not have an IP address to ping.

    3)

    Thanks for the troubleshooting tips. I will try out your suggestions regarding expressions, and breakpoints. 

    Hopefully, I will post the results of my testing later today.

    Regards,

    Tollman

  • I ran a test using an unmodified version of the SDK example:

      enet_cpsw_tcpclient_am263px-cc_r5fss0-0_freertos_ti-arm-clang

    I let the application run for several seconds, and then halted the processor at:

    while (false == App_isNetworkUp(netif_default))

    {

    ...

    }

    For reference:

    Here is what the Watch Expressions looks like:

    I also pasted them in the attached file.

    lwip_stats	struct stats_	{link={xmit=0,recv=0,fw=0,drop=0,chkerr=0...},etharp={xmit=0,recv=0,fw=0,drop=0,chkerr=...,ip_frag=...	0x700B1BE8	
    	link	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1BE8	
    		xmit	unsigned short	0	0x700B1BE8	
    		recv	unsigned short	0	0x700B1BEA	
    		fw	unsigned short	0	0x700B1BEC	
    		drop	unsigned short	0	0x700B1BEE	
    		chkerr	unsigned short	0	0x700B1BF0	
    		lenerr	unsigned short	0	0x700B1BF2	
    		memerr	unsigned short	0	0x700B1BF4	
    		rterr	unsigned short	0	0x700B1BF6	
    		proterr	unsigned short	0	0x700B1BF8	
    		opterr	unsigned short	0	0x700B1BFA	
    		err	unsigned short	0	0x700B1BFC	
    		cachehit	unsigned short	0	0x700B1BFE	
    	etharp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1C00	
    		xmit	unsigned short	0	0x700B1C00	
    		recv	unsigned short	0	0x700B1C02	
    		fw	unsigned short	0	0x700B1C04	
    		drop	unsigned short	0	0x700B1C06	
    		chkerr	unsigned short	0	0x700B1C08	
    		lenerr	unsigned short	0	0x700B1C0A	
    		memerr	unsigned short	0	0x700B1C0C	
    		rterr	unsigned short	0	0x700B1C0E	
    		proterr	unsigned short	0	0x700B1C10	
    		opterr	unsigned short	0	0x700B1C12	
    		err	unsigned short	0	0x700B1C14	
    		cachehit	unsigned short	0	0x700B1C16	
    	ip_frag	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1C18	
    		xmit	unsigned short	0	0x700B1C18	
    		recv	unsigned short	0	0x700B1C1A	
    		fw	unsigned short	0	0x700B1C1C	
    		drop	unsigned short	0	0x700B1C1E	
    		chkerr	unsigned short	0	0x700B1C20	
    		lenerr	unsigned short	0	0x700B1C22	
    		memerr	unsigned short	0	0x700B1C24	
    		rterr	unsigned short	0	0x700B1C26	
    		proterr	unsigned short	0	0x700B1C28	
    		opterr	unsigned short	0	0x700B1C2A	
    		err	unsigned short	0	0x700B1C2C	
    		cachehit	unsigned short	0	0x700B1C2E	
    	ip	struct stats_proto	{xmit=1,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1C30	
    		xmit	unsigned short	1	0x700B1C30	
    		recv	unsigned short	0	0x700B1C32	
    		fw	unsigned short	0	0x700B1C34	
    		drop	unsigned short	0	0x700B1C36	
    		chkerr	unsigned short	0	0x700B1C38	
    		lenerr	unsigned short	0	0x700B1C3A	
    		memerr	unsigned short	0	0x700B1C3C	
    		rterr	unsigned short	0	0x700B1C3E	
    		proterr	unsigned short	0	0x700B1C40	
    		opterr	unsigned short	0	0x700B1C42	
    		err	unsigned short	0	0x700B1C44	
    		cachehit	unsigned short	0	0x700B1C46	
    	icmp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1C48	
    		xmit	unsigned short	0	0x700B1C48	
    		recv	unsigned short	0	0x700B1C4A	
    		fw	unsigned short	0	0x700B1C4C	
    		drop	unsigned short	0	0x700B1C4E	
    		chkerr	unsigned short	0	0x700B1C50	
    		lenerr	unsigned short	0	0x700B1C52	
    		memerr	unsigned short	0	0x700B1C54	
    		rterr	unsigned short	0	0x700B1C56	
    		proterr	unsigned short	0	0x700B1C58	
    		opterr	unsigned short	0	0x700B1C5A	
    		err	unsigned short	0	0x700B1C5C	
    		cachehit	unsigned short	0	0x700B1C5E	
    	igmp	struct stats_igmp	{xmit=0,recv=0,drop=0,chkerr=0,lenerr=0...}	0x700B1C60	
    		xmit	unsigned short	0	0x700B1C60	
    		recv	unsigned short	0	0x700B1C62	
    		drop	unsigned short	0	0x700B1C64	
    		chkerr	unsigned short	0	0x700B1C66	
    		lenerr	unsigned short	0	0x700B1C68	
    		memerr	unsigned short	0	0x700B1C6A	
    		proterr	unsigned short	0	0x700B1C6C	
    		rx_v1	unsigned short	0	0x700B1C6E	
    		rx_group	unsigned short	0	0x700B1C70	
    		rx_general	unsigned short	0	0x700B1C72	
    		rx_report	unsigned short	0	0x700B1C74	
    		tx_join	unsigned short	0	0x700B1C76	
    		tx_leave	unsigned short	0	0x700B1C78	
    		tx_report	unsigned short	0	0x700B1C7A	
    	udp	struct stats_proto	{xmit=1,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1C7C	
    		xmit	unsigned short	1	0x700B1C7C	
    		recv	unsigned short	0	0x700B1C7E	
    		fw	unsigned short	0	0x700B1C80	
    		drop	unsigned short	0	0x700B1C82	
    		chkerr	unsigned short	0	0x700B1C84	
    		lenerr	unsigned short	0	0x700B1C86	
    		memerr	unsigned short	0	0x700B1C88	
    		rterr	unsigned short	0	0x700B1C8A	
    		proterr	unsigned short	0	0x700B1C8C	
    		opterr	unsigned short	0	0x700B1C8E	
    		err	unsigned short	0	0x700B1C90	
    		cachehit	unsigned short	0	0x700B1C92	
    	tcp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1C94	
    		xmit	unsigned short	0	0x700B1C94	
    		recv	unsigned short	0	0x700B1C96	
    		fw	unsigned short	0	0x700B1C98	
    		drop	unsigned short	0	0x700B1C9A	
    		chkerr	unsigned short	0	0x700B1C9C	
    		lenerr	unsigned short	0	0x700B1C9E	
    		memerr	unsigned short	0	0x700B1CA0	
    		rterr	unsigned short	0	0x700B1CA2	
    		proterr	unsigned short	0	0x700B1CA4	
    		opterr	unsigned short	0	0x700B1CA6	
    		err	unsigned short	0	0x700B1CA8	
    		cachehit	unsigned short	0	0x700B1CAA	
    	mem	struct stats_mem	{name=0x7011D108 {77 'M'},err=0,avail=0,used=0,max=416...}	0x700B1CAC	
    		name	unsigned char *	0x7011D108 "MEM	0x700B1CAC	
    		err	unsigned short	0	0x700B1CB0	
    		avail	unsigned short	0	0x700B1CB2	
    		used	unsigned short	0	0x700B1CB4	
    		max	unsigned short	416	0x700B1CB6	
    		illegal	unsigned short	0	0x700B1CB8	
    	memp	struct stats_mem *[22]	[0x700B35B4 {name=0x7011D014 {82 'R'},err=0,avail=3,used=0,max=0...},0x700B3654 ...,...	0x700B1CBC	
    		[0]	struct stats_mem *	0x700B35B4 {name=0x7011D014 {82 'R'},err=0,avail=3,used=0,max=0...}	0x700B1CBC	
    		[1]	struct stats_mem *	0x700B3654 {name=0x7011D05C {85 'U'},err=0,avail=4,used=1,max=1...}	0x700B1CC0	
    		[2]	struct stats_mem *	0x700B3624 {name=0x7011D04C {84 'T'},err=0,avail=5,used=0,max=0...}	0x700B1CC4	
    		[3]	struct stats_mem *	0x700B3634 {name=0x7011C55F {84 'T'},err=0,avail=8,used=0,max=0...}	0x700B1CC8	
    		[4]	struct stats_mem *	0x700B3644 {name=0x7011D03C {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B1CCC	
    		[5]	struct stats_mem *	0x700B34F4 {name=0x7011CD2F {65 'A'},err=0,avail=5,used=0,max=0...}	0x700B1CD0	
    		[6]	struct stats_mem *	0x700B35C4 {name=0x7011CCF3 {82 'R'},err=0,avail=10,used=0,max=0...}	0x700B1CD4	
    		[7]	struct stats_mem *	0x700B3514 {name=0x7011CDED {70 'F'},err=0,avail=15,used=0,max=0...}	0x700B1CD8	
    		[8]	struct stats_mem *	0x700B3534 {name=0x7011D07A {78 'N'},err=0,avail=128,used=0,max=0...}	0x700B1CDC	
    		[9]	struct stats_mem *	0x700B3544 {name=0x7011D064 {78 'N'},err=0,avail=10,used=0,max=0...}	0x700B1CE0	
    		[10]	struct stats_mem *	0x700B3604 {name=0x7011C7F3 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B1CE4	
    		[11]	struct stats_mem *	0x700B3614 {name=0x7011C326 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B1CE8	
    		[12]	struct stats_mem *	0x700B3504 {name=0x7011CD11 {65 'A'},err=0,avail=30,used=0,max=0...}	0x700B1CEC	
    		[13]	struct stats_mem *	0x700B3524 {name=0x7011CCC8 {73 'I'},err=0,avail=8,used=0,max=0...}	0x700B1CF0	
    		[14]	struct stats_mem *	0x700B35F4 {name=0x7011CAFC {83 'S'},err=0,avail=17,used=7,max=7...}	0x700B1CF4	
    		[15]	struct stats_mem *	0x700B3554 {name=0x7011D0BE {78 'N'},err=0,avail=1,used=0,max=0...}	0x700B1CF8	
    		[16]	struct stats_mem *	0x700B3564 {name=0x7011C914 {80 'P'},err=0,avail=128,used=0,max=0...}	0x700B1CFC	
    		[17]	struct stats_mem *	0x700B3574 {name=0x7011CDB1 {80 'P'},err=0,avail=0,used=0,max=0...}	0x700B1D00	
    		[18]	struct stats_mem *	0x700B3584 {name=0x7011CC70 {77 'M'},err=0,avail=100,used=0,max=0...}	0x700B1D04	
    		[19]	struct stats_mem *	0x700B3594 {name=0x7011CBC8 {77 'M'},err=0,avail=48,used=0,max=1...}	0x700B1D08	
    		[20]	struct stats_mem *	0x700B35A4 {name=0x7011CB20 {77 'M'},err=0,avail=4,used=0,max=0...}	0x700B1D0C	
    		[21]	struct stats_mem *	0x700B35E4 {name=0x7011CFEA {83 'S'},err=0,avail=22,used=0,max=0...}	0x700B1D10	
    	sys	struct stats_sys	{sem={used=0,max=1,err=0},mutex={used=1,max=1,err=0},mbox={used=1,max=1,err=0}}	0x700B1D14	
    		sem	struct stats_syselem	{used=0,max=1,err=0}	0x700B1D14	
    			used	unsigned short	0	0x700B1D14	
    			max	unsigned short	1	0x700B1D16	
    			err	unsigned short	0	0x700B1D18	
    		mutex	struct stats_syselem	{used=1,max=1,err=0}	0x700B1D1A	
    			used	unsigned short	1	0x700B1D1A	
    			max	unsigned short	1	0x700B1D1C	
    			err	unsigned short	0	0x700B1D1E	
    		mbox	struct stats_syselem	{used=1,max=1,err=0}	0x700B1D20	
    			used	unsigned short	1	0x700B1D20	
    			max	unsigned short	1	0x700B1D22	
    			err	unsigned short	0	0x700B1D24	
    	mib2	struct stats_mib2	{ipinhdrerrors=0,ipinaddrerrors=0,ipinunknownprotos=0,ipindiscards=0,ipindelivers=...	0x700B1D28	
    		ipinhdrerrors	unsigned int	0	0x700B1D28	
    		ipinaddrerrors	unsigned int	0	0x700B1D2C	
    		ipinunknownprotos	unsigned int	0	0x700B1D30	
    		ipindiscards	unsigned int	0	0x700B1D34	
    		ipindelivers	unsigned int	0	0x700B1D38	
    		ipoutrequests	unsigned int	1	0x700B1D3C	
    		ipoutdiscards	unsigned int	0	0x700B1D40	
    		ipoutnoroutes	unsigned int	0	0x700B1D44	
    		ipreasmoks	unsigned int	0	0x700B1D48	
    		ipreasmfails	unsigned int	0	0x700B1D4C	
    		ipfragoks	unsigned int	0	0x700B1D50	
    		ipfragfails	unsigned int	0	0x700B1D54	
    		ipfragcreates	unsigned int	0	0x700B1D58	
    		ipreasmreqds	unsigned int	0	0x700B1D5C	
    		ipforwdatagrams	unsigned int	0	0x700B1D60	
    		ipinreceives	unsigned int	0	0x700B1D64	
    		tcpactiveopens	unsigned int	0	0x700B1D68	
    		tcppassiveopens	unsigned int	0	0x700B1D6C	
    		tcpattemptfails	unsigned int	0	0x700B1D70	
    		tcpestabresets	unsigned int	0	0x700B1D74	
    		tcpoutsegs	unsigned int	0	0x700B1D78	
    		tcpretranssegs	unsigned int	0	0x700B1D7C	
    		tcpinsegs	unsigned int	0	0x700B1D80	
    		tcpinerrs	unsigned int	0	0x700B1D84	
    		tcpoutrsts	unsigned int	0	0x700B1D88	
    		udpindatagrams	unsigned int	0	0x700B1D8C	
    		udpnoports	unsigned int	0	0x700B1D90	
    		udpinerrors	unsigned int	0	0x700B1D94	
    		udpoutdatagrams	unsigned int	1	0x700B1D98	
    		icmpinmsgs	unsigned int	0	0x700B1D9C	
    		icmpinerrors	unsigned int	0	0x700B1DA0	
    		icmpindestunreachs	unsigned int	0	0x700B1DA4	
    		icmpintimeexcds	unsigned int	0	0x700B1DA8	
    		icmpinparmprobs	unsigned int	0	0x700B1DAC	
    		icmpinsrcquenchs	unsigned int	0	0x700B1DB0	
    		icmpinredirects	unsigned int	0	0x700B1DB4	
    		icmpinechos	unsigned int	0	0x700B1DB8	
    		icmpinechoreps	unsigned int	0	0x700B1DBC	
    		icmpintimestamps	unsigned int	0	0x700B1DC0	
    		icmpintimestampreps	unsigned int	0	0x700B1DC4	
    		icmpinaddrmasks	unsigned int	0	0x700B1DC8	
    		icmpinaddrmaskreps	unsigned int	0	0x700B1DCC	
    		icmpoutmsgs	unsigned int	0	0x700B1DD0	
    		icmpouterrors	unsigned int	0	0x700B1DD4	
    		icmpoutdestunreachs	unsigned int	0	0x700B1DD8	
    		icmpouttimeexcds	unsigned int	0	0x700B1DDC	
    		icmpoutechos	unsigned int	0	0x700B1DE0	
    		icmpoutechoreps	unsigned int	0	0x700B1DE4	
    
    =====================================
    (CSL_Xge_cpswRegs *) 0x52820000	struct CSL_Xge_cpswRegs *	0x52820000 {ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',...,EM_CONTROL_REG=...		
    	*((CSL_Xge_cpswRegs *) 0x52820000)	struct CSL_Xge_cpswRegs	{ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',0 '\x00',0 '\x00',...,EM_CONTROL_REG=...	0x52820000	
    		ID_VER_REG	unsigned int	1804603651	0x52820000	
    		CONTROL_REG	unsigned int	278532	0x52820004	
    		Resv_16	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820008	
    		EM_CONTROL_REG	unsigned int	0	0x52820010	
    		STAT_PORT_EN_REG	unsigned int	7	0x52820014	
    		PTYPE_REG	unsigned int	2	0x52820018	
    		SOFT_IDLE_REG	unsigned int	0	0x5282001C	
    		THRU_RATE_REG	unsigned int	12289	0x52820020	
    		GAP_THRESH_REG	unsigned int	11	0x52820024	
    		TX_START_WDS_REG	unsigned int	8	0x52820028	
    		EEE_PRESCALE_REG	unsigned int	0	0x5282002C	
    		TX_G_OFLOW_THRESH_SET_REG	unsigned int	4294967295	0x52820030	
    		TX_G_OFLOW_THRESH_CLR_REG	unsigned int	0	0x52820034	
    		TX_G_BUF_THRESH_SET_L_REG	unsigned int	4294967295	0x52820038	
    		TX_G_BUF_THRESH_SET_H_REG	unsigned int	4294967295	0x5282003C	
    		TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52820040	
    		TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x52820044	
    		Resv_80	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820048	
    		VLAN_LTYPE_REG	unsigned int	2292744448	0x52820050	
    		EST_TS_DOMAIN_REG	unsigned int	0	0x52820054	
    		Resv_256	unsigned char[168]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820058	
    		TX_PRI0_MAXLEN_REG	unsigned int	2024	0x52820100	
    		TX_PRI1_MAXLEN_REG	unsigned int	2024	0x52820104	
    		TX_PRI2_MAXLEN_REG	unsigned int	2024	0x52820108	
    		TX_PRI3_MAXLEN_REG	unsigned int	2024	0x5282010C	
    		TX_PRI4_MAXLEN_REG	unsigned int	2024	0x52820110	
    		TX_PRI5_MAXLEN_REG	unsigned int	2024	0x52820114	
    		TX_PRI6_MAXLEN_REG	unsigned int	2024	0x52820118	
    		TX_PRI7_MAXLEN_REG	unsigned int	2024	0x5282011C	
    		Resv_4100	unsigned char[3812]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820120	
    		P0_CONTROL_REG	unsigned int	131083	0x52821004	
    		P0_FLOW_ID_OFFSET_REG	unsigned int	0	0x52821008	
    		Resv_4112	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282100C	
    		P0_BLK_CNT_REG	unsigned int	2	0x52821010	
    		P0_PORT_VLAN_REG	unsigned int	0	0x52821014	
    		P0_TX_PRI_MAP_REG	unsigned int	1985229328	0x52821018	
    		P0_PRI_CTL_REG	unsigned int	0	0x5282101C	
    		P0_RX_PRI_MAP_REG	unsigned int	1985229328	0x52821020	
    		P0_RX_MAXLEN_REG	unsigned int	1518	0x52821024	
    		P0_TX_BLKS_PRI_REG	unsigned int	19158648	0x52821028	
    		Resv_4144	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282102C	
    		P0_IDLE2LPI_REG	unsigned int	0	0x52821030	
    		P0_LPI2WAKE_REG	unsigned int	0	0x52821034	
    		P0_EEE_STATUS_REG	unsigned int	96	0x52821038	
    		Resv_4176	unsigned char[20]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5282103C	
    		P0_FIFO_STATUS_REG	unsigned int	0	0x52821050	
    		Resv_4384	unsigned char[204]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821054	
    		P0_RX_DSCP_MAP_REG	unsigned int[8]	[0,286331153,572662306,858993459,1145324612...]	0x52821120	
    		P0_PRI_CIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821140	
    		P0_PRI_EIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821160	
    		P0_TX_D_THRESH_SET_L_REG	unsigned int	522133279	0x52821180	
    		P0_TX_D_THRESH_SET_H_REG	unsigned int	522133279	0x52821184	
    		P0_TX_D_THRESH_CLR_L_REG	unsigned int	0	0x52821188	
    		P0_TX_D_THRESH_CLR_H_REG	unsigned int	0	0x5282118C	
    		P0_TX_G_BUF_THRESH_SET_L_REG	unsigned int	522133279	0x52821190	
    		P0_TX_G_BUF_THRESH_SET_H_REG	unsigned int	522133279	0x52821194	
    		P0_TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52821198	
    		P0_TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x5282119C	
    		Resv_4864	unsigned char[352]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x528211A0	
    		P0_SRC_ID_A_REG	unsigned int	67305985	0x52821300	
    		P0_SRC_ID_B_REG	unsigned int	134678021	0x52821304	
    		Resv_4896	unsigned char[24]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821308	
    		P0_HOST_BLKS_PRI_REG	unsigned int	0	0x52821320	
    		Resv_8192	unsigned char[3292]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821324	
    		ENETPORT	struct CSL_Xge_cpswEnetportRegs[2]	[{PN_RESERVED_REG=0,PN_CONTROL_REG=0,PN_MAX_BLKS_REG=4100,Resv_16=[0 '\x00',0 '\x00',...,PN_BLK_CNT_REG=...,...	0x52822000	
    		Resv_73728	unsigned char[57344]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52824000	
    		CPSW_NU_EST	struct CSL_Xge_cpswRegs_CPSW_NU_EST[2]	[{FETCH_LOC=[0,0,0,0,0...]},{FETCH_LOC=[0,0,0,0,0...]}]	0x52832000	
    		Resv_106496	unsigned char[31744]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52832400	
    		P0_STATS	struct CSL_Xge_cpswP0StatsRegs	{RXGOODFRAMES=1,RXBROADCASTFRAMES=1,RXMULTICASTFRAMES=0,Resv_16=[0 '\x00',0 '\x00',...,RXCRCERRORS=...	0x5283A000	
    			RXGOODFRAMES	unsigned int	1	0x5283A000	
    			RXBROADCASTFRAMES	unsigned int	1	0x5283A004	
    			RXMULTICASTFRAMES	unsigned int	0	0x5283A008	
    			Resv_16	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A00C	
    			RXCRCERRORS	unsigned int	0	0x5283A010	
    			Resv_24	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A014	
    			RXOVERSIZEDFRAMES	unsigned int	0	0x5283A018	
    			Resv_32	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A01C	
    			RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A020	
    			Resv_40	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A024	
    			ALE_DROP	unsigned int	0	0x5283A028	
    			ALE_OVERRUN_DROP	unsigned int	0	0x5283A02C	
    			RXOCTETS	unsigned int	354	0x5283A030	
    			TXGOODFRAMES	unsigned int	0	0x5283A034	
    			TXBROADCASTFRAMES	unsigned int	0	0x5283A038	
    			TXMULTICASTFRAMES	unsigned int	0	0x5283A03C	
    			Resv_76	unsigned char[12]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A040	
    			TX_SOF_OVERRUN	unsigned int	0	0x5283A04C	
    			TX_MOF_OVERRUN	unsigned int	0	0x5283A050	
    			Resv_100	unsigned char[16]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A054	
    			TXOCTETS	unsigned int	0	0x5283A064	
    			OCTETFRAMES64	unsigned int	0	0x5283A068	
    			OCTETFRAMES65T127	unsigned int	0	0x5283A06C	
    			OCTETFRAMES128T255	unsigned int	0	0x5283A070	
    			OCTETFRAMES256T511	unsigned int	1	0x5283A074	
    			OCTETFRAMES512T1023	unsigned int	0	0x5283A078	
    			OCTETFRAMES1024TUP	unsigned int	0	0x5283A07C	
    			NETOCTETS	unsigned int	354	0x5283A080	
    			RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A084	
    			PORTMASK_DROP	unsigned int	0	0x5283A088	
    			RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A08C	
    			ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A090	
    			ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A094	
    			ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A098	
    			ALE_BLOCK_DROP	unsigned int	0	0x5283A09C	
    			ALE_SECURE_DROP	unsigned int	0	0x5283A0A0	
    			ALE_AUTH_DROP	unsigned int	0	0x5283A0A4	
    			ALE_UNKN_UNI	unsigned int	0	0x5283A0A8	
    			ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A0AC	
    			ALE_UNKN_MLT	unsigned int	0	0x5283A0B0	
    			ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A0B4	
    			ALE_UNKN_BRD	unsigned int	0	0x5283A0B8	
    			ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A0BC	
    			ALE_POL_MATCH	unsigned int	0	0x5283A0C0	
    			ALE_POL_MATCH_RED	unsigned int	0	0x5283A0C4	
    			ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A0C8	
    			ALE_MULT_SA_DROP	unsigned int	0	0x5283A0CC	
    			ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A0D0	
    			ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A0D4	
    			ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A0D8	
    			ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A0DC	
    			Resv_376	unsigned char[156]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A0E0	
    			TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A17C	
    			ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A180	
    				[0]	unsigned int	0	0x5283A180	
    				[1]	unsigned int	0	0x5283A184	
    				[2]	unsigned int	0	0x5283A188	
    				[3]	unsigned int	0	0x5283A18C	
    				[4]	unsigned int	0	0x5283A190	
    				[5]	unsigned int	0	0x5283A194	
    				[6]	unsigned int	0	0x5283A198	
    				[7]	unsigned int	0	0x5283A19C	
    			ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1A0	
    				[0]	unsigned int	0	0x5283A1A0	
    				[1]	unsigned int	0	0x5283A1A4	
    				[2]	unsigned int	0	0x5283A1A8	
    				[3]	unsigned int	0	0x5283A1AC	
    				[4]	unsigned int	0	0x5283A1B0	
    				[5]	unsigned int	0	0x5283A1B4	
    				[6]	unsigned int	0	0x5283A1B8	
    				[7]	unsigned int	0	0x5283A1BC	
    			ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1C0	
    				[0]	unsigned int	0	0x5283A1C0	
    				[1]	unsigned int	0	0x5283A1C4	
    				[2]	unsigned int	0	0x5283A1C8	
    				[3]	unsigned int	0	0x5283A1CC	
    				[4]	unsigned int	0	0x5283A1D0	
    				[5]	unsigned int	0	0x5283A1D4	
    				[6]	unsigned int	0	0x5283A1D8	
    				[7]	unsigned int	0	0x5283A1DC	
    			ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1E0	
    				[0]	unsigned int	0	0x5283A1E0	
    				[1]	unsigned int	0	0x5283A1E4	
    				[2]	unsigned int	0	0x5283A1E8	
    				[3]	unsigned int	0	0x5283A1EC	
    				[4]	unsigned int	0	0x5283A1F0	
    				[5]	unsigned int	0	0x5283A1F4	
    				[6]	unsigned int	0	0x5283A1F8	
    				[7]	unsigned int	0	0x5283A1FC	
    		PN_STATS	struct CSL_Xge_cpswPnStatsRegs[2]	[{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...,...	0x5283A200	
    			[0]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A200	
    				RXGOODFRAMES	unsigned int	0	0x5283A200	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A204	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A208	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A20C	
    				RXCRCERRORS	unsigned int	0	0x5283A210	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A214	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A218	
    				RXJABBERFRAMES	unsigned int	0	0x5283A21C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A220	
    				RXFRAGMENTS	unsigned int	0	0x5283A224	
    				ALE_DROP	unsigned int	0	0x5283A228	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A22C	
    				RXOCTETS	unsigned int	0	0x5283A230	
    				TXGOODFRAMES	unsigned int	0	0x5283A234	
    				TXBROADCASTFRAMES	unsigned int	0	0x5283A238	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A23C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A240	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A244	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A248	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A24C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A250	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A254	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A258	
    				RXIPGERROR	unsigned int	0	0x5283A25C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A260	
    				TXOCTETS	unsigned int	0	0x5283A264	
    				OCTETFRAMES64	unsigned int	0	0x5283A268	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A26C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A270	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A274	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A278	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A27C	
    				NETOCTETS	unsigned int	0	0x5283A280	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A284	
    				PORTMASK_DROP	unsigned int	0	0x5283A288	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A28C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A290	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A294	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A298	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A29C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A2A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A2A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A2A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A2AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A2B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A2B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A2B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A2BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A2C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A2C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A2C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A2CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A2D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A2D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A2D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A2DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A2E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A340	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A344	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A348	
    				IET_RX_FRAG	unsigned int	0	0x5283A34C	
    				IET_TX_HOLD	unsigned int	0	0x5283A350	
    				IET_TX_FRAG	unsigned int	0	0x5283A354	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A358	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A37C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A380	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3E0	
    			[1]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A400	
    				RXGOODFRAMES	unsigned int	0	0x5283A400	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A404	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A408	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A40C	
    				RXCRCERRORS	unsigned int	0	0x5283A410	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A414	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A418	
    				RXJABBERFRAMES	unsigned int	0	0x5283A41C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A420	
    				RXFRAGMENTS	unsigned int	0	0x5283A424	
    				ALE_DROP	unsigned int	0	0x5283A428	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A42C	
    				RXOCTETS	unsigned int	0	0x5283A430	
    				TXGOODFRAMES	unsigned int	1	0x5283A434	
    				TXBROADCASTFRAMES	unsigned int	1	0x5283A438	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A43C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A440	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A444	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A448	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A44C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A450	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A454	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A458	
    				RXIPGERROR	unsigned int	0	0x5283A45C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A460	
    				TXOCTETS	unsigned int	354	0x5283A464	
    				OCTETFRAMES64	unsigned int	0	0x5283A468	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A46C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A470	
    				OCTETFRAMES256T511	unsigned int	1	0x5283A474	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A478	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A47C	
    				NETOCTETS	unsigned int	354	0x5283A480	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A484	
    				PORTMASK_DROP	unsigned int	0	0x5283A488	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A48C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A490	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A494	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A498	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A49C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A4A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A4A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A4A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A4AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A4B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A4B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A4B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A4BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A4C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A4C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A4C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A4CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A4D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A4D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A4D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A4DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A4E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A540	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A544	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A548	
    				IET_RX_FRAG	unsigned int	0	0x5283A54C	
    				IET_TX_HOLD	unsigned int	0	0x5283A550	
    				IET_TX_FRAG	unsigned int	0	0x5283A554	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A558	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A57C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[1,0,0,0,0...]	0x5283A580	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[354,0,0,0,0...]	0x5283A5A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5E0	
    

    Observation:

    (lwip_stats.ip.xmit) == 5, but (lwip_stats.link.xmit == 0)

    Note: I saw no packets on Wireshark.

    Please review.

    Regards,

    Tollman

     

  • Hi Tollman,

    Apologies for a delayed response, I was Out of office due to health issues.

    1. Based on the stats above, I see some IP packets were sent from lwIP to the ethernet driver (5 packets)

    2. I have replicated the same use case and tested and it worked. I set the AM263Px to "192.168.1.2" and hardcoded my server to "192.168.1.4" and used the command "ncat -e /bin/cat -kv -l 8888" on my linux PC to test. I am attaching my binary and logs. Can you please test with my .out binary file and confirm the same results.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/enet_5F00_cpsw_5F00_tcpclient.release.out

    Note: The only changes I made were hardcoding the Static IP for client and server

    3. Can you please share the revision number of your AM263Px device? There should be a label mentioning "PROCxxxExx..."

    With the correct changes and network setup, I was able to run the same without any issues. And seeing that everything works fine on AM263x, i'm unsure on what the issue might be.

    Regards,
    Shaunak

  • Hi Shaunak,

    Regarding:
    "1. Based on the stats above, I see some IP packets were sent from lwIP to the ethernet driver (5 packets)"

    Does this mean that lwip_stats.link.xmit can be zero when packets are transmitted to the PHY? If so, what does this statistic mean?


    Regarding:
    "2. I have replicated the same use case and tested and it worked. I set the AM263Px to "192.168.1.2" and hardcoded my server to "192.168.1.4" and used the command "ncat -e /bin/cat -kv -l 8888" on my linux PC to test. I am attaching my binary and logs. Can you please test with my .out binary file and confirm the same results."

    Please provide a procedure for using this file. I tried copying it to my project, and then running in debug mode, but it gets overwritten. Also, it does not seem to be a valid file type for to Uniflash.


    Regarding:
    "3. Can you please share the revision number of your AM263Px device? There should be a label mentioning "PROCxxxExx...""

    The PCB says PCB#: PROC159E2

    Regards,

    Tollman

  • Hi Tollman,

    I tested with the AM263Px device, flashed SBL null, put the device in OSPI boot mode and then using CCS connected to the R5F core and loaded the given binary.

    I have attached the zip file so you can test in your desired wayenet_cpsw_tcpclient.zip

    enet_cpsw_tcpclient.zip

    Regards,

    Shaunak

  • Hi Shaunak,

    1)

    I executed the code you provided. I ran this on a second TMDSCNCD263P-AM263Px Sitara Control Card to check if I was unlucky with the first PCBA. Unfortunately, I still do not see Ethernet transmissions.

    Here is the printf output:

    INFO: Bootloader_socLoadHsmRtFw:82: Device Type : HSFS  <CR><LF>

    <CR><LF>

     [HSM_CLIENT] New Client Registered with Client Id = 0<CR><LF>

     INFO: Bootloader_socLoadHsmRtFw:84: HSMRT Size in Bytes : 23875 <CR><LF>

    INFO: Bootloader_socLoadHsmRtFw:97: hsm runtime firmware load complete ... <CR><LF>

    Starting NULL Bootloader ... <CR><LF>

    INFO: Bootloader_runCpu:155: CPU r5f1-1 is initialized to 400000000 Hz !!!<CR><LF>

    INFO: Bootloader_runCpu:155: CPU r5f1-0 is initialized to 400000000 Hz !!!<CR><LF>

    INFO: Bootloader_runCpu:155: CPU r5f0-1 is initialized to 400000000 Hz !!!<CR><LF>

    [BOOTLOADER_PROFILE] Boot Media       : undefined <CR><LF>

    [BOOTLOADER_PROFILE] Boot Image Size  : 0 KB <CR><LF>

    [BOOTLOADER_PROFILE] Cores present    : <CR><LF>

    [BOOTLOADER PROFILE] System_init                      :         70us <CR><LF>

    [BOOTLOADER PROFILE] Drivers_open                     :         40us <CR><LF>

    [BOOTLOADER PROFILE] LoadHsmRtFw                      :      31944us <CR><LF>

    [BOOTLOADER_PROFILE] SBL Total Time Taken             :      56144us <CR><LF>

    <CR><LF>

    NULL Bootloader Execution Complete... <CR><LF>

    INFO: Bootloader_loadSelfCpu:207: CPU r5f0-0 is initialized to 400000000 Hz !!!<CR><LF>

    INFO: Bootloader_runSelfCpu:217: All done, reseting self ...<CR><LF>

    <LF>

    ==========================<CR><LF>

      CPSW LWIP TCP CLIENT    <CR><LF>

    ==========================<CR><LF>

    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 <CR><LF>

    Link Status Changed. PHY: 0x0, state: up<CR><LF>

    EnetPhy_bindDriver:1828 <CR><LF>

    PHY 0 is alive<CR><LF>

    Starting lwIP, local interface IP is dhcp-enabled<CR><LF>

    [LWIPIF_LWIP] NETIF INIT SUCCESS<CR><LF>

    Host MAC address-0 : 70:ff:76:1f:60:9b<CR>

    <CR><LF>

    Enet IF UP Event. Local interface IP:0.0.0.0<CR><LF>

    [LWIPIF_LWIP] Enet has been started successfully<CR><LF>

    Enet IF UP Event. Local interface IP:192.168.1.2<CR><LF>

    Waiting for network UP ...<CR><LF>

    Waiting for network UP ...<CR><LF>

    Cpsw_handleLinkUp:1629 <CR><LF>

    MAC Port 2: link up<CR><LF>

    Network Link UP Event<CR><LF>

    Network is UP ...<CR><LF>

     TCP Client Menu: <CR><LF>

     IP eneterd is: 192.168.1.3 <CR><LF>

    <<<< ITERATION 1 >>>><CR><LF>

     Connecting to: 192.168.1.3:8888 <CR><LF>

    1. 49s : CPU load = 0.94 %<CR><LF>
    2. 50s : CPU load = 1.07 %<CR><LF>
    3. 51s : CPU load = 1.08 %<CR><LF>
    4. 52s : CPU load = 1.08 %<CR><LF>

    Connection with the server isn't established<CR><LF>

    <<<< ITERATION 2 >>>><CR><LF>

     Connecting to: 192.168.1.3:8888 <CR><LF>

    1. 53s : CPU load = 1.10 %<CR><LF>
    2. 54s : CPU load = 1.08 %<CR><LF>
    3. 55s : CPU load = 1.10 %<CR><LF>
    4. 56s : CPU load = 1.08 %<CR><LF>

    Connection with the server isn't established<CR><LF>

     

    2)

    As a sanity check, I again connected TMDSCNCD263-AM263x Sitara Control Card (not AM263Px) to the same TMDSHSECDOCK-180, and Ethernet connection immediately after the AM263Px version failed.

    Upon executing:

    enet_cpsw_tcpclient_am263x-cc_r5fss0-0_freertos_ti-arm-clang

    … on that same setup, I see the DHCP Discovery packets from the AM263x on Wireshark.

     

    3a)

    Have you compared the LWIP stats, and CPSW stats I provided to ones generated with your successful tests?

    3b) [repeat]

    Regarding:
    "1. Based on the stats above, I see some IP packets were sent from lwIP to the ethernet driver (5 packets)"

    Does this mean that lwip_stats.link.xmit can be zero when packets are transmitted to the PHY? If so, what does this statistic mean?

     

    4a)

    Are there any test points I can probe to verify the transmissions are making it to and from the PHY?

    4b)

    Are there other signals worth probing?

    Regards,

    Tollman

  • Hi Tollman,

    Thanks for your response so far. I would like to understand this in more depth. I'm not able to reproduce so debugging it this way is a bit difficult for me. Meanwhile,

    1. Can you please share your Binary (.out file) with me so I can test the same on my AM263Px.

    2. I checked the lwip_stats of my working application, the link stats are not incremented.

    I don't see the call "LINK_STATS_INC(link.xmit);" being hit in the execution. 

    In ideal working case, you should see lwip_stats.tcp.xmit and lwip_stats.tcp.recv incrementing. And the CPSW host port and mac port-1 stats Rx and Tx without drops..

    3. The previously shared stats were sent when the application was still stuck in waiting for network up while loop. Those stats did not help much. Can you please share the stats when the network is up, mac ports are link up and after you get the ABORT from lwIP.

    4. Did ping (ICMP) work?

    5. Can you once try running: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/EXAMPLES_ENET_LAYER2_CPSW.html (the same way, SBL NULL + OSPI boot mode)

    and verify if you see the packets on wireshark. My suspicion is not on the driver or the application code now. If this example fails to run, let's schedule a debug call on Monday and deep dive further in the debug/working session

    Regards,
    Shaunak

  • Regarding:

    1. Can you please share your Binary (.out file) with me so I can test the same on my AM263Px.

    Since my application original had the Abort Error, I haven’t been using it. I’ve been either testing with unmodified SDK examples, or code that you sent. I am attaching is the build output of the ‘static IP application’  that you provided. I only modified the host address.

    enet_cpsw_tcpclient_am263px-cc_r5fss0-0_p05-20240503a.zip

    2.

    Makes sense. Closed

    3. 

    Regarding:

    "The previously shared stats were sent when the application was still stuck in waiting for network up while loop. Those stats did not help much. Can you please share the stats when the network is up, mac ports are link up and after you get the ABORT from lwIP."

    I retested with your ‘static IP application’ by putting a breakpoint at

    DebugP_log("Connection with the server isn't established\r\n");

    I think the stats suggest that the software ‘thinks’ that Ethernet is working.

    I did two test runs, one with the Host PC connected and running Wireshark, and one test run with host PC disconnected. Only Ethernet switch connected.

    A txt file with the watch expressions from both runs is attached.

    ==================================================
    Run 1: Host PC connected and running wireshark
    ==================================================
    
    lwip_stats	struct stats_	{link={xmit=0,recv=0,fw=0,drop=0,chkerr=0...},etharp={xmit=21,recv=0,fw=0,drop=0,chkerr=...,ip_frag=...	0x700B18C8	
    	link	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18C8	
    		xmit	unsigned short	0	0x700B18C8	
    		recv	unsigned short	0	0x700B18CA	
    		fw	unsigned short	0	0x700B18CC	
    		drop	unsigned short	0	0x700B18CE	
    		chkerr	unsigned short	0	0x700B18D0	
    		lenerr	unsigned short	0	0x700B18D2	
    		memerr	unsigned short	0	0x700B18D4	
    		rterr	unsigned short	0	0x700B18D6	
    		proterr	unsigned short	0	0x700B18D8	
    		opterr	unsigned short	0	0x700B18DA	
    		err	unsigned short	0	0x700B18DC	
    		cachehit	unsigned short	0	0x700B18DE	
    	etharp	struct stats_proto	{xmit=21,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18E0	
    		xmit	unsigned short	21	0x700B18E0	
    		recv	unsigned short	0	0x700B18E2	
    		fw	unsigned short	0	0x700B18E4	
    		drop	unsigned short	0	0x700B18E6	
    		chkerr	unsigned short	0	0x700B18E8	
    		lenerr	unsigned short	0	0x700B18EA	
    		memerr	unsigned short	0	0x700B18EC	
    		rterr	unsigned short	0	0x700B18EE	
    		proterr	unsigned short	0	0x700B18F0	
    		opterr	unsigned short	0	0x700B18F2	
    		err	unsigned short	0	0x700B18F4	
    		cachehit	unsigned short	0	0x700B18F6	
    	ip_frag	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18F8	
    		xmit	unsigned short	0	0x700B18F8	
    		recv	unsigned short	0	0x700B18FA	
    		fw	unsigned short	0	0x700B18FC	
    		drop	unsigned short	0	0x700B18FE	
    		chkerr	unsigned short	0	0x700B1900	
    		lenerr	unsigned short	0	0x700B1902	
    		memerr	unsigned short	0	0x700B1904	
    		rterr	unsigned short	0	0x700B1906	
    		proterr	unsigned short	0	0x700B1908	
    		opterr	unsigned short	0	0x700B190A	
    		err	unsigned short	0	0x700B190C	
    		cachehit	unsigned short	0	0x700B190E	
    	ip	struct stats_proto	{xmit=5,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1910	
    		xmit	unsigned short	5	0x700B1910	
    		recv	unsigned short	0	0x700B1912	
    		fw	unsigned short	0	0x700B1914	
    		drop	unsigned short	0	0x700B1916	
    		chkerr	unsigned short	0	0x700B1918	
    		lenerr	unsigned short	0	0x700B191A	
    		memerr	unsigned short	0	0x700B191C	
    		rterr	unsigned short	0	0x700B191E	
    		proterr	unsigned short	0	0x700B1920	
    		opterr	unsigned short	0	0x700B1922	
    		err	unsigned short	0	0x700B1924	
    		cachehit	unsigned short	0	0x700B1926	
    	icmp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1928	
    		xmit	unsigned short	0	0x700B1928	
    		recv	unsigned short	0	0x700B192A	
    		fw	unsigned short	0	0x700B192C	
    		drop	unsigned short	0	0x700B192E	
    		chkerr	unsigned short	0	0x700B1930	
    		lenerr	unsigned short	0	0x700B1932	
    		memerr	unsigned short	0	0x700B1934	
    		rterr	unsigned short	0	0x700B1936	
    		proterr	unsigned short	0	0x700B1938	
    		opterr	unsigned short	0	0x700B193A	
    		err	unsigned short	0	0x700B193C	
    		cachehit	unsigned short	0	0x700B193E	
    	igmp	struct stats_igmp	{xmit=0,recv=0,drop=0,chkerr=0,lenerr=0...}	0x700B1940	
    		xmit	unsigned short	0	0x700B1940	
    		recv	unsigned short	0	0x700B1942	
    		drop	unsigned short	0	0x700B1944	
    		chkerr	unsigned short	0	0x700B1946	
    		lenerr	unsigned short	0	0x700B1948	
    		memerr	unsigned short	0	0x700B194A	
    		proterr	unsigned short	0	0x700B194C	
    		rx_v1	unsigned short	0	0x700B194E	
    		rx_group	unsigned short	0	0x700B1950	
    		rx_general	unsigned short	0	0x700B1952	
    		rx_report	unsigned short	0	0x700B1954	
    		tx_join	unsigned short	0	0x700B1956	
    		tx_leave	unsigned short	0	0x700B1958	
    		tx_report	unsigned short	0	0x700B195A	
    	udp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B195C	
    		xmit	unsigned short	0	0x700B195C	
    		recv	unsigned short	0	0x700B195E	
    		fw	unsigned short	0	0x700B1960	
    		drop	unsigned short	0	0x700B1962	
    		chkerr	unsigned short	0	0x700B1964	
    		lenerr	unsigned short	0	0x700B1966	
    		memerr	unsigned short	0	0x700B1968	
    		rterr	unsigned short	0	0x700B196A	
    		proterr	unsigned short	0	0x700B196C	
    		opterr	unsigned short	0	0x700B196E	
    		err	unsigned short	0	0x700B1970	
    		cachehit	unsigned short	0	0x700B1972	
    	tcp	struct stats_proto	{xmit=5,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1974	
    		xmit	unsigned short	5	0x700B1974	
    		recv	unsigned short	0	0x700B1976	
    		fw	unsigned short	0	0x700B1978	
    		drop	unsigned short	0	0x700B197A	
    		chkerr	unsigned short	0	0x700B197C	
    		lenerr	unsigned short	0	0x700B197E	
    		memerr	unsigned short	0	0x700B1980	
    		rterr	unsigned short	0	0x700B1982	
    		proterr	unsigned short	0	0x700B1984	
    		opterr	unsigned short	0	0x700B1986	
    		err	unsigned short	0	0x700B1988	
    		cachehit	unsigned short	0	0x700B198A	
    	mem	struct stats_mem	{name=0x7011A42C {77 'M'},err=0,avail=0,used=128,max=224...}	0x700B198C	
    		name	unsigned char *	0x7011A42C "MEM	0x700B198C	
    		err	unsigned short	0	0x700B1990	
    		avail	unsigned short	0	0x700B1992	
    		used	unsigned short	128	0x700B1994	
    		max	unsigned short	224	0x700B1996	
    		illegal	unsigned short	0	0x700B1998	
    	memp	struct stats_mem *[22]	[0x700B33E4 {name=0x7011A328 {82 'R'},err=0,avail=3,used=0,max=0...},0x700B3484 ...,...	0x700B199C	
    		[0]	struct stats_mem *	0x700B33E4 {name=0x7011A328 {82 'R'},err=0,avail=3,used=0,max=0...}	0x700B199C	
    		[1]	struct stats_mem *	0x700B3484 {name=0x7011A370 {85 'U'},err=0,avail=4,used=0,max=0...}	0x700B19A0	
    		[2]	struct stats_mem *	0x700B3454 {name=0x7011A360 {84 'T'},err=0,avail=5,used=0,max=1...}	0x700B19A4	
    		[3]	struct stats_mem *	0x700B3464 {name=0x70119874 {84 'T'},err=0,avail=8,used=0,max=0...}	0x700B19A8	
    		[4]	struct stats_mem *	0x700B3474 {name=0x7011A350 {84 'T'},err=0,avail=128,used=0,max=1...}	0x700B19AC	
    		[5]	struct stats_mem *	0x700B3324 {name=0x7011A053 {65 'A'},err=0,avail=5,used=0,max=0...}	0x700B19B0	
    		[6]	struct stats_mem *	0x700B33F4 {name=0x7011A017 {82 'R'},err=0,avail=10,used=0,max=0...}	0x700B19B4	
    		[7]	struct stats_mem *	0x700B3344 {name=0x7011A111 {70 'F'},err=0,avail=15,used=0,max=0...}	0x700B19B8	
    		[8]	struct stats_mem *	0x700B3364 {name=0x7011A38E {78 'N'},err=0,avail=128,used=0,max=0...}	0x700B19BC	
    		[9]	struct stats_mem *	0x700B3374 {name=0x7011A378 {78 'N'},err=0,avail=10,used=1,max=1...}	0x700B19C0	
    		[10]	struct stats_mem *	0x700B3434 {name=0x70119B25 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B19C4	
    		[11]	struct stats_mem *	0x700B3444 {name=0x70119659 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B19C8	
    		[12]	struct stats_mem *	0x700B3334 {name=0x7011A035 {65 'A'},err=0,avail=30,used=1,max=1...}	0x700B19CC	
    		[13]	struct stats_mem *	0x700B3354 {name=0x70119FEC {73 'I'},err=0,avail=8,used=0,max=0...}	0x700B19D0	
    		[14]	struct stats_mem *	0x700B3424 {name=0x70119E20 {83 'S'},err=0,avail=17,used=7,max=8...}	0x700B19D4	
    		[15]	struct stats_mem *	0x700B3384 {name=0x7011A3D2 {78 'N'},err=0,avail=1,used=0,max=0...}	0x700B19D8	
    		[16]	struct stats_mem *	0x700B3394 {name=0x70119C39 {80 'P'},err=0,avail=128,used=0,max=0...}	0x700B19DC	
    		[17]	struct stats_mem *	0x700B33A4 {name=0x7011A0DF {80 'P'},err=0,avail=0,used=0,max=0...}	0x700B19E0	
    		[18]	struct stats_mem *	0x700B33B4 {name=0x70119F94 {77 'M'},err=0,avail=100,used=1,max=2...}	0x700B19E4	
    		[19]	struct stats_mem *	0x700B33C4 {name=0x70119EEC {77 'M'},err=0,avail=48,used=0,max=0...}	0x700B19E8	
    		[20]	struct stats_mem *	0x700B33D4 {name=0x70119E44 {77 'M'},err=0,avail=4,used=0,max=0...}	0x700B19EC	
    		[21]	struct stats_mem *	0x700B3414 {name=0x7011A305 {83 'S'},err=0,avail=22,used=0,max=0...}	0x700B19F0	
    	sys	struct stats_sys	{sem={used=1,max=1,err=0},mutex={used=1,max=1,err=0},mbox={used=2,max=2,err=0}}	0x700B19F4	
    		sem	struct stats_syselem	{used=1,max=1,err=0}	0x700B19F4	
    			used	unsigned short	1	0x700B19F4	
    			max	unsigned short	1	0x700B19F6	
    			err	unsigned short	0	0x700B19F8	
    		mutex	struct stats_syselem	{used=1,max=1,err=0}	0x700B19FA	
    			used	unsigned short	1	0x700B19FA	
    			max	unsigned short	1	0x700B19FC	
    			err	unsigned short	0	0x700B19FE	
    		mbox	struct stats_syselem	{used=2,max=2,err=0}	0x700B1A00	
    			used	unsigned short	2	0x700B1A00	
    			max	unsigned short	2	0x700B1A02	
    			err	unsigned short	0	0x700B1A04	
    	mib2	struct stats_mib2	{ipinhdrerrors=0,ipinaddrerrors=0,ipinunknownprotos=0,ipindiscards=0,ipindelivers=...	0x700B1A08	
    		ipinhdrerrors	unsigned int	0	0x700B1A08	
    		ipinaddrerrors	unsigned int	0	0x700B1A0C	
    		ipinunknownprotos	unsigned int	0	0x700B1A10	
    		ipindiscards	unsigned int	0	0x700B1A14	
    		ipindelivers	unsigned int	0	0x700B1A18	
    		ipoutrequests	unsigned int	5	0x700B1A1C	
    		ipoutdiscards	unsigned int	0	0x700B1A20	
    		ipoutnoroutes	unsigned int	0	0x700B1A24	
    		ipreasmoks	unsigned int	0	0x700B1A28	
    		ipreasmfails	unsigned int	0	0x700B1A2C	
    		ipfragoks	unsigned int	0	0x700B1A30	
    		ipfragfails	unsigned int	0	0x700B1A34	
    		ipfragcreates	unsigned int	0	0x700B1A38	
    		ipreasmreqds	unsigned int	0	0x700B1A3C	
    		ipforwdatagrams	unsigned int	0	0x700B1A40	
    		ipinreceives	unsigned int	0	0x700B1A44	
    		tcpactiveopens	unsigned int	1	0x700B1A48	
    		tcppassiveopens	unsigned int	0	0x700B1A4C	
    		tcpattemptfails	unsigned int	0	0x700B1A50	
    		tcpestabresets	unsigned int	0	0x700B1A54	
    		tcpoutsegs	unsigned int	1	0x700B1A58	
    		tcpretranssegs	unsigned int	0	0x700B1A5C	
    		tcpinsegs	unsigned int	0	0x700B1A60	
    		tcpinerrs	unsigned int	0	0x700B1A64	
    		tcpoutrsts	unsigned int	0	0x700B1A68	
    		udpindatagrams	unsigned int	0	0x700B1A6C	
    		udpnoports	unsigned int	0	0x700B1A70	
    		udpinerrors	unsigned int	0	0x700B1A74	
    		udpoutdatagrams	unsigned int	0	0x700B1A78	
    		icmpinmsgs	unsigned int	0	0x700B1A7C	
    		icmpinerrors	unsigned int	0	0x700B1A80	
    		icmpindestunreachs	unsigned int	0	0x700B1A84	
    		icmpintimeexcds	unsigned int	0	0x700B1A88	
    		icmpinparmprobs	unsigned int	0	0x700B1A8C	
    		icmpinsrcquenchs	unsigned int	0	0x700B1A90	
    		icmpinredirects	unsigned int	0	0x700B1A94	
    		icmpinechos	unsigned int	0	0x700B1A98	
    		icmpinechoreps	unsigned int	0	0x700B1A9C	
    		icmpintimestamps	unsigned int	0	0x700B1AA0	
    		icmpintimestampreps	unsigned int	0	0x700B1AA4	
    		icmpinaddrmasks	unsigned int	0	0x700B1AA8	
    		icmpinaddrmaskreps	unsigned int	0	0x700B1AAC	
    		icmpoutmsgs	unsigned int	0	0x700B1AB0	
    		icmpouterrors	unsigned int	0	0x700B1AB4	
    		icmpoutdestunreachs	unsigned int	0	0x700B1AB8	
    		icmpouttimeexcds	unsigned int	0	0x700B1ABC	
    		icmpoutechos	unsigned int	0	0x700B1AC0	
    		icmpoutechoreps	unsigned int	0	0x700B1AC4	
    -----------
    
    (CSL_Xge_cpswRegs *) 0x52820000	struct CSL_Xge_cpswRegs *	0x52820000 {ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',...,EM_CONTROL_REG=...		
    	*((CSL_Xge_cpswRegs *) 0x52820000)	struct CSL_Xge_cpswRegs	{ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',0 '\x00',0 '\x00',...,EM_CONTROL_REG=...	0x52820000	
    		ID_VER_REG	unsigned int	1804603651	0x52820000	
    		CONTROL_REG	unsigned int	278532	0x52820004	
    		Resv_16	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820008	
    		EM_CONTROL_REG	unsigned int	0	0x52820010	
    		STAT_PORT_EN_REG	unsigned int	7	0x52820014	
    		PTYPE_REG	unsigned int	2	0x52820018	
    		SOFT_IDLE_REG	unsigned int	0	0x5282001C	
    		THRU_RATE_REG	unsigned int	12289	0x52820020	
    		GAP_THRESH_REG	unsigned int	11	0x52820024	
    		TX_START_WDS_REG	unsigned int	8	0x52820028	
    		EEE_PRESCALE_REG	unsigned int	0	0x5282002C	
    		TX_G_OFLOW_THRESH_SET_REG	unsigned int	4294967295	0x52820030	
    		TX_G_OFLOW_THRESH_CLR_REG	unsigned int	0	0x52820034	
    		TX_G_BUF_THRESH_SET_L_REG	unsigned int	4294967295	0x52820038	
    		TX_G_BUF_THRESH_SET_H_REG	unsigned int	4294967295	0x5282003C	
    		TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52820040	
    		TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x52820044	
    		Resv_80	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820048	
    		VLAN_LTYPE_REG	unsigned int	2292744448	0x52820050	
    		EST_TS_DOMAIN_REG	unsigned int	0	0x52820054	
    		Resv_256	unsigned char[168]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820058	
    		TX_PRI0_MAXLEN_REG	unsigned int	2024	0x52820100	
    		TX_PRI1_MAXLEN_REG	unsigned int	2024	0x52820104	
    		TX_PRI2_MAXLEN_REG	unsigned int	2024	0x52820108	
    		TX_PRI3_MAXLEN_REG	unsigned int	2024	0x5282010C	
    		TX_PRI4_MAXLEN_REG	unsigned int	2024	0x52820110	
    		TX_PRI5_MAXLEN_REG	unsigned int	2024	0x52820114	
    		TX_PRI6_MAXLEN_REG	unsigned int	2024	0x52820118	
    		TX_PRI7_MAXLEN_REG	unsigned int	2024	0x5282011C	
    		Resv_4100	unsigned char[3812]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820120	
    		P0_CONTROL_REG	unsigned int	131083	0x52821004	
    		P0_FLOW_ID_OFFSET_REG	unsigned int	0	0x52821008	
    		Resv_4112	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282100C	
    		P0_BLK_CNT_REG	unsigned int	2	0x52821010	
    		P0_PORT_VLAN_REG	unsigned int	0	0x52821014	
    		P0_TX_PRI_MAP_REG	unsigned int	1985229328	0x52821018	
    		P0_PRI_CTL_REG	unsigned int	0	0x5282101C	
    		P0_RX_PRI_MAP_REG	unsigned int	1985229328	0x52821020	
    		P0_RX_MAXLEN_REG	unsigned int	1518	0x52821024	
    		P0_TX_BLKS_PRI_REG	unsigned int	19158648	0x52821028	
    		Resv_4144	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282102C	
    		P0_IDLE2LPI_REG	unsigned int	0	0x52821030	
    		P0_LPI2WAKE_REG	unsigned int	0	0x52821034	
    		P0_EEE_STATUS_REG	unsigned int	96	0x52821038	
    		Resv_4176	unsigned char[20]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5282103C	
    		P0_FIFO_STATUS_REG	unsigned int	0	0x52821050	
    		Resv_4384	unsigned char[204]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821054	
    		P0_RX_DSCP_MAP_REG	unsigned int[8]	[0,286331153,572662306,858993459,1145324612...]	0x52821120	
    		P0_PRI_CIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821140	
    		P0_PRI_EIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821160	
    		P0_TX_D_THRESH_SET_L_REG	unsigned int	522133279	0x52821180	
    		P0_TX_D_THRESH_SET_H_REG	unsigned int	522133279	0x52821184	
    		P0_TX_D_THRESH_CLR_L_REG	unsigned int	0	0x52821188	
    		P0_TX_D_THRESH_CLR_H_REG	unsigned int	0	0x5282118C	
    		P0_TX_G_BUF_THRESH_SET_L_REG	unsigned int	522133279	0x52821190	
    		P0_TX_G_BUF_THRESH_SET_H_REG	unsigned int	522133279	0x52821194	
    		P0_TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52821198	
    		P0_TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x5282119C	
    		Resv_4864	unsigned char[352]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x528211A0	
    		P0_SRC_ID_A_REG	unsigned int	67305985	0x52821300	
    		P0_SRC_ID_B_REG	unsigned int	134678021	0x52821304	
    		Resv_4896	unsigned char[24]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821308	
    		P0_HOST_BLKS_PRI_REG	unsigned int	0	0x52821320	
    		Resv_8192	unsigned char[3292]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821324	
    		ENETPORT	struct CSL_Xge_cpswEnetportRegs[2]	[{PN_RESERVED_REG=0,PN_CONTROL_REG=0,PN_MAX_BLKS_REG=4100,Resv_16=[0 '\x00',0 '\x00',...,PN_BLK_CNT_REG=...,...	0x52822000	
    		Resv_73728	unsigned char[57344]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52824000	
    		CPSW_NU_EST	struct CSL_Xge_cpswRegs_CPSW_NU_EST[2]	[{FETCH_LOC=[0,0,0,0,0...]},{FETCH_LOC=[0,0,0,0,0...]}]	0x52832000	
    		Resv_106496	unsigned char[31744]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52832400	
    		P0_STATS	struct CSL_Xge_cpswP0StatsRegs	{RXGOODFRAMES=21,RXBROADCASTFRAMES=21,RXMULTICASTFRAMES=0,Resv_16=[0 '\x00',0 '\x00',...,RXCRCERRORS=...	0x5283A000	
    			RXGOODFRAMES	unsigned int	21	0x5283A000	
    			RXBROADCASTFRAMES	unsigned int	21	0x5283A004	
    			RXMULTICASTFRAMES	unsigned int	0	0x5283A008	
    			Resv_16	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A00C	
    			RXCRCERRORS	unsigned int	0	0x5283A010	
    			Resv_24	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A014	
    			RXOVERSIZEDFRAMES	unsigned int	0	0x5283A018	
    			Resv_32	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A01C	
    			RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A020	
    			Resv_40	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A024	
    			ALE_DROP	unsigned int	0	0x5283A028	
    			ALE_OVERRUN_DROP	unsigned int	0	0x5283A02C	
    			RXOCTETS	unsigned int	1344	0x5283A030	
    			TXGOODFRAMES	unsigned int	0	0x5283A034	
    			TXBROADCASTFRAMES	unsigned int	0	0x5283A038	
    			TXMULTICASTFRAMES	unsigned int	0	0x5283A03C	
    			Resv_76	unsigned char[12]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A040	
    			TX_SOF_OVERRUN	unsigned int	0	0x5283A04C	
    			TX_MOF_OVERRUN	unsigned int	0	0x5283A050	
    			Resv_100	unsigned char[16]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A054	
    			TXOCTETS	unsigned int	0	0x5283A064	
    			OCTETFRAMES64	unsigned int	21	0x5283A068	
    			OCTETFRAMES65T127	unsigned int	0	0x5283A06C	
    			OCTETFRAMES128T255	unsigned int	0	0x5283A070	
    			OCTETFRAMES256T511	unsigned int	0	0x5283A074	
    			OCTETFRAMES512T1023	unsigned int	0	0x5283A078	
    			OCTETFRAMES1024TUP	unsigned int	0	0x5283A07C	
    			NETOCTETS	unsigned int	1344	0x5283A080	
    			RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A084	
    			PORTMASK_DROP	unsigned int	0	0x5283A088	
    			RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A08C	
    			ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A090	
    			ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A094	
    			ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A098	
    			ALE_BLOCK_DROP	unsigned int	0	0x5283A09C	
    			ALE_SECURE_DROP	unsigned int	0	0x5283A0A0	
    			ALE_AUTH_DROP	unsigned int	0	0x5283A0A4	
    			ALE_UNKN_UNI	unsigned int	0	0x5283A0A8	
    			ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A0AC	
    			ALE_UNKN_MLT	unsigned int	0	0x5283A0B0	
    			ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A0B4	
    			ALE_UNKN_BRD	unsigned int	0	0x5283A0B8	
    			ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A0BC	
    			ALE_POL_MATCH	unsigned int	0	0x5283A0C0	
    			ALE_POL_MATCH_RED	unsigned int	0	0x5283A0C4	
    			ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A0C8	
    			ALE_MULT_SA_DROP	unsigned int	0	0x5283A0CC	
    			ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A0D0	
    			ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A0D4	
    			ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A0D8	
    			ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A0DC	
    			Resv_376	unsigned char[156]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A0E0	
    			TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A17C	
    			ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A180	
    				[0]	unsigned int	0	0x5283A180	
    				[1]	unsigned int	0	0x5283A184	
    				[2]	unsigned int	0	0x5283A188	
    				[3]	unsigned int	0	0x5283A18C	
    				[4]	unsigned int	0	0x5283A190	
    				[5]	unsigned int	0	0x5283A194	
    				[6]	unsigned int	0	0x5283A198	
    				[7]	unsigned int	0	0x5283A19C	
    			ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1A0	
    				[0]	unsigned int	0	0x5283A1A0	
    				[1]	unsigned int	0	0x5283A1A4	
    				[2]	unsigned int	0	0x5283A1A8	
    				[3]	unsigned int	0	0x5283A1AC	
    				[4]	unsigned int	0	0x5283A1B0	
    				[5]	unsigned int	0	0x5283A1B4	
    				[6]	unsigned int	0	0x5283A1B8	
    				[7]	unsigned int	0	0x5283A1BC	
    			ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1C0	
    				[0]	unsigned int	0	0x5283A1C0	
    				[1]	unsigned int	0	0x5283A1C4	
    				[2]	unsigned int	0	0x5283A1C8	
    				[3]	unsigned int	0	0x5283A1CC	
    				[4]	unsigned int	0	0x5283A1D0	
    				[5]	unsigned int	0	0x5283A1D4	
    				[6]	unsigned int	0	0x5283A1D8	
    				[7]	unsigned int	0	0x5283A1DC	
    			ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1E0	
    				[0]	unsigned int	0	0x5283A1E0	
    				[1]	unsigned int	0	0x5283A1E4	
    				[2]	unsigned int	0	0x5283A1E8	
    				[3]	unsigned int	0	0x5283A1EC	
    				[4]	unsigned int	0	0x5283A1F0	
    				[5]	unsigned int	0	0x5283A1F4	
    				[6]	unsigned int	0	0x5283A1F8	
    				[7]	unsigned int	0	0x5283A1FC	
    		PN_STATS	struct CSL_Xge_cpswPnStatsRegs[2]	[{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...,...	0x5283A200	
    			[0]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A200	
    				RXGOODFRAMES	unsigned int	0	0x5283A200	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A204	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A208	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A20C	
    				RXCRCERRORS	unsigned int	0	0x5283A210	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A214	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A218	
    				RXJABBERFRAMES	unsigned int	0	0x5283A21C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A220	
    				RXFRAGMENTS	unsigned int	0	0x5283A224	
    				ALE_DROP	unsigned int	0	0x5283A228	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A22C	
    				RXOCTETS	unsigned int	0	0x5283A230	
    				TXGOODFRAMES	unsigned int	0	0x5283A234	
    				TXBROADCASTFRAMES	unsigned int	0	0x5283A238	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A23C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A240	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A244	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A248	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A24C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A250	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A254	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A258	
    				RXIPGERROR	unsigned int	0	0x5283A25C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A260	
    				TXOCTETS	unsigned int	0	0x5283A264	
    				OCTETFRAMES64	unsigned int	0	0x5283A268	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A26C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A270	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A274	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A278	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A27C	
    				NETOCTETS	unsigned int	0	0x5283A280	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A284	
    				PORTMASK_DROP	unsigned int	0	0x5283A288	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A28C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A290	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A294	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A298	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A29C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A2A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A2A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A2A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A2AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A2B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A2B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A2B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A2BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A2C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A2C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A2C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A2CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A2D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A2D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A2D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A2DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A2E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A340	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A344	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A348	
    				IET_RX_FRAG	unsigned int	0	0x5283A34C	
    				IET_TX_HOLD	unsigned int	0	0x5283A350	
    				IET_TX_FRAG	unsigned int	0	0x5283A354	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A358	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A37C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A380	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3E0	
    			[1]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A400	
    				RXGOODFRAMES	unsigned int	0	0x5283A400	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A404	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A408	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A40C	
    				RXCRCERRORS	unsigned int	0	0x5283A410	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A414	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A418	
    				RXJABBERFRAMES	unsigned int	0	0x5283A41C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A420	
    				RXFRAGMENTS	unsigned int	0	0x5283A424	
    				ALE_DROP	unsigned int	0	0x5283A428	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A42C	
    				RXOCTETS	unsigned int	0	0x5283A430	
    				TXGOODFRAMES	unsigned int	21	0x5283A434	
    				TXBROADCASTFRAMES	unsigned int	21	0x5283A438	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A43C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A440	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A444	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A448	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A44C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A450	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A454	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A458	
    				RXIPGERROR	unsigned int	0	0x5283A45C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A460	
    				TXOCTETS	unsigned int	1344	0x5283A464	
    				OCTETFRAMES64	unsigned int	21	0x5283A468	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A46C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A470	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A474	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A478	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A47C	
    				NETOCTETS	unsigned int	1344	0x5283A480	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A484	
    				PORTMASK_DROP	unsigned int	0	0x5283A488	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A48C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A490	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A494	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A498	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A49C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A4A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A4A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A4A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A4AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A4B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A4B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A4B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A4BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A4C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A4C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A4C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A4CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A4D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A4D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A4D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A4DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A4E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A540	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A544	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A548	
    				IET_RX_FRAG	unsigned int	0	0x5283A54C	
    				IET_TX_HOLD	unsigned int	0	0x5283A550	
    				IET_TX_FRAG	unsigned int	0	0x5283A554	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A558	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A57C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[21,0,0,0,0...]	0x5283A580	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[1344,0,0,0,0...]	0x5283A5A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5E0	
    
    ============================================================
    Run 2: Host PC disconnected. Only Ethernet switch connected.
    ============================================================
    lwip_stats	struct stats_	{link={xmit=0,recv=0,fw=0,drop=0,chkerr=0...},etharp={xmit=21,recv=0,fw=0,drop=0,chkerr=...,ip_frag=...	0x700B18C8	
    	link	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18C8	
    		xmit	unsigned short	0	0x700B18C8	
    		recv	unsigned short	0	0x700B18CA	
    		fw	unsigned short	0	0x700B18CC	
    		drop	unsigned short	0	0x700B18CE	
    		chkerr	unsigned short	0	0x700B18D0	
    		lenerr	unsigned short	0	0x700B18D2	
    		memerr	unsigned short	0	0x700B18D4	
    		rterr	unsigned short	0	0x700B18D6	
    		proterr	unsigned short	0	0x700B18D8	
    		opterr	unsigned short	0	0x700B18DA	
    		err	unsigned short	0	0x700B18DC	
    		cachehit	unsigned short	0	0x700B18DE	
    	etharp	struct stats_proto	{xmit=21,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18E0	
    		xmit	unsigned short	21	0x700B18E0	
    		recv	unsigned short	0	0x700B18E2	
    		fw	unsigned short	0	0x700B18E4	
    		drop	unsigned short	0	0x700B18E6	
    		chkerr	unsigned short	0	0x700B18E8	
    		lenerr	unsigned short	0	0x700B18EA	
    		memerr	unsigned short	0	0x700B18EC	
    		rterr	unsigned short	0	0x700B18EE	
    		proterr	unsigned short	0	0x700B18F0	
    		opterr	unsigned short	0	0x700B18F2	
    		err	unsigned short	0	0x700B18F4	
    		cachehit	unsigned short	0	0x700B18F6	
    	ip_frag	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18F8	
    		xmit	unsigned short	0	0x700B18F8	
    		recv	unsigned short	0	0x700B18FA	
    		fw	unsigned short	0	0x700B18FC	
    		drop	unsigned short	0	0x700B18FE	
    		chkerr	unsigned short	0	0x700B1900	
    		lenerr	unsigned short	0	0x700B1902	
    		memerr	unsigned short	0	0x700B1904	
    		rterr	unsigned short	0	0x700B1906	
    		proterr	unsigned short	0	0x700B1908	
    		opterr	unsigned short	0	0x700B190A	
    		err	unsigned short	0	0x700B190C	
    		cachehit	unsigned short	0	0x700B190E	
    	ip	struct stats_proto	{xmit=5,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1910	
    		xmit	unsigned short	5	0x700B1910	
    		recv	unsigned short	0	0x700B1912	
    		fw	unsigned short	0	0x700B1914	
    		drop	unsigned short	0	0x700B1916	
    		chkerr	unsigned short	0	0x700B1918	
    		lenerr	unsigned short	0	0x700B191A	
    		memerr	unsigned short	0	0x700B191C	
    		rterr	unsigned short	0	0x700B191E	
    		proterr	unsigned short	0	0x700B1920	
    		opterr	unsigned short	0	0x700B1922	
    		err	unsigned short	0	0x700B1924	
    		cachehit	unsigned short	0	0x700B1926	
    	icmp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1928	
    		xmit	unsigned short	0	0x700B1928	
    		recv	unsigned short	0	0x700B192A	
    		fw	unsigned short	0	0x700B192C	
    		drop	unsigned short	0	0x700B192E	
    		chkerr	unsigned short	0	0x700B1930	
    		lenerr	unsigned short	0	0x700B1932	
    		memerr	unsigned short	0	0x700B1934	
    		rterr	unsigned short	0	0x700B1936	
    		proterr	unsigned short	0	0x700B1938	
    		opterr	unsigned short	0	0x700B193A	
    		err	unsigned short	0	0x700B193C	
    		cachehit	unsigned short	0	0x700B193E	
    	igmp	struct stats_igmp	{xmit=0,recv=0,drop=0,chkerr=0,lenerr=0...}	0x700B1940	
    		xmit	unsigned short	0	0x700B1940	
    		recv	unsigned short	0	0x700B1942	
    		drop	unsigned short	0	0x700B1944	
    		chkerr	unsigned short	0	0x700B1946	
    		lenerr	unsigned short	0	0x700B1948	
    		memerr	unsigned short	0	0x700B194A	
    		proterr	unsigned short	0	0x700B194C	
    		rx_v1	unsigned short	0	0x700B194E	
    		rx_group	unsigned short	0	0x700B1950	
    		rx_general	unsigned short	0	0x700B1952	
    		rx_report	unsigned short	0	0x700B1954	
    		tx_join	unsigned short	0	0x700B1956	
    		tx_leave	unsigned short	0	0x700B1958	
    		tx_report	unsigned short	0	0x700B195A	
    	udp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B195C	
    		xmit	unsigned short	0	0x700B195C	
    		recv	unsigned short	0	0x700B195E	
    		fw	unsigned short	0	0x700B1960	
    		drop	unsigned short	0	0x700B1962	
    		chkerr	unsigned short	0	0x700B1964	
    		lenerr	unsigned short	0	0x700B1966	
    		memerr	unsigned short	0	0x700B1968	
    		rterr	unsigned short	0	0x700B196A	
    		proterr	unsigned short	0	0x700B196C	
    		opterr	unsigned short	0	0x700B196E	
    		err	unsigned short	0	0x700B1970	
    		cachehit	unsigned short	0	0x700B1972	
    	tcp	struct stats_proto	{xmit=5,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1974	
    		xmit	unsigned short	5	0x700B1974	
    		recv	unsigned short	0	0x700B1976	
    		fw	unsigned short	0	0x700B1978	
    		drop	unsigned short	0	0x700B197A	
    		chkerr	unsigned short	0	0x700B197C	
    		lenerr	unsigned short	0	0x700B197E	
    		memerr	unsigned short	0	0x700B1980	
    		rterr	unsigned short	0	0x700B1982	
    		proterr	unsigned short	0	0x700B1984	
    		opterr	unsigned short	0	0x700B1986	
    		err	unsigned short	0	0x700B1988	
    		cachehit	unsigned short	0	0x700B198A	
    	mem	struct stats_mem	{name=0x7011A42C {77 'M'},err=0,avail=0,used=128,max=224...}	0x700B198C	
    		name	unsigned char *	0x7011A42C "MEM	0x700B198C	
    		err	unsigned short	0	0x700B1990	
    		avail	unsigned short	0	0x700B1992	
    		used	unsigned short	128	0x700B1994	
    		max	unsigned short	224	0x700B1996	
    		illegal	unsigned short	0	0x700B1998	
    	memp	struct stats_mem *[22]	[0x700B33E4 {name=0x7011A328 {82 'R'},err=0,avail=3,used=0,max=0...},0x700B3484 ...,...	0x700B199C	
    		[0]	struct stats_mem *	0x700B33E4 {name=0x7011A328 {82 'R'},err=0,avail=3,used=0,max=0...}	0x700B199C	
    		[1]	struct stats_mem *	0x700B3484 {name=0x7011A370 {85 'U'},err=0,avail=4,used=0,max=0...}	0x700B19A0	
    		[2]	struct stats_mem *	0x700B3454 {name=0x7011A360 {84 'T'},err=0,avail=5,used=0,max=1...}	0x700B19A4	
    		[3]	struct stats_mem *	0x700B3464 {name=0x70119874 {84 'T'},err=0,avail=8,used=0,max=0...}	0x700B19A8	
    		[4]	struct stats_mem *	0x700B3474 {name=0x7011A350 {84 'T'},err=0,avail=128,used=0,max=1...}	0x700B19AC	
    		[5]	struct stats_mem *	0x700B3324 {name=0x7011A053 {65 'A'},err=0,avail=5,used=0,max=0...}	0x700B19B0	
    		[6]	struct stats_mem *	0x700B33F4 {name=0x7011A017 {82 'R'},err=0,avail=10,used=0,max=0...}	0x700B19B4	
    		[7]	struct stats_mem *	0x700B3344 {name=0x7011A111 {70 'F'},err=0,avail=15,used=0,max=0...}	0x700B19B8	
    		[8]	struct stats_mem *	0x700B3364 {name=0x7011A38E {78 'N'},err=0,avail=128,used=0,max=0...}	0x700B19BC	
    		[9]	struct stats_mem *	0x700B3374 {name=0x7011A378 {78 'N'},err=0,avail=10,used=1,max=1...}	0x700B19C0	
    		[10]	struct stats_mem *	0x700B3434 {name=0x70119B25 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B19C4	
    		[11]	struct stats_mem *	0x700B3444 {name=0x70119659 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B19C8	
    		[12]	struct stats_mem *	0x700B3334 {name=0x7011A035 {65 'A'},err=0,avail=30,used=1,max=1...}	0x700B19CC	
    		[13]	struct stats_mem *	0x700B3354 {name=0x70119FEC {73 'I'},err=0,avail=8,used=0,max=0...}	0x700B19D0	
    		[14]	struct stats_mem *	0x700B3424 {name=0x70119E20 {83 'S'},err=0,avail=17,used=7,max=8...}	0x700B19D4	
    		[15]	struct stats_mem *	0x700B3384 {name=0x7011A3D2 {78 'N'},err=0,avail=1,used=0,max=0...}	0x700B19D8	
    		[16]	struct stats_mem *	0x700B3394 {name=0x70119C39 {80 'P'},err=0,avail=128,used=0,max=0...}	0x700B19DC	
    		[17]	struct stats_mem *	0x700B33A4 {name=0x7011A0DF {80 'P'},err=0,avail=0,used=0,max=0...}	0x700B19E0	
    		[18]	struct stats_mem *	0x700B33B4 {name=0x70119F94 {77 'M'},err=0,avail=100,used=1,max=2...}	0x700B19E4	
    		[19]	struct stats_mem *	0x700B33C4 {name=0x70119EEC {77 'M'},err=0,avail=48,used=0,max=0...}	0x700B19E8	
    		[20]	struct stats_mem *	0x700B33D4 {name=0x70119E44 {77 'M'},err=0,avail=4,used=0,max=0...}	0x700B19EC	
    		[21]	struct stats_mem *	0x700B3414 {name=0x7011A305 {83 'S'},err=0,avail=22,used=0,max=0...}	0x700B19F0	
    	sys	struct stats_sys	{sem={used=1,max=1,err=0},mutex={used=1,max=1,err=0},mbox={used=2,max=2,err=0}}	0x700B19F4	
    		sem	struct stats_syselem	{used=1,max=1,err=0}	0x700B19F4	
    			used	unsigned short	1	0x700B19F4	
    			max	unsigned short	1	0x700B19F6	
    			err	unsigned short	0	0x700B19F8	
    		mutex	struct stats_syselem	{used=1,max=1,err=0}	0x700B19FA	
    			used	unsigned short	1	0x700B19FA	
    			max	unsigned short	1	0x700B19FC	
    			err	unsigned short	0	0x700B19FE	
    		mbox	struct stats_syselem	{used=2,max=2,err=0}	0x700B1A00	
    			used	unsigned short	2	0x700B1A00	
    			max	unsigned short	2	0x700B1A02	
    			err	unsigned short	0	0x700B1A04	
    	mib2	struct stats_mib2	{ipinhdrerrors=0,ipinaddrerrors=0,ipinunknownprotos=0,ipindiscards=0,ipindelivers=...	0x700B1A08	
    		ipinhdrerrors	unsigned int	0	0x700B1A08	
    		ipinaddrerrors	unsigned int	0	0x700B1A0C	
    		ipinunknownprotos	unsigned int	0	0x700B1A10	
    		ipindiscards	unsigned int	0	0x700B1A14	
    		ipindelivers	unsigned int	0	0x700B1A18	
    		ipoutrequests	unsigned int	5	0x700B1A1C	
    		ipoutdiscards	unsigned int	0	0x700B1A20	
    		ipoutnoroutes	unsigned int	0	0x700B1A24	
    		ipreasmoks	unsigned int	0	0x700B1A28	
    		ipreasmfails	unsigned int	0	0x700B1A2C	
    		ipfragoks	unsigned int	0	0x700B1A30	
    		ipfragfails	unsigned int	0	0x700B1A34	
    		ipfragcreates	unsigned int	0	0x700B1A38	
    		ipreasmreqds	unsigned int	0	0x700B1A3C	
    		ipforwdatagrams	unsigned int	0	0x700B1A40	
    		ipinreceives	unsigned int	0	0x700B1A44	
    		tcpactiveopens	unsigned int	1	0x700B1A48	
    		tcppassiveopens	unsigned int	0	0x700B1A4C	
    		tcpattemptfails	unsigned int	0	0x700B1A50	
    		tcpestabresets	unsigned int	0	0x700B1A54	
    		tcpoutsegs	unsigned int	1	0x700B1A58	
    		tcpretranssegs	unsigned int	0	0x700B1A5C	
    		tcpinsegs	unsigned int	0	0x700B1A60	
    		tcpinerrs	unsigned int	0	0x700B1A64	
    		tcpoutrsts	unsigned int	0	0x700B1A68	
    		udpindatagrams	unsigned int	0	0x700B1A6C	
    		udpnoports	unsigned int	0	0x700B1A70	
    		udpinerrors	unsigned int	0	0x700B1A74	
    		udpoutdatagrams	unsigned int	0	0x700B1A78	
    		icmpinmsgs	unsigned int	0	0x700B1A7C	
    		icmpinerrors	unsigned int	0	0x700B1A80	
    		icmpindestunreachs	unsigned int	0	0x700B1A84	
    		icmpintimeexcds	unsigned int	0	0x700B1A88	
    		icmpinparmprobs	unsigned int	0	0x700B1A8C	
    		icmpinsrcquenchs	unsigned int	0	0x700B1A90	
    		icmpinredirects	unsigned int	0	0x700B1A94	
    		icmpinechos	unsigned int	0	0x700B1A98	
    		icmpinechoreps	unsigned int	0	0x700B1A9C	
    		icmpintimestamps	unsigned int	0	0x700B1AA0	
    		icmpintimestampreps	unsigned int	0	0x700B1AA4	
    		icmpinaddrmasks	unsigned int	0	0x700B1AA8	
    		icmpinaddrmaskreps	unsigned int	0	0x700B1AAC	
    		icmpoutmsgs	unsigned int	0	0x700B1AB0	
    		icmpouterrors	unsigned int	0	0x700B1AB4	
    		icmpoutdestunreachs	unsigned int	0	0x700B1AB8	
    		icmpouttimeexcds	unsigned int	0	0x700B1ABC	
    		icmpoutechos	unsigned int	0	0x700B1AC0	
    		icmpoutechoreps	unsigned int	0	0x700B1AC4	
    --------
    (CSL_Xge_cpswRegs *) 0x52820000	struct CSL_Xge_cpswRegs *	0x52820000 {ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',...,EM_CONTROL_REG=...		
    	*((CSL_Xge_cpswRegs *) 0x52820000)	struct CSL_Xge_cpswRegs	{ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',0 '\x00',0 '\x00',...,EM_CONTROL_REG=...	0x52820000	
    		ID_VER_REG	unsigned int	1804603651	0x52820000	
    		CONTROL_REG	unsigned int	278532	0x52820004	
    		Resv_16	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820008	
    		EM_CONTROL_REG	unsigned int	0	0x52820010	
    		STAT_PORT_EN_REG	unsigned int	7	0x52820014	
    		PTYPE_REG	unsigned int	2	0x52820018	
    		SOFT_IDLE_REG	unsigned int	0	0x5282001C	
    		THRU_RATE_REG	unsigned int	12289	0x52820020	
    		GAP_THRESH_REG	unsigned int	11	0x52820024	
    		TX_START_WDS_REG	unsigned int	8	0x52820028	
    		EEE_PRESCALE_REG	unsigned int	0	0x5282002C	
    		TX_G_OFLOW_THRESH_SET_REG	unsigned int	4294967295	0x52820030	
    		TX_G_OFLOW_THRESH_CLR_REG	unsigned int	0	0x52820034	
    		TX_G_BUF_THRESH_SET_L_REG	unsigned int	4294967295	0x52820038	
    		TX_G_BUF_THRESH_SET_H_REG	unsigned int	4294967295	0x5282003C	
    		TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52820040	
    		TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x52820044	
    		Resv_80	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820048	
    		VLAN_LTYPE_REG	unsigned int	2292744448	0x52820050	
    		EST_TS_DOMAIN_REG	unsigned int	0	0x52820054	
    		Resv_256	unsigned char[168]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820058	
    		TX_PRI0_MAXLEN_REG	unsigned int	2024	0x52820100	
    		TX_PRI1_MAXLEN_REG	unsigned int	2024	0x52820104	
    		TX_PRI2_MAXLEN_REG	unsigned int	2024	0x52820108	
    		TX_PRI3_MAXLEN_REG	unsigned int	2024	0x5282010C	
    		TX_PRI4_MAXLEN_REG	unsigned int	2024	0x52820110	
    		TX_PRI5_MAXLEN_REG	unsigned int	2024	0x52820114	
    		TX_PRI6_MAXLEN_REG	unsigned int	2024	0x52820118	
    		TX_PRI7_MAXLEN_REG	unsigned int	2024	0x5282011C	
    		Resv_4100	unsigned char[3812]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820120	
    		P0_CONTROL_REG	unsigned int	131083	0x52821004	
    		P0_FLOW_ID_OFFSET_REG	unsigned int	0	0x52821008	
    		Resv_4112	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282100C	
    		P0_BLK_CNT_REG	unsigned int	2	0x52821010	
    		P0_PORT_VLAN_REG	unsigned int	0	0x52821014	
    		P0_TX_PRI_MAP_REG	unsigned int	1985229328	0x52821018	
    		P0_PRI_CTL_REG	unsigned int	0	0x5282101C	
    		P0_RX_PRI_MAP_REG	unsigned int	1985229328	0x52821020	
    		P0_RX_MAXLEN_REG	unsigned int	1518	0x52821024	
    		P0_TX_BLKS_PRI_REG	unsigned int	19158648	0x52821028	
    		Resv_4144	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282102C	
    		P0_IDLE2LPI_REG	unsigned int	0	0x52821030	
    		P0_LPI2WAKE_REG	unsigned int	0	0x52821034	
    		P0_EEE_STATUS_REG	unsigned int	96	0x52821038	
    		Resv_4176	unsigned char[20]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5282103C	
    		P0_FIFO_STATUS_REG	unsigned int	0	0x52821050	
    		Resv_4384	unsigned char[204]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821054	
    		P0_RX_DSCP_MAP_REG	unsigned int[8]	[0,286331153,572662306,858993459,1145324612...]	0x52821120	
    		P0_PRI_CIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821140	
    		P0_PRI_EIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821160	
    		P0_TX_D_THRESH_SET_L_REG	unsigned int	522133279	0x52821180	
    		P0_TX_D_THRESH_SET_H_REG	unsigned int	522133279	0x52821184	
    		P0_TX_D_THRESH_CLR_L_REG	unsigned int	0	0x52821188	
    		P0_TX_D_THRESH_CLR_H_REG	unsigned int	0	0x5282118C	
    		P0_TX_G_BUF_THRESH_SET_L_REG	unsigned int	522133279	0x52821190	
    		P0_TX_G_BUF_THRESH_SET_H_REG	unsigned int	522133279	0x52821194	
    		P0_TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52821198	
    		P0_TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x5282119C	
    		Resv_4864	unsigned char[352]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x528211A0	
    		P0_SRC_ID_A_REG	unsigned int	67305985	0x52821300	
    		P0_SRC_ID_B_REG	unsigned int	134678021	0x52821304	
    		Resv_4896	unsigned char[24]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821308	
    		P0_HOST_BLKS_PRI_REG	unsigned int	0	0x52821320	
    		Resv_8192	unsigned char[3292]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821324	
    		ENETPORT	struct CSL_Xge_cpswEnetportRegs[2]	[{PN_RESERVED_REG=0,PN_CONTROL_REG=0,PN_MAX_BLKS_REG=4100,Resv_16=[0 '\x00',0 '\x00',...,PN_BLK_CNT_REG=...,...	0x52822000	
    		Resv_73728	unsigned char[57344]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52824000	
    		CPSW_NU_EST	struct CSL_Xge_cpswRegs_CPSW_NU_EST[2]	[{FETCH_LOC=[0,0,0,0,0...]},{FETCH_LOC=[0,0,0,0,0...]}]	0x52832000	
    		Resv_106496	unsigned char[31744]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52832400	
    		P0_STATS	struct CSL_Xge_cpswP0StatsRegs	{RXGOODFRAMES=21,RXBROADCASTFRAMES=21,RXMULTICASTFRAMES=0,Resv_16=[0 '\x00',0 '\x00',...,RXCRCERRORS=...	0x5283A000	
    			RXGOODFRAMES	unsigned int	21	0x5283A000	
    			RXBROADCASTFRAMES	unsigned int	21	0x5283A004	
    			RXMULTICASTFRAMES	unsigned int	0	0x5283A008	
    			Resv_16	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A00C	
    			RXCRCERRORS	unsigned int	0	0x5283A010	
    			Resv_24	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A014	
    			RXOVERSIZEDFRAMES	unsigned int	0	0x5283A018	
    			Resv_32	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A01C	
    			RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A020	
    			Resv_40	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A024	
    			ALE_DROP	unsigned int	0	0x5283A028	
    			ALE_OVERRUN_DROP	unsigned int	0	0x5283A02C	
    			RXOCTETS	unsigned int	1344	0x5283A030	
    			TXGOODFRAMES	unsigned int	0	0x5283A034	
    			TXBROADCASTFRAMES	unsigned int	0	0x5283A038	
    			TXMULTICASTFRAMES	unsigned int	0	0x5283A03C	
    			Resv_76	unsigned char[12]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A040	
    			TX_SOF_OVERRUN	unsigned int	0	0x5283A04C	
    			TX_MOF_OVERRUN	unsigned int	0	0x5283A050	
    			Resv_100	unsigned char[16]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A054	
    			TXOCTETS	unsigned int	0	0x5283A064	
    			OCTETFRAMES64	unsigned int	21	0x5283A068	
    			OCTETFRAMES65T127	unsigned int	0	0x5283A06C	
    			OCTETFRAMES128T255	unsigned int	0	0x5283A070	
    			OCTETFRAMES256T511	unsigned int	0	0x5283A074	
    			OCTETFRAMES512T1023	unsigned int	0	0x5283A078	
    			OCTETFRAMES1024TUP	unsigned int	0	0x5283A07C	
    			NETOCTETS	unsigned int	1344	0x5283A080	
    			RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A084	
    			PORTMASK_DROP	unsigned int	0	0x5283A088	
    			RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A08C	
    			ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A090	
    			ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A094	
    			ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A098	
    			ALE_BLOCK_DROP	unsigned int	0	0x5283A09C	
    			ALE_SECURE_DROP	unsigned int	0	0x5283A0A0	
    			ALE_AUTH_DROP	unsigned int	0	0x5283A0A4	
    			ALE_UNKN_UNI	unsigned int	0	0x5283A0A8	
    			ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A0AC	
    			ALE_UNKN_MLT	unsigned int	0	0x5283A0B0	
    			ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A0B4	
    			ALE_UNKN_BRD	unsigned int	0	0x5283A0B8	
    			ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A0BC	
    			ALE_POL_MATCH	unsigned int	0	0x5283A0C0	
    			ALE_POL_MATCH_RED	unsigned int	0	0x5283A0C4	
    			ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A0C8	
    			ALE_MULT_SA_DROP	unsigned int	0	0x5283A0CC	
    			ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A0D0	
    			ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A0D4	
    			ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A0D8	
    			ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A0DC	
    			Resv_376	unsigned char[156]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A0E0	
    			TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A17C	
    			ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A180	
    			ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1A0	
    			ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1C0	
    			ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1E0	
    		PN_STATS	struct CSL_Xge_cpswPnStatsRegs[2]	[{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...,...	0x5283A200	
    			[0]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A200	
    				RXGOODFRAMES	unsigned int	0	0x5283A200	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A204	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A208	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A20C	
    				RXCRCERRORS	unsigned int	0	0x5283A210	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A214	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A218	
    				RXJABBERFRAMES	unsigned int	0	0x5283A21C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A220	
    				RXFRAGMENTS	unsigned int	0	0x5283A224	
    				ALE_DROP	unsigned int	0	0x5283A228	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A22C	
    				RXOCTETS	unsigned int	0	0x5283A230	
    				TXGOODFRAMES	unsigned int	0	0x5283A234	
    				TXBROADCASTFRAMES	unsigned int	0	0x5283A238	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A23C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A240	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A244	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A248	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A24C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A250	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A254	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A258	
    				RXIPGERROR	unsigned int	0	0x5283A25C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A260	
    				TXOCTETS	unsigned int	0	0x5283A264	
    				OCTETFRAMES64	unsigned int	0	0x5283A268	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A26C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A270	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A274	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A278	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A27C	
    				NETOCTETS	unsigned int	0	0x5283A280	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A284	
    				PORTMASK_DROP	unsigned int	0	0x5283A288	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A28C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A290	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A294	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A298	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A29C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A2A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A2A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A2A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A2AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A2B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A2B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A2B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A2BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A2C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A2C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A2C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A2CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A2D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A2D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A2D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A2DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A2E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A340	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A344	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A348	
    				IET_RX_FRAG	unsigned int	0	0x5283A34C	
    				IET_TX_HOLD	unsigned int	0	0x5283A350	
    				IET_TX_FRAG	unsigned int	0	0x5283A354	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A358	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A37C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A380	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3E0	
    			[1]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A400	
    				RXGOODFRAMES	unsigned int	0	0x5283A400	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A404	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A408	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A40C	
    				RXCRCERRORS	unsigned int	0	0x5283A410	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A414	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A418	
    				RXJABBERFRAMES	unsigned int	0	0x5283A41C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A420	
    				RXFRAGMENTS	unsigned int	0	0x5283A424	
    				ALE_DROP	unsigned int	0	0x5283A428	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A42C	
    				RXOCTETS	unsigned int	0	0x5283A430	
    				TXGOODFRAMES	unsigned int	21	0x5283A434	
    				TXBROADCASTFRAMES	unsigned int	21	0x5283A438	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A43C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A440	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A444	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A448	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A44C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A450	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A454	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A458	
    				RXIPGERROR	unsigned int	0	0x5283A45C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A460	
    				TXOCTETS	unsigned int	1344	0x5283A464	
    				OCTETFRAMES64	unsigned int	21	0x5283A468	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A46C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A470	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A474	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A478	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A47C	
    				NETOCTETS	unsigned int	1344	0x5283A480	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A484	
    				PORTMASK_DROP	unsigned int	0	0x5283A488	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A48C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A490	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A494	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A498	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A49C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A4A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A4A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A4A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A4AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A4B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A4B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A4B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A4BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A4C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A4C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A4C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A4CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A4D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A4D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A4D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A4DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A4E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A540	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A544	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A548	
    				IET_RX_FRAG	unsigned int	0	0x5283A54C	
    				IET_TX_HOLD	unsigned int	0	0x5283A550	
    				IET_TX_FRAG	unsigned int	0	0x5283A554	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A558	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A57C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[21,0,0,0,0...]	0x5283A580	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[1344,0,0,0,0...]	0x5283A5A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5E0	
    
    
    

    4.

    Regrading:

    Did ping (ICMP) work?

    I ran the application you provided since it has a static IP ( 192.168.1.2)

    When I ping that address there is no response. I see ARP packets on wireshark “Who has 192.168.1.2. Tell 192.168.1.3”

    Here is the printf log:

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

     

    ==========================<CR><LF>

      CPSW LWIP TCP CLIENT    <CR><LF>

    ==========================<CR><LF>

    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 <CR><LF>

    Link Status Changed. PHY: 0x0, state: up<CR><LF>

    EnetPhy_bindDriver:1828 <CR><LF>

    PHY 0 is alive<CR><LF>

    Starting lwIP, local interface IP is dhcp-enabled<CR><LF>

    [LWIPIF_LWIP] NETIF INIT SUCCESS<CR><LF>

    Host MAC address-0 : 70:ff:76:1f:60:9b<CR>

    <CR><LF>

    Enet IF UP Event. Local interface IP:0.0.0.0<CR><LF>

    [LWIPIF_LWIP] Enet has been started successfully<CR><LF>

    Enet IF UP Event. Local interface IP:192.168.1.2<CR><LF>

    Waiting for network UP ...<CR><LF>

    Waiting for network UP ...<CR><LF>

    Cpsw_handleLinkUp:1629 <CR><LF>

    MAC Port 2: link up<CR><LF>

    Network Link UP Event<CR><LF>

    Network is UP ...<CR><LF>

     TCP Client Menu: <CR><LF>

     IP eneterd is: 192.168.1.3 <CR><LF>

    <<<< ITERATION 1 >>>><CR><LF>

     Connecting to: 192.168.1.3:8888 <CR><LF>

    1. 49s : CPU load = 0.94 %<CR><LF>
    2. 50s : CPU load = 1.07 %<CR><LF>
    3. 51s : CPU load = 1.08 %<CR><LF>
    4. 52s : CPU load = 1.08 %<CR><LF>

    Connection with the server isn't established<CR><LF>

    <<<< ITERATION 2 >>>><CR><LF>

     Connecting to: 192.168.1.3:8888 <CR><LF>

    1. 53s : CPU load = 1.11 %<CR><LF>
    2. 54s : CPU load = 1.09 %<CR><LF>
    3. 55s : CPU load = 1.11 %<CR><LF>
    4. 56s : CPU load = 1.09 %<CR><LF>

    Connection with the server isn't established<CR><LF>

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

    5. 

    Regrading:

    “5. Can you once try running: https://software-dl.ti.com/mcu-plus-sdk/esd/AM263PX/latest/exports/docs/api_guide_am263px/EXAMPLES_ENET_LAYER2_CPSW.html (the same way, SBL NULL + OSPI boot mode)

    and verify if you see the packets on wireshark. My suspicion is not on the driver or the application code now. If this example fails to run, let's schedule a debug call on Monday and deep dive further in the debug/working session”

    When I run the examples/networking/enet_layer2_cpsw SDK example, I see no packets from the EVK in Wireshark.

    Here is the printf log:

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

    INFO: Bootloader_socLoadHsmRtFw:82: Device Type : HSFS  <CR><LF>

    <CR><LF>

     [HSM_CLIENT] New Client Registered with Client Id = 0<CR><LF>

     INFO: Bootloader_socLoadHsmRtFw:84: HSMRT Size in Bytes : 23875 <CR><LF>

    INFO: Bootloader_socLoadHsmRtFw:97: hsm runtime firmware load complete ... <CR><LF>

    Starting NULL Bootloader ... <CR><LF>

    INFO: Bootloader_runCpu:155: CPU r5f1-1 is initialized to 400000000 Hz !!!<CR><LF>

    INFO: Bootloader_runCpu:155: CPU r5f1-0 is initialized to 400000000 Hz !!!<CR><LF>

    INFO: Bootloader_runCpu:155: CPU r5f0-1 is initialized to 400000000 Hz !!!<CR><LF>

    [BOOTLOADER_PROFILE] Boot Media       : undefined <CR><LF>

    [BOOTLOADER_PROFILE] Boot Image Size  : 0 KB <CR><LF>

    [BOOTLOADER_PROFILE] Cores present    : <CR><LF>

    [BOOTLOADER PROFILE] System_init                      :         70us <CR><LF>

    [BOOTLOADER PROFILE] Drivers_open                     :         40us <CR><LF>

    [BOOTLOADER PROFILE] LoadHsmRtFw                      :      31941us <CR><LF>

    [BOOTLOADER_PROFILE] SBL Total Time Taken             :      56139us <CR><LF>

    <CR><LF>

    NULL Bootloader Execution Complete... <CR><LF>

    INFO: Bootloader_loadSelfCpu:207: CPU r5f0-0 is initialized to 400000000 Hz !!!<CR><LF>

    INFO: Bootloader_runSelfCpu:217: All done, reseting self ...<CR><LF>

    <LF>

    ==========================<CR><LF>

         Layer 2 CPSW Test    <CR><LF>

    ==========================<CR><LF>

    <LF>

    Init all peripheral clocks<CR><LF>

    ----------------------------------------------<CR><LF>

    <LF>

    Create RX tasks<CR><LF>

    ----------------------------------------------<CR><LF>

    cpsw-3g: Create RX task<CR><LF>

    <LF>

    Open all peripherals<CR><LF>

    ----------------------------------------------<CR><LF>

    cpsw-3g: Open enet<CR><LF>

    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 <CR><LF>

    <LF>

    Init all configs<CR><LF>

    ----------------------------------------------<CR><LF>

    cpsw-3g: init config<CR><LF>

    cpsw-3g: Open port 2<CR><LF>

    EnetPhy_bindDriver:1828 <CR><LF>

    PHY 0 is alive<CR><LF>

    <LF>

    Attach core id 0 on all peripherals<CR><LF>

    ----------------------------------------------<CR><LF>

    cpsw-3g: Attach core<CR><LF>

    cpsw-3g: Open DMA<CR><LF>

    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>

    cpsw-3g: Waiting for link up...<CR><LF>

    Cpsw_handleLinkUp:1629 <CR><LF>

    MAC Port 2: link up<CR><LF>

    cpsw-3g: MAC port addr: 70:ff:76:1f:60:9b<CR>

    <CR><LF>

    <LF>

    Enet L2 cpsw Menu:<CR><LF>

     's'  -  Print statistics<CR><LF>

     'r'  -  Reset statistics<CR><LF>

     'm'  -  Show allocated MAC addresses<CR><LF>

     'x'  -  Stop the test<CR><LF>

    <LF>

    ss<CR><LF>

    <CR><LF>

    <LF>

    Print statistics<CR><LF>

    ----------------------------------------------<CR><LF>

    <LF>

     cpsw-3g - Port 2 statistics<CR><LF>

    --------------------------------<CR><LF>

    <LF>

    <LF>

    mm<CR><LF>

    <CR><LF>

    Invalid option, try again...<CR><LF>

    <LF>

    Enet L2 cpsw Menu:<CR><LF>

     's'  -  Print statistics<CR><LF>

     'r'  -  Reset statistics<CR><LF>

     'm'  -  Show allocated MAC addresses<CR><LF>

     'x'  -  Stop the test<CR><LF>

    <LF>

    <LF>

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

    6a)  (repeat)

    Are there any test points I can probe to verify the transmissions are making it to and from the PHY?

    6b) (repeat)

    Are there other signals worth probing?

    Regards,

    Tollman

  • Hi Tollman,

    1. I tested with the binary attached by you (which i suppose did not work for you, I was able to establish a TCP connection successfully). The application worked as expected. You do have a ncat server running even before you run the Application on AM263Px right?

    Ping might not be the best test because the socket connection might have closed after certain attempts, let us ignore this for now.

    5. I see that the RX Stats are also not visible in the application logs. Did you send packets using colasoft or packEth as mentioned in the example documentation. Is it the case that even after sending packets the stats did not increase?

    6. You can put a breakpoint at EnetDma_submitTxPktQ. If you reach this function and the packet contents are correct here, then the packet is handed over to CPDMA for further transmission and lwIP or Ethernet driver won't have any role. I suspect the issue to be in PHY Tx and Rx configuration.

    The issue here does not seem to be with the lwIP or Ethernet driver but something beyond that.

    Can you try putting a breakpoint at these CPDMA APIs:

    For Tx from the MCU:  EnetCpdma_enqueueTx (If we reach this breakpoint and the packet is visible on the wireshark, then the driver and PHY work fine)

    For Rx on the MCU: EnetCpdma_dequeueRx (If we are able to reach this point in the driver, the PHY Rx works fine and the packet is handed to the driver)

    We can also schedule a debug call to investigate further. I have sent you an email regarding the same

    Regards,
    Shaunak

  • Hi Shaunak,

    1.

    Regarding:

    "I tested with the binary attached by you (which i suppose did not work for you, I was able to establish a TCP connection successfully). The application worked as expected. You do have a ncat server running even before you run the Application on AM263Px right?"

    I am using Wireshark. Since the LAN consists of only the Windows host with Wireshark running, a switch, and the Control Card, there is very little traffic. With this setup I can leave Wireshark running, without filters, and I do not need to have a TCP Server running. This eliminates ‘bad filters’, and TCP Server as points of failure. I can rely on Wireshark for all tests. Please let me know it you think there is a flaw in this method.

    Regarding:

    "Ping might not be the best test because the socket connection might have closed after certain attempts, let us ignore this for now."

    Correct me if I'm wrong, but I believe that ping shouldn't need a TCP connection.

    I am timing the ping by the printf() output. I wait for the “Connecting to: 192.168.1.3:8888“ printf().

    When I examine Wireshark, I see ARP packets when I see ARP packets “Who has 192.168.1.2. Tell 192.168.1.3” at the time of the ping with a Broadcast destination address. I believe that this it to get the MAC address needed for the ping. Regardless, since it is broadcast, I am fairly certain the Control Card should be receiving these packets. I also tried sending UDP to 192.168.1.2, to avoid needing a TCP connection. However, this resulted in the same ARP transmission. Next, I tried a UDP broadcast. When the test completed, I hit the breakpoint at the “"Connection with the server isn't established\r\n" and checked the watch expressions.

    I am attaching the results, but I believe that this is further confirmation that the Control Card is neither transmitting, or receiving successfully at the lower layers of the network stack.

    ==================================================
    Run 1: Host PC connected and running wireshark. Sending UDP broadcast 255.255.255.255
    ==================================================
    ----------
    lwip_stats
    ----------
    lwip_stats	struct stats_	{link={xmit=0,recv=0,fw=0,drop=0,chkerr=0...},etharp={xmit=21,recv=0,fw=0,drop=0,chkerr=...,ip_frag=...	0x700B18C8	
    	link	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18C8	
    		xmit	unsigned short	0	0x700B18C8	
    		recv	unsigned short	0	0x700B18CA	
    		fw	unsigned short	0	0x700B18CC	
    		drop	unsigned short	0	0x700B18CE	
    		chkerr	unsigned short	0	0x700B18D0	
    		lenerr	unsigned short	0	0x700B18D2	
    		memerr	unsigned short	0	0x700B18D4	
    		rterr	unsigned short	0	0x700B18D6	
    		proterr	unsigned short	0	0x700B18D8	
    		opterr	unsigned short	0	0x700B18DA	
    		err	unsigned short	0	0x700B18DC	
    		cachehit	unsigned short	0	0x700B18DE	
    	etharp	struct stats_proto	{xmit=21,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18E0	
    		xmit	unsigned short	21	0x700B18E0	
    		recv	unsigned short	0	0x700B18E2	
    		fw	unsigned short	0	0x700B18E4	
    		drop	unsigned short	0	0x700B18E6	
    		chkerr	unsigned short	0	0x700B18E8	
    		lenerr	unsigned short	0	0x700B18EA	
    		memerr	unsigned short	0	0x700B18EC	
    		rterr	unsigned short	0	0x700B18EE	
    		proterr	unsigned short	0	0x700B18F0	
    		opterr	unsigned short	0	0x700B18F2	
    		err	unsigned short	0	0x700B18F4	
    		cachehit	unsigned short	0	0x700B18F6	
    	ip_frag	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B18F8	
    		xmit	unsigned short	0	0x700B18F8	
    		recv	unsigned short	0	0x700B18FA	
    		fw	unsigned short	0	0x700B18FC	
    		drop	unsigned short	0	0x700B18FE	
    		chkerr	unsigned short	0	0x700B1900	
    		lenerr	unsigned short	0	0x700B1902	
    		memerr	unsigned short	0	0x700B1904	
    		rterr	unsigned short	0	0x700B1906	
    		proterr	unsigned short	0	0x700B1908	
    		opterr	unsigned short	0	0x700B190A	
    		err	unsigned short	0	0x700B190C	
    		cachehit	unsigned short	0	0x700B190E	
    	ip	struct stats_proto	{xmit=5,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1910	
    		xmit	unsigned short	5	0x700B1910	
    		recv	unsigned short	0	0x700B1912	
    		fw	unsigned short	0	0x700B1914	
    		drop	unsigned short	0	0x700B1916	
    		chkerr	unsigned short	0	0x700B1918	
    		lenerr	unsigned short	0	0x700B191A	
    		memerr	unsigned short	0	0x700B191C	
    		rterr	unsigned short	0	0x700B191E	
    		proterr	unsigned short	0	0x700B1920	
    		opterr	unsigned short	0	0x700B1922	
    		err	unsigned short	0	0x700B1924	
    		cachehit	unsigned short	0	0x700B1926	
    	icmp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1928	
    		xmit	unsigned short	0	0x700B1928	
    		recv	unsigned short	0	0x700B192A	
    		fw	unsigned short	0	0x700B192C	
    		drop	unsigned short	0	0x700B192E	
    		chkerr	unsigned short	0	0x700B1930	
    		lenerr	unsigned short	0	0x700B1932	
    		memerr	unsigned short	0	0x700B1934	
    		rterr	unsigned short	0	0x700B1936	
    		proterr	unsigned short	0	0x700B1938	
    		opterr	unsigned short	0	0x700B193A	
    		err	unsigned short	0	0x700B193C	
    		cachehit	unsigned short	0	0x700B193E	
    	igmp	struct stats_igmp	{xmit=0,recv=0,drop=0,chkerr=0,lenerr=0...}	0x700B1940	
    		xmit	unsigned short	0	0x700B1940	
    		recv	unsigned short	0	0x700B1942	
    		drop	unsigned short	0	0x700B1944	
    		chkerr	unsigned short	0	0x700B1946	
    		lenerr	unsigned short	0	0x700B1948	
    		memerr	unsigned short	0	0x700B194A	
    		proterr	unsigned short	0	0x700B194C	
    		rx_v1	unsigned short	0	0x700B194E	
    		rx_group	unsigned short	0	0x700B1950	
    		rx_general	unsigned short	0	0x700B1952	
    		rx_report	unsigned short	0	0x700B1954	
    		tx_join	unsigned short	0	0x700B1956	
    		tx_leave	unsigned short	0	0x700B1958	
    		tx_report	unsigned short	0	0x700B195A	
    	udp	struct stats_proto	{xmit=0,recv=0,fw=0,drop=0,chkerr=0...}	0x700B195C	
    		xmit	unsigned short	0	0x700B195C	
    		recv	unsigned short	0	0x700B195E	
    		fw	unsigned short	0	0x700B1960	
    		drop	unsigned short	0	0x700B1962	
    		chkerr	unsigned short	0	0x700B1964	
    		lenerr	unsigned short	0	0x700B1966	
    		memerr	unsigned short	0	0x700B1968	
    		rterr	unsigned short	0	0x700B196A	
    		proterr	unsigned short	0	0x700B196C	
    		opterr	unsigned short	0	0x700B196E	
    		err	unsigned short	0	0x700B1970	
    		cachehit	unsigned short	0	0x700B1972	
    	tcp	struct stats_proto	{xmit=5,recv=0,fw=0,drop=0,chkerr=0...}	0x700B1974	
    		xmit	unsigned short	5	0x700B1974	
    		recv	unsigned short	0	0x700B1976	
    		fw	unsigned short	0	0x700B1978	
    		drop	unsigned short	0	0x700B197A	
    		chkerr	unsigned short	0	0x700B197C	
    		lenerr	unsigned short	0	0x700B197E	
    		memerr	unsigned short	0	0x700B1980	
    		rterr	unsigned short	0	0x700B1982	
    		proterr	unsigned short	0	0x700B1984	
    		opterr	unsigned short	0	0x700B1986	
    		err	unsigned short	0	0x700B1988	
    		cachehit	unsigned short	0	0x700B198A	
    	mem	struct stats_mem	{name=0x7011A42C {77 'M'},err=0,avail=0,used=128,max=224...}	0x700B198C	
    		name	unsigned char *	0x7011A42C "MEM	0x700B198C	
    		err	unsigned short	0	0x700B1990	
    		avail	unsigned short	0	0x700B1992	
    		used	unsigned short	128	0x700B1994	
    		max	unsigned short	224	0x700B1996	
    		illegal	unsigned short	0	0x700B1998	
    	memp	struct stats_mem *[22]	[0x700B33E4 {name=0x7011A328 {82 'R'},err=0,avail=3,used=0,max=0...},0x700B3484 ...,...	0x700B199C	
    		[0]	struct stats_mem *	0x700B33E4 {name=0x7011A328 {82 'R'},err=0,avail=3,used=0,max=0...}	0x700B199C	
    		[1]	struct stats_mem *	0x700B3484 {name=0x7011A370 {85 'U'},err=0,avail=4,used=0,max=0...}	0x700B19A0	
    		[2]	struct stats_mem *	0x700B3454 {name=0x7011A360 {84 'T'},err=0,avail=5,used=0,max=1...}	0x700B19A4	
    		[3]	struct stats_mem *	0x700B3464 {name=0x70119874 {84 'T'},err=0,avail=8,used=0,max=0...}	0x700B19A8	
    		[4]	struct stats_mem *	0x700B3474 {name=0x7011A350 {84 'T'},err=0,avail=128,used=0,max=1...}	0x700B19AC	
    		[5]	struct stats_mem *	0x700B3324 {name=0x7011A053 {65 'A'},err=0,avail=5,used=0,max=0...}	0x700B19B0	
    		[6]	struct stats_mem *	0x700B33F4 {name=0x7011A017 {82 'R'},err=0,avail=10,used=0,max=0...}	0x700B19B4	
    		[7]	struct stats_mem *	0x700B3344 {name=0x7011A111 {70 'F'},err=0,avail=15,used=0,max=0...}	0x700B19B8	
    		[8]	struct stats_mem *	0x700B3364 {name=0x7011A38E {78 'N'},err=0,avail=128,used=0,max=0...}	0x700B19BC	
    		[9]	struct stats_mem *	0x700B3374 {name=0x7011A378 {78 'N'},err=0,avail=10,used=1,max=1...}	0x700B19C0	
    		[10]	struct stats_mem *	0x700B3434 {name=0x70119B25 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B19C4	
    		[11]	struct stats_mem *	0x700B3444 {name=0x70119659 {84 'T'},err=0,avail=128,used=0,max=0...}	0x700B19C8	
    		[12]	struct stats_mem *	0x700B3334 {name=0x7011A035 {65 'A'},err=0,avail=30,used=1,max=1...}	0x700B19CC	
    		[13]	struct stats_mem *	0x700B3354 {name=0x70119FEC {73 'I'},err=0,avail=8,used=0,max=0...}	0x700B19D0	
    		[14]	struct stats_mem *	0x700B3424 {name=0x70119E20 {83 'S'},err=0,avail=17,used=7,max=8...}	0x700B19D4	
    		[15]	struct stats_mem *	0x700B3384 {name=0x7011A3D2 {78 'N'},err=0,avail=1,used=0,max=0...}	0x700B19D8	
    		[16]	struct stats_mem *	0x700B3394 {name=0x70119C39 {80 'P'},err=0,avail=128,used=0,max=0...}	0x700B19DC	
    		[17]	struct stats_mem *	0x700B33A4 {name=0x7011A0DF {80 'P'},err=0,avail=0,used=0,max=0...}	0x700B19E0	
    		[18]	struct stats_mem *	0x700B33B4 {name=0x70119F94 {77 'M'},err=0,avail=100,used=1,max=2...}	0x700B19E4	
    		[19]	struct stats_mem *	0x700B33C4 {name=0x70119EEC {77 'M'},err=0,avail=48,used=0,max=0...}	0x700B19E8	
    		[20]	struct stats_mem *	0x700B33D4 {name=0x70119E44 {77 'M'},err=0,avail=4,used=0,max=0...}	0x700B19EC	
    		[21]	struct stats_mem *	0x700B3414 {name=0x7011A305 {83 'S'},err=0,avail=22,used=0,max=0...}	0x700B19F0	
    	sys	struct stats_sys	{sem={used=1,max=1,err=0},mutex={used=1,max=1,err=0},mbox={used=2,max=2,err=0}}	0x700B19F4	
    		sem	struct stats_syselem	{used=1,max=1,err=0}	0x700B19F4	
    			used	unsigned short	1	0x700B19F4	
    			max	unsigned short	1	0x700B19F6	
    			err	unsigned short	0	0x700B19F8	
    		mutex	struct stats_syselem	{used=1,max=1,err=0}	0x700B19FA	
    			used	unsigned short	1	0x700B19FA	
    			max	unsigned short	1	0x700B19FC	
    			err	unsigned short	0	0x700B19FE	
    		mbox	struct stats_syselem	{used=2,max=2,err=0}	0x700B1A00	
    			used	unsigned short	2	0x700B1A00	
    			max	unsigned short	2	0x700B1A02	
    			err	unsigned short	0	0x700B1A04	
    	mib2	struct stats_mib2	{ipinhdrerrors=0,ipinaddrerrors=0,ipinunknownprotos=0,ipindiscards=0,ipindelivers=...	0x700B1A08	
    		ipinhdrerrors	unsigned int	0	0x700B1A08	
    		ipinaddrerrors	unsigned int	0	0x700B1A0C	
    		ipinunknownprotos	unsigned int	0	0x700B1A10	
    		ipindiscards	unsigned int	0	0x700B1A14	
    		ipindelivers	unsigned int	0	0x700B1A18	
    		ipoutrequests	unsigned int	5	0x700B1A1C	
    		ipoutdiscards	unsigned int	0	0x700B1A20	
    		ipoutnoroutes	unsigned int	0	0x700B1A24	
    		ipreasmoks	unsigned int	0	0x700B1A28	
    		ipreasmfails	unsigned int	0	0x700B1A2C	
    		ipfragoks	unsigned int	0	0x700B1A30	
    		ipfragfails	unsigned int	0	0x700B1A34	
    		ipfragcreates	unsigned int	0	0x700B1A38	
    		ipreasmreqds	unsigned int	0	0x700B1A3C	
    		ipforwdatagrams	unsigned int	0	0x700B1A40	
    		ipinreceives	unsigned int	0	0x700B1A44	
    		tcpactiveopens	unsigned int	1	0x700B1A48	
    		tcppassiveopens	unsigned int	0	0x700B1A4C	
    		tcpattemptfails	unsigned int	0	0x700B1A50	
    		tcpestabresets	unsigned int	0	0x700B1A54	
    		tcpoutsegs	unsigned int	1	0x700B1A58	
    		tcpretranssegs	unsigned int	0	0x700B1A5C	
    		tcpinsegs	unsigned int	0	0x700B1A60	
    		tcpinerrs	unsigned int	0	0x700B1A64	
    		tcpoutrsts	unsigned int	0	0x700B1A68	
    		udpindatagrams	unsigned int	0	0x700B1A6C	
    		udpnoports	unsigned int	0	0x700B1A70	
    		udpinerrors	unsigned int	0	0x700B1A74	
    		udpoutdatagrams	unsigned int	0	0x700B1A78	
    		icmpinmsgs	unsigned int	0	0x700B1A7C	
    		icmpinerrors	unsigned int	0	0x700B1A80	
    		icmpindestunreachs	unsigned int	0	0x700B1A84	
    		icmpintimeexcds	unsigned int	0	0x700B1A88	
    		icmpinparmprobs	unsigned int	0	0x700B1A8C	
    		icmpinsrcquenchs	unsigned int	0	0x700B1A90	
    		icmpinredirects	unsigned int	0	0x700B1A94	
    		icmpinechos	unsigned int	0	0x700B1A98	
    		icmpinechoreps	unsigned int	0	0x700B1A9C	
    		icmpintimestamps	unsigned int	0	0x700B1AA0	
    		icmpintimestampreps	unsigned int	0	0x700B1AA4	
    		icmpinaddrmasks	unsigned int	0	0x700B1AA8	
    		icmpinaddrmaskreps	unsigned int	0	0x700B1AAC	
    		icmpoutmsgs	unsigned int	0	0x700B1AB0	
    		icmpouterrors	unsigned int	0	0x700B1AB4	
    		icmpoutdestunreachs	unsigned int	0	0x700B1AB8	
    		icmpouttimeexcds	unsigned int	0	0x700B1ABC	
    		icmpoutechos	unsigned int	0	0x700B1AC0	
    		icmpoutechoreps	unsigned int	0	0x700B1AC4	
    
    ----------------
    CSL_Xge_cpswRegs
    ----------------
    (CSL_Xge_cpswRegs *) 0x52820000	struct CSL_Xge_cpswRegs *	0x52820000 {ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',...,EM_CONTROL_REG=...		
    	*((CSL_Xge_cpswRegs *) 0x52820000)	struct CSL_Xge_cpswRegs	{ID_VER_REG=1804603651,CONTROL_REG=278532,Resv_16=[0 '\x00',0 '\x00',0 '\x00',0 '\x00',...,EM_CONTROL_REG=...	0x52820000	
    		ID_VER_REG	unsigned int	1804603651	0x52820000	
    		CONTROL_REG	unsigned int	278532	0x52820004	
    		Resv_16	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820008	
    		EM_CONTROL_REG	unsigned int	0	0x52820010	
    		STAT_PORT_EN_REG	unsigned int	7	0x52820014	
    		PTYPE_REG	unsigned int	2	0x52820018	
    		SOFT_IDLE_REG	unsigned int	0	0x5282001C	
    		THRU_RATE_REG	unsigned int	12289	0x52820020	
    		GAP_THRESH_REG	unsigned int	11	0x52820024	
    		TX_START_WDS_REG	unsigned int	8	0x52820028	
    		EEE_PRESCALE_REG	unsigned int	0	0x5282002C	
    		TX_G_OFLOW_THRESH_SET_REG	unsigned int	4294967295	0x52820030	
    		TX_G_OFLOW_THRESH_CLR_REG	unsigned int	0	0x52820034	
    		TX_G_BUF_THRESH_SET_L_REG	unsigned int	4294967295	0x52820038	
    		TX_G_BUF_THRESH_SET_H_REG	unsigned int	4294967295	0x5282003C	
    		TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52820040	
    		TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x52820044	
    		Resv_80	unsigned char[8]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820048	
    		VLAN_LTYPE_REG	unsigned int	2292744448	0x52820050	
    		EST_TS_DOMAIN_REG	unsigned int	0	0x52820054	
    		Resv_256	unsigned char[168]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820058	
    		TX_PRI0_MAXLEN_REG	unsigned int	2024	0x52820100	
    		TX_PRI1_MAXLEN_REG	unsigned int	2024	0x52820104	
    		TX_PRI2_MAXLEN_REG	unsigned int	2024	0x52820108	
    		TX_PRI3_MAXLEN_REG	unsigned int	2024	0x5282010C	
    		TX_PRI4_MAXLEN_REG	unsigned int	2024	0x52820110	
    		TX_PRI5_MAXLEN_REG	unsigned int	2024	0x52820114	
    		TX_PRI6_MAXLEN_REG	unsigned int	2024	0x52820118	
    		TX_PRI7_MAXLEN_REG	unsigned int	2024	0x5282011C	
    		Resv_4100	unsigned char[3812]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52820120	
    		P0_CONTROL_REG	unsigned int	131083	0x52821004	
    		P0_FLOW_ID_OFFSET_REG	unsigned int	0	0x52821008	
    		Resv_4112	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282100C	
    		P0_BLK_CNT_REG	unsigned int	2	0x52821010	
    		P0_PORT_VLAN_REG	unsigned int	0	0x52821014	
    		P0_TX_PRI_MAP_REG	unsigned int	1985229328	0x52821018	
    		P0_PRI_CTL_REG	unsigned int	0	0x5282101C	
    		P0_RX_PRI_MAP_REG	unsigned int	1985229328	0x52821020	
    		P0_RX_MAXLEN_REG	unsigned int	1518	0x52821024	
    		P0_TX_BLKS_PRI_REG	unsigned int	19158648	0x52821028	
    		Resv_4144	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5282102C	
    		P0_IDLE2LPI_REG	unsigned int	0	0x52821030	
    		P0_LPI2WAKE_REG	unsigned int	0	0x52821034	
    		P0_EEE_STATUS_REG	unsigned int	96	0x52821038	
    		Resv_4176	unsigned char[20]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5282103C	
    		P0_FIFO_STATUS_REG	unsigned int	0	0x52821050	
    		Resv_4384	unsigned char[204]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821054	
    		P0_RX_DSCP_MAP_REG	unsigned int[8]	[0,286331153,572662306,858993459,1145324612...]	0x52821120	
    		P0_PRI_CIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821140	
    		P0_PRI_EIR_REG	unsigned int[8]	[0,0,0,0,0...]	0x52821160	
    		P0_TX_D_THRESH_SET_L_REG	unsigned int	522133279	0x52821180	
    		P0_TX_D_THRESH_SET_H_REG	unsigned int	522133279	0x52821184	
    		P0_TX_D_THRESH_CLR_L_REG	unsigned int	0	0x52821188	
    		P0_TX_D_THRESH_CLR_H_REG	unsigned int	0	0x5282118C	
    		P0_TX_G_BUF_THRESH_SET_L_REG	unsigned int	522133279	0x52821190	
    		P0_TX_G_BUF_THRESH_SET_H_REG	unsigned int	522133279	0x52821194	
    		P0_TX_G_BUF_THRESH_CLR_L_REG	unsigned int	0	0x52821198	
    		P0_TX_G_BUF_THRESH_CLR_H_REG	unsigned int	0	0x5282119C	
    		Resv_4864	unsigned char[352]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x528211A0	
    		P0_SRC_ID_A_REG	unsigned int	67305985	0x52821300	
    		P0_SRC_ID_B_REG	unsigned int	134678021	0x52821304	
    		Resv_4896	unsigned char[24]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821308	
    		P0_HOST_BLKS_PRI_REG	unsigned int	0	0x52821320	
    		Resv_8192	unsigned char[3292]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52821324	
    		ENETPORT	struct CSL_Xge_cpswEnetportRegs[2]	[{PN_RESERVED_REG=0,PN_CONTROL_REG=0,PN_MAX_BLKS_REG=4100,Resv_16=[0 '\x00',0 '\x00',...,PN_BLK_CNT_REG=...,...	0x52822000	
    		Resv_73728	unsigned char[57344]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52824000	
    		CPSW_NU_EST	struct CSL_Xge_cpswRegs_CPSW_NU_EST[2]	[{FETCH_LOC=[0,0,0,0,0...]},{FETCH_LOC=[0,0,0,0,0...]}]	0x52832000	
    		Resv_106496	unsigned char[31744]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x52832400	
    		P0_STATS	struct CSL_Xge_cpswP0StatsRegs	{RXGOODFRAMES=21,RXBROADCASTFRAMES=21,RXMULTICASTFRAMES=0,Resv_16=[0 '\x00',0 '\x00',...,RXCRCERRORS=...	0x5283A000	
    			RXGOODFRAMES	unsigned int	21	0x5283A000	
    			RXBROADCASTFRAMES	unsigned int	21	0x5283A004	
    			RXMULTICASTFRAMES	unsigned int	0	0x5283A008	
    			Resv_16	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A00C	
    			RXCRCERRORS	unsigned int	0	0x5283A010	
    			Resv_24	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A014	
    			RXOVERSIZEDFRAMES	unsigned int	0	0x5283A018	
    			Resv_32	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A01C	
    			RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A020	
    			Resv_40	unsigned char[4]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00']	0x5283A024	
    			ALE_DROP	unsigned int	0	0x5283A028	
    			ALE_OVERRUN_DROP	unsigned int	0	0x5283A02C	
    			RXOCTETS	unsigned int	1344	0x5283A030	
    			TXGOODFRAMES	unsigned int	0	0x5283A034	
    			TXBROADCASTFRAMES	unsigned int	0	0x5283A038	
    			TXMULTICASTFRAMES	unsigned int	0	0x5283A03C	
    			Resv_76	unsigned char[12]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A040	
    			TX_SOF_OVERRUN	unsigned int	0	0x5283A04C	
    			TX_MOF_OVERRUN	unsigned int	0	0x5283A050	
    			Resv_100	unsigned char[16]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A054	
    			TXOCTETS	unsigned int	0	0x5283A064	
    			OCTETFRAMES64	unsigned int	21	0x5283A068	
    			OCTETFRAMES65T127	unsigned int	0	0x5283A06C	
    			OCTETFRAMES128T255	unsigned int	0	0x5283A070	
    			OCTETFRAMES256T511	unsigned int	0	0x5283A074	
    			OCTETFRAMES512T1023	unsigned int	0	0x5283A078	
    			OCTETFRAMES1024TUP	unsigned int	0	0x5283A07C	
    			NETOCTETS	unsigned int	1344	0x5283A080	
    			RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A084	
    			PORTMASK_DROP	unsigned int	0	0x5283A088	
    			RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A08C	
    			ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A090	
    			ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A094	
    			ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A098	
    			ALE_BLOCK_DROP	unsigned int	0	0x5283A09C	
    			ALE_SECURE_DROP	unsigned int	0	0x5283A0A0	
    			ALE_AUTH_DROP	unsigned int	0	0x5283A0A4	
    			ALE_UNKN_UNI	unsigned int	0	0x5283A0A8	
    			ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A0AC	
    			ALE_UNKN_MLT	unsigned int	0	0x5283A0B0	
    			ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A0B4	
    			ALE_UNKN_BRD	unsigned int	0	0x5283A0B8	
    			ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A0BC	
    			ALE_POL_MATCH	unsigned int	0	0x5283A0C0	
    			ALE_POL_MATCH_RED	unsigned int	0	0x5283A0C4	
    			ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A0C8	
    			ALE_MULT_SA_DROP	unsigned int	0	0x5283A0CC	
    			ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A0D0	
    			ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A0D4	
    			ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A0D8	
    			ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A0DC	
    			Resv_376	unsigned char[156]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A0E0	
    			TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A17C	
    			ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A180	
    			ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1A0	
    			ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1C0	
    			ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A1E0	
    		PN_STATS	struct CSL_Xge_cpswPnStatsRegs[2]	[{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...,...	0x5283A200	
    			[0]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A200	
    				RXGOODFRAMES	unsigned int	0	0x5283A200	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A204	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A208	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A20C	
    				RXCRCERRORS	unsigned int	0	0x5283A210	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A214	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A218	
    				RXJABBERFRAMES	unsigned int	0	0x5283A21C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A220	
    				RXFRAGMENTS	unsigned int	0	0x5283A224	
    				ALE_DROP	unsigned int	0	0x5283A228	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A22C	
    				RXOCTETS	unsigned int	0	0x5283A230	
    				TXGOODFRAMES	unsigned int	0	0x5283A234	
    				TXBROADCASTFRAMES	unsigned int	0	0x5283A238	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A23C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A240	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A244	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A248	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A24C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A250	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A254	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A258	
    				RXIPGERROR	unsigned int	0	0x5283A25C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A260	
    				TXOCTETS	unsigned int	0	0x5283A264	
    				OCTETFRAMES64	unsigned int	0	0x5283A268	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A26C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A270	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A274	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A278	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A27C	
    				NETOCTETS	unsigned int	0	0x5283A280	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A284	
    				PORTMASK_DROP	unsigned int	0	0x5283A288	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A28C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A290	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A294	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A298	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A29C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A2A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A2A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A2A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A2AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A2B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A2B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A2B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A2BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A2C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A2C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A2C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A2CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A2D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A2D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A2D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A2DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A2E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A340	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A344	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A348	
    				IET_RX_FRAG	unsigned int	0	0x5283A34C	
    				IET_TX_HOLD	unsigned int	0	0x5283A350	
    				IET_TX_FRAG	unsigned int	0	0x5283A354	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A358	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A37C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A380	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A3E0	
    			[1]	struct CSL_Xge_cpswPnStatsRegs	{RXGOODFRAMES=0,RXBROADCASTFRAMES=0,RXMULTICASTFRAMES=0,RXPAUSEFRAMES=0,RXCRCERRORS=...	0x5283A400	
    				RXGOODFRAMES	unsigned int	0	0x5283A400	
    				RXBROADCASTFRAMES	unsigned int	0	0x5283A404	
    				RXMULTICASTFRAMES	unsigned int	0	0x5283A408	
    				RXPAUSEFRAMES	unsigned int	0	0x5283A40C	
    				RXCRCERRORS	unsigned int	0	0x5283A410	
    				RXALIGNCODEERRORS	unsigned int	0	0x5283A414	
    				RXOVERSIZEDFRAMES	unsigned int	0	0x5283A418	
    				RXJABBERFRAMES	unsigned int	0	0x5283A41C	
    				RXUNDERSIZEDFRAMES	unsigned int	0	0x5283A420	
    				RXFRAGMENTS	unsigned int	0	0x5283A424	
    				ALE_DROP	unsigned int	0	0x5283A428	
    				ALE_OVERRUN_DROP	unsigned int	0	0x5283A42C	
    				RXOCTETS	unsigned int	0	0x5283A430	
    				TXGOODFRAMES	unsigned int	21	0x5283A434	
    				TXBROADCASTFRAMES	unsigned int	21	0x5283A438	
    				TXMULTICASTFRAMES	unsigned int	0	0x5283A43C	
    				TXPAUSEFRAMES	unsigned int	0	0x5283A440	
    				TXDEFERREDFRAMES	unsigned int	0	0x5283A444	
    				TXCOLLISIONFRAMES	unsigned int	0	0x5283A448	
    				TXSINGLECOLLFRAMES	unsigned int	0	0x5283A44C	
    				TXMULTCOLLFRAMES	unsigned int	0	0x5283A450	
    				TXEXCESSIVECOLLISIONS	unsigned int	0	0x5283A454	
    				TXLATECOLLISIONS	unsigned int	0	0x5283A458	
    				RXIPGERROR	unsigned int	0	0x5283A45C	
    				TXCARRIERSENSEERRORS	unsigned int	0	0x5283A460	
    				TXOCTETS	unsigned int	1344	0x5283A464	
    				OCTETFRAMES64	unsigned int	21	0x5283A468	
    				OCTETFRAMES65T127	unsigned int	0	0x5283A46C	
    				OCTETFRAMES128T255	unsigned int	0	0x5283A470	
    				OCTETFRAMES256T511	unsigned int	0	0x5283A474	
    				OCTETFRAMES512T1023	unsigned int	0	0x5283A478	
    				OCTETFRAMES1024TUP	unsigned int	0	0x5283A47C	
    				NETOCTETS	unsigned int	1344	0x5283A480	
    				RX_BOTTOM_OF_FIFO_DROP	unsigned int	0	0x5283A484	
    				PORTMASK_DROP	unsigned int	0	0x5283A488	
    				RX_TOP_OF_FIFO_DROP	unsigned int	0	0x5283A48C	
    				ALE_RATE_LIMIT_DROP	unsigned int	0	0x5283A490	
    				ALE_VID_INGRESS_DROP	unsigned int	0	0x5283A494	
    				ALE_DA_EQ_SA_DROP	unsigned int	0	0x5283A498	
    				ALE_BLOCK_DROP	unsigned int	0	0x5283A49C	
    				ALE_SECURE_DROP	unsigned int	0	0x5283A4A0	
    				ALE_AUTH_DROP	unsigned int	0	0x5283A4A4	
    				ALE_UNKN_UNI	unsigned int	0	0x5283A4A8	
    				ALE_UNKN_UNI_BCNT	unsigned int	0	0x5283A4AC	
    				ALE_UNKN_MLT	unsigned int	0	0x5283A4B0	
    				ALE_UNKN_MLT_BCNT	unsigned int	0	0x5283A4B4	
    				ALE_UNKN_BRD	unsigned int	0	0x5283A4B8	
    				ALE_UNKN_BRD_BCNT	unsigned int	0	0x5283A4BC	
    				ALE_POL_MATCH	unsigned int	0	0x5283A4C0	
    				ALE_POL_MATCH_RED	unsigned int	0	0x5283A4C4	
    				ALE_POL_MATCH_YELLOW	unsigned int	0	0x5283A4C8	
    				ALE_MULT_SA_DROP	unsigned int	0	0x5283A4CC	
    				ALE_DUAL_VLAN_DROP	unsigned int	0	0x5283A4D0	
    				ALE_LEN_ERROR_DROP	unsigned int	0	0x5283A4D4	
    				ALE_IP_NEXT_HDR_DROP	unsigned int	0	0x5283A4D8	
    				ALE_IPV4_FRAG_DROP	unsigned int	0	0x5283A4DC	
    				Resv_320	unsigned char[96]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A4E0	
    				IET_RX_ASSEMBLY_ERROR	unsigned int	0	0x5283A540	
    				IET_RX_ASSEMBLY_OK	unsigned int	0	0x5283A544	
    				IET_RX_SMD_ERROR	unsigned int	0	0x5283A548	
    				IET_RX_FRAG	unsigned int	0	0x5283A54C	
    				IET_TX_HOLD	unsigned int	0	0x5283A550	
    				IET_TX_FRAG	unsigned int	0	0x5283A554	
    				Resv_380	unsigned char[36]	[0 '\x00',0 '\x00',0 '\x00',0 '\x00',0 '\x00'...]	0x5283A558	
    				TX_MEMORY_PROTECT_ERROR	unsigned int	0	0x5283A57C	
    				ENET_PN_TX_PRI_REG	unsigned int[8]	[21,0,0,0,0...]	0x5283A580	
    				ENET_PN_TX_PRI_BCNT_REG	unsigned int[8]	[1344,0,0,0,0...]	0x5283A5A0	
    				ENET_PN_TX_PRI_DROP_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5C0	
    				ENET_PN_TX_PRI_DROP_BCNT_REG	unsigned int[8]	[0,0,0,0,0...]	0x5283A5E0	
    

    5.

    Regarding:

    "I see that the RX Stats are also not visible in the application logs. Did you send packets using colasoft or packEth as mentioned in the example documentation. Is it the case that even after sending packets the stats did not increase?"

    I am using ping on the command line, and PacketSender to transmit UDP. I tried to install ncat, but I didn't complete installation. I was afraid that it may not coexist well with Wireshark. See item .1.

    6.

    Regarding:

    "You can put a breakpoint at EnetDma_submitTxPktQ. If you reach this function and the packet contents are correct here, then the packet is handed over to CPDMA for further transmission and lwIP or Ethernet driver won't have any role. I suspect the issue to be in PHY Tx and Rx configuration."

    "Can you try putting a breakpoint at these CPDMA APIs:

    For Tx from the MCU:  EnetCpdma_enqueueTx (If we reach this breakpoint and the packet is visible on the wireshark, then the driver and PHY work fine)

    For Rx on the MCU: EnetCpdma_dequeueRx (If we are able to reach this point in the driver, the PHY Rx works fine and the packet is handed to the driver)"

    When I use your ‘static IP’ project, the breakpoint at EnetCpdma_enqueueTx() is hit. When I step through, I do not see any indications of errors.

    The breakpoint at EnetCpdma_dequeueRx() never gets hit.

    7.

    Regarding:

    "We can also schedule a debug call to investigate further. I have sent you an email regarding the same"

    I responded to your email.

    Regards,

    Tollman

  • Hi Tollman,

    This eliminates ‘bad filters’, and TCP Server as points of failure. I can rely on Wireshark for all tests. Please let me know it you think there is a flaw in this method.

    I was talking from the perspective of TCP connection. You would need a TCP server running before the TCP Client (AM263Px) tries to establish a connection,

    If this was just to get the lwIP and CPSW stats, then no issues.

    Regardless, since it is broadcast, I am fairly certain the Control Card should be receiving these packets.

    The issue here seems to be with the PHY Rx clocks. Have you by any chance changed the clock source of PHY? Seems like the PHY clocks are causing the packets to be dropped even before it reaches the ethernet driver (CPDMA)

    To check further if the PHY Rx is working, can you probe the r212 resistor on AM263Px-CC DP83869 PHY? While you probe this, please run the enet_loopback example in "external loopback" mode? Please share the observations so we can confirm the PHY Rx clock issue. So far with the tests, I don't think the issue is with the Ethernet driver, or lwIP stack or the TCP application in the SDK.

    Regards,

    Shaunak

  • 1)

    I recorded a video running enet_loopback example in "external loopback" mode while probing on R212. I think I was holding the probe steady throughout the video. 

    The oscilloscope is triggering on the rising edge of RX_CLK.

    Please review the attached video.

    2)

    Maybe I should've asked this earlier, but ...

    Is there any jumper, switches, on the Control Card that may affect Ethernet?

    Regards,

    Tollman

  • Hi Tollman,

    1. Thanks for Sharing the video, PHY Rx clock looks fine to me. But can you also share if the external loopback example worked? Did the logs seem fine?

    2. I'm not sure about this. Are you using any jumpers/switches on the control card?

    3. I think we will only be able to proceed with the debug on a call. I tried again today and was not able to reproduce it. I can set up a 1 hour call anytime between 9am EDT to 11am EDT. Please confirm the slot over email  and I can share the meeting invite

    4. Are you making any changes to the clock sources? Or on the board?

    5. Did you try the tcp client example with TCP NCAT server running before the client starts?

    Regards,

    Shaunak

  • Hi Shaunak,

    1.

    Regarding:

    “Thanks for Sharing the video, PHY Rx clock looks fine to me. But can you also share if the external loopback example worked? Did the logs seem fine?”

    Sorry, I thought I made a second post yesterday. I guess I did not actually send it.

    It seems that the TX Task works normally, but RX ISR never executes.

    i.e. This never executes:

    static void EnetApp_rxIsrFxn(void *appData)
    
    {
    
        SemaphoreP_post(&gEnetLpbk.rxSemObj);
    
    }
    
    
     

     

    2.

    Regarding:

    "I'm not sure about this. Are you using any jumpers/switches on the control card?"

    I see that SW14, SW15, and SW16 determine the routing of the Ethernet. I did not change any of these switches on either Control Card I have. However, I will investigate if they are in the correct position.

    3.

    Regarding:

    I think we will only be able to proceed with the debug on a call. I tried again today and was not able to reproduce it. I can set up a 1 hour call anytime between 9am EDT to 11am EDT. Please confirm the slot over email  and I can share the meeting invite

    I look forward to troubleshooting with you.

    4.

    Regarding:

    Are you making any changes to the clock sources? Or on the board?

    I have not made any changes to the Control Card I am testing with.

    5.

    Regarding:

    Did you try the tcp client example with TCP NCAT server running before the client starts?

    As I mentioned before, I am afraid to install ncat on my test PC. I am afraid that it may break my Wireshark setup. I do not think this is beneficial, because Wireshark demonstrates that there is no packets reaching the test PC from the Control Card.

    Regards,

    Tollman

  • UPDATE:

    Sorry, I forgot to include the printf logs for item 1. Here they are:

    =======================================================

    <CR><LF>

     0: Internal MAC loopback <CR><LF>

     1: External PHY loopback <CR><LF>

     <CR><LF>

     Enter option: 11<CR><LF>

    <CR><LF>

    =============================<CR><LF>

     Enet Loopback: Iteration 1 <CR><LF>

    =============================<CR><LF>

    CPSW_3G Test<CR><LF>

    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 <CR><LF>

    EnetPhy_bindDriver:1828 <CR><LF>

    PHY 0 is alive<CR><LF>

    initQs() txFreePktInfoQ initialized with 16 pkts<CR><LF>

    Cpsw_handleLinkUp:1629 <CR><LF>

    Transmitted 5000 packets <CR><LF>

    Delete EnetApp_txTask() and exit..<CR><LF>

    =======================================================

    Regards,

    Tollman

  • Hi Shaunak,

    Good news. I found that SW15 was in the wrong position. It seems that both my EVKs were shipped with CPSW not routed to the on-board RJ45 connector.

    When I changed the position of SW15 to off and execute your 'static address TCP client' application, I see the packets on Wireshark.

    Regards,

    Tollman

  • Hi Tollman,

    Glad to hear that the issue is resolved now.

    It seems that both my EVKs were shipped with CPSW not routed to the on-board RJ45 connector.

    There are hardware checks performed before shipping. This might have occurred during manual packaging after testing. This is a very rare occurrence and I apologize for the issues you faced. I have passed on this incident to our manufacturers to make sure this does not happen again.

    Regards,
    Shaunak