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.

AM3359: CPSW Ethernet switch startup response delay

Part Number: AM3359

Hello experts,

I have a problem with the Ethernet link behavior on a Sitara AM3359 custom board with custom firmware. The IP stack is LwIP.
The system consists of two AM3359 CPUs connected to each other via the CPSW in switch mode and my Notebook is connected to one port:
   [Ethernet in] -> [CPU1 Port 1]
                 -> [CPU1 Port 2] -> [CPU2 Port 1]
                                  -> [CPU2 Port 2] -> [Ethernet out]

Sometimes (~one of 10 power cycles) when the system is powered on, one of the CPUs does not answer a ping for up to 45 seconds. The CPSW and PHYs are initialized and all IP addresses (fixed) are assigned and i.e. the CPU2 responds to the ping request immediately (routed via CPSW of CPU1) but the CPU1 itself does not respond. It may take up to 45 seconds until CPU1 starts responding to a ping.

What can cause such a behavior? Is it IP stack related, Ethernet driver related or rather CPSW switch configuration related? How can I find the originator?

Best Regards,
Stephan

  • Hi,

    Sorry we don't support the LwIP. The Processor SDK RTOS and TI NDK are recommended for AM335x development purpose in this case. It looks that you have the Ethernet application flashed to some bootable media. You need to add time stamp functions inside your code to trace the time when the bootloader is entered, the CPSW driver is enabled, the RX ISR is entered (because ICMP coming in) and trace the IWIP stack.

    Regards, Eric