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.

AM263P4-Q1: enet_lwip_cpsw sample not working (different board and SDK versions)

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: DP83869

Tool/software:

Hi Team,

My customer is testing the enet_lwip_cpsw example on the LP board, but have not seen success on Ethernet transmission. (ti\mcu_plus_sdk_am263px_10_00_00_35\examples\networking\lwip\enet_lwip_cpsw\am263px-lp)

They want to use a static IP address, so they have set USE_DHCP to 0.

The logs are as below:

==========================
ENET LWIP App
==========================
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:03 <-> 'dp83869' : OK
EnetPhy_bindDriver: PHY 12: OUI:080028 Model:0f Ver:03 <-> 'dp83869' : OK
PHY 3 is alive
PHY 12 is alive
[0]: Starting lwIP, local interface IP is 192.168.1.200
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:ff:76:1f:6a:34
Host MAC address-0 : 70:ff:76:1f:6a:35
[LWIPIF_LWIP] Enet has been started successfully
[0]status_callback==UP, local interface IP is 192.168.1.200
UDP server listening on port 5001
Cpsw_handleLinkUp: Port 2: Link up: 1-Gbps Full-Duplex
MAC Port 2: link up
[0] link_callback==UP
5. 91s : CPU load = 2.93 %
10. 91s : CPU load = 1.84 %
15. 91s : CPU load = 1.70 %

On the logs, it seems like LinkUP is successful, but ping 192.168.1.200 has no response.

When they tried on the CC board using the enet_lwip_cpsw sample program, there were able to successfully communicate (ti\mcu_plus_sdk_am263px_09_02_00_56\examples\networking\lwip\enet_lwip_cpsw\am263px-cc)

How would they be able to communicate on the LP board?

Also, please note the differences in SDK version. Is there a SDK10.1 equivalent? My customer could not find it.

Best regards,

Mari Tsunoda

  • Hi Mari Tsunoda,

    The only difference between the AM263Px-CC and AM263Px-LP for the enet_lwip_cpsw example is the MAC Port being used

    On the AM263Px-CC, the example uses MAC Port-2 (MAC Port-1 is not connected to Ethernet port on the Board). On the AM263Px-LP. the example uses both MAC Port-1 and MAC Port-2.

    When running on LP, I recommend once trying connecting the ethernet cable to MAC Port-1 (or have 2 cables connected to 2 ports), Right now, from the logs shared, I see that the MAC Port-2 is connected. On connecting MAC Port-1, you will see the link up for the MAC port-1 with netif index 0 and IP address 192.168.1.200 (local IP). You can then try to Ping the DUT (Device under test).

    Regards,
    Shaunak

  • Also, please note the differences in SDK version. Is there a SDK10.1 equivalent? My customer could not find it.

    In the latest MCU_PLUS_SDK v10.01 onwards, the networking examples have been moved to a new Path inside the source folder: 

    Previous path: mcu_plus_sdk/examples/networking/

    v10.01 New path: mcu_plus_sdk/source/networking/enet/core/examples

    Customer can find all the examples in the new updated path

    Regards,
    Shaunak

  • Hi Shaunak,

    Unfortunately, they tried connecting to both parts, but could not establish a connection.

    Is it possible to use Ethernet on the device with static IP?

    ==========================
    ENET LWIP App
    ==========================
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
    Open MAC port 1
    EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK
    Open MAC port 2
    EnetPhy_bindDriver: PHY 12: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK
    PHY 3 is alive
    PHY 12 is alive
    [0]: Starting lwIP, local interface IP is 192.168.1.200
    [LWIPIF_LWIP] NETIF INIT SUCCESS
    Host MAC address-0 : 70:ff:76:1f:6a:34
    Host MAC address-0 : 70:ff:76:1f:6a:35
    [LWIPIF_LWIP] Enet has been started successfully
    [0]status_callback==UP, local interface IP is 192.168.1.200
    UDP server listening on port 5001
    Cpsw_handleLinkUp: Port 1: Link up: 1-Gbps Full-Duplex
    MAC Port 1: link up
    [0] link_callback==UP
    5. 79s : CPU load = 4.02 %
    Cpsw_handleLinkUp: Port 2: Link up: 1-Gbps Full-Duplex
    MAC Port 2: link up

    Best regards,

    Mari

  • Hi Mari,

    Yes, static IP works on all AM26x devices and customers are using it as well.

    Can the customer please share their ".out" binary so I can test on my setup?

    Regards,
    Shaunak