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.

AM2634: Ethernet example isn't working

Part Number: AM2634

Tool/software:

Dear Team,

I'm using Ethernet example with RTOS/No_RTOS, non of the example is working for me,

till last weak every example was working for me,

What I try to solve,

    delete the SDK and reinstall SDK 9.02.0 and take fresh example 

configure the static ip only as suggested in SDK user manual 

 Kindly let me know how to find out issue  

UART LOGS

==========================
CPSW LWIP HTTP WEB SERVER
==========================
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
EnetPhy_bindDriver:1842
EnetPhy_bindDriver:1842
PHY 0 is alive
PHY 3 is alive
Starting lwIP, local interface IP is Static-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 1c:63:49:11:be:a5
Host MAC address-0 : 00:00:00:00:00:00
Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] NETIF INIT SUCCESS
Enet IF UP Event. Local interface IP:0.0.0.0
Enet IF UP Event. Local interface IP:192.168.1.200
Enet IF UP Event. Local interface IP:192.168.1.201
Cpsw_handleLinkUp:1626
MAC Port 2: link up
Network Link UP Event
Cpsw_handleLinkUp:1626
MAC Port 1: link up
Cpsw_handleLinkDown:1652
000002030201000000010100414d323633580000000000000400cdab000101000100000000000000000000000000000000000000ec54cc16cd1ffccab7fd81fd82c998b305c6ac0c12cccf21a610fc1ad7159b1ad20acd69adabf72f1eed15021e26766d2f212d135b6bebf5e5e76c06ac87a6e400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000182efe2733e03b1f0b30cd0c2f9df27177d6735991ef7f0a696db86f16922a1f6237f8aafdafbcd2c63495e6bb547775030bcca5a9e03b70887f92f94556d19cCCCCCCCCC

my observation:

as per UART logs last 3 lines(in BOLD)  represent restart of CPU that mean CPU restart after some time, it happening  every time and in every example.

Its shows link up but not able to ping any of the port 

  • Hi Vikas,

    1. Can I know what boot mode you using the AM263x in?

    2. Have you flashed any application to the board or you have SBL Null flashed as default.

    3. I also notice a CPSW Link down log after the MAC port-1 is link up. Is it expected?

    4. What fresh example are you using (so I can try reproducing the issue as well)

    Regards,
    Shaunak

  • 1. Can I know what boot mode you using the AM263x in?

        QSPI boot mode (Switch case : 0010) but testing all these in debug mode. 

    2. Have you flashed any application to the board or you have SBL Null flashed as default.

        Yes, used led blinky example and some CAN example.

        I think SBL isn't null.

    3.  . I also notice a CPSW Link down log after the MAC port-1 is link up. Is it expected?

         Yes, because only one rj45 port connected only.

    4.   What fresh example are you using 

        All lwip example  tested but getting same result

    enet_cpsw_rawhttpserver_am263x-cc_r5fss0-0_nortos_ti-arm-clang

    enet_cpsw_tcpclient

    enet_cpsw_tcpserver

     

  • Hi Vikas,

    1. Weird. The sequence of "CCCC" prints that you see in your log generally occurs in the UART boot mode. But if you are sure the boot mode is QSPI, lets look at this later.

    2. Can you please flash SBL NULL and test the examples? We are parellely executing one program which will call the driver and board open APIs and then close it after it blinks the LED/ or the CAN examples. Flashing SBL NULL and then side-loading the .out file in QSPI mode in CCS should resolve these issues.

    Regards,
    Shaunak

  • Please  guide how to set NULL to SBL,

    New Observation: If only one LWIP instance used, same ip allocate to both the ports that ok

    if two LWIP instance used none of the IP allocated and not able to ping to both the ports 

    Please lwip instance in above image

    Is Rx DMA Used By This Netif = 0 for both the instance?

    Rx DMA Used By This Netif = for both the instance?

    kindly check above setting also

  • Hi Vikas,

    Please  guide how to set NULL to SBL,

    1. Set your device in UART boot mode. Power cycle the board and make sure your COM port in CCS is closed.

    2. In the MCU_PLUS_SDK, navigate to the tools/boot/ folder and open a command prompt and type the following command

    python uart_uniflash.py -p COMxx --cfg=sbl_prebuilt\am263x-cc\default_sbl_null.cfg

    3. Set your device back in QSPI boot mode and power cycle the device. Now side-load your networking application fusing CCS.

    New Observation: If only one LWIP instance used, same ip allocate to both the ports that ok

    Within one LwIP instance, you can have multiple Network interfaces (NetIFs). These NetIFs will have an IP address. I would like to understand what is the reference to "LwIP instance"  here. Are you mentioning about the "NetIF" added through syscfg? Or are you initializing two LwIP instances in your code.

    kindly check above setting also

    This is correct, you would have to operate in MAC-only mode when Dual Netif system is enabled and Promiscuous mode enabled (if needed in your application).

    Regards,
    Shaunak

  • (+) AM2634: Send data to two servers - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    We need two ip address that's why 2 Netif instance created, please follow above link for more details

    Please share more information regards modes

     MAC-only mode and Promiscuous mode ....

  • Hi,

    We need two ip address that's why 2 Netif instance created, please follow above link for more details

    Sorry Vikas, My question is "What do you exactly refer to by 2 LwIP instances", are you creating two lwip instances in the examples manually or are you referring to the 2 NetIFs that you have added for 2 IP addresses. LwIP single instance also supports 2 IP addresses. The out of box example "enet-lwip-cpsw" has 2 NetIFs (2 IP Addresses) enabled by default and it has a single lwIP instance.

     MAC-only mode and Promiscuous mode ....

    There is not specific documentation for these. 

    MAC-only mode: MAC-only mode which allows all incoming traffic from a given MAC port to be transferred only to the host port.

    Copy-all frames from MAC-only: When set a Mac Only port will transfer all received good frames to the host, When clear a Mac Only port will transfer packets to the host based on ALE destination address lookup operation (promiscuous mode)

    Regards,
    Shaunak