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-AM263X: AM263X

Part Number: MCU-PLUS-SDK-AM263X

Tool/software:

Hi Team

I am working on adding ethernet libraries and code in empty project. I have added the example of enet_cpsw_tcpclient, while running the example code, it is working fine and link is getting up. I tried to execute the same code and configurations in my empty project, the link is not getting up, it remains down. While reading these funtion EnetApp_mdioLinkStatusChange(), it shows as link is down. 

==========================
CPSW LWIP TCP CLIENT
==========================
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
Open MAC port 1
EnetPhy_bindDriver:1842
Open MAC port 2
EnetPhy_bindDriver:1842
PHY 0 is alive
PHY 3 is alive
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:ff:76:1d:ec:f2
Host MAC address-0 : 70:ff:76:1d:ec:e3
Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] Enet has been started successfully
Enet IF UP Event. Local interface IP:192.168.1.200
Waiting for network UP ...
Waiting for network UP ...
Waiting for network UP ...
Waiting for network UP ...



Please help me in resolving this issue.

  • Hi Anjana,

    1. Can you please share your SDK version, Syscfg version, and if the board is control card (CC) or launch-pad (LP) for AM263x?

    2. May I know the reason for porting the ethernet example to Empty project and not developing directly over it. Ethernet applications are generally complicated and need a lot of configurations apart from just the .c and .h files? Generally even if you want to add more peripherals alongside ethernet functionality, I would recommend working on top of the TCP Client example from the SDK instead of porting it to empty project.

    3. Can you make sure you have also configured the syscfg for empty project exactly same as that of the TCP Client example? (I recommend checking each sub-section)

    Regards,
    Shaunak Deshpande

  • Hi Shaunak

    1. Currently I'm using the mcu_plus_sdk_am263x_10_00_00_35 for the Control Card board.

    2. Actually based on my project requirements, I'm porting for all the interfaces. But while porting for the ethernet, I'm getting such error. In My project, while I'm trying to initialise the ethernet itself, I'm facing the same issue. As per your suggestion, will try executing the TCp client directly also. My doubt is that ethernet initialisation can be done through that itself?

    3. I even tried copying the the same syscfg of the enet into my project and tried, but the link remains down.

    While I'm running the this tcp client example, it is working fine. But the same code, when I'm running from my workspace, the link remains down. 


    Regards,
    Anjana Ramalingam

  • Hi Anjana,

    The recommendation would be to use the TCP Client example as the base instead of Empty project, and port other peripherals and components to the working ethernet tcp example from the SDK.

    Regards,
    Shaunak