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.

EVM 8148 IP issue on RTOS (client example)

Other Parts Discussed in Thread: SYSBIOS

I am using XDC 3.23.1.43 , SysBios 6.33.1.25 NDK 2.21.01.38

I am trying to run simple client example and having some troubles to get IP address

This program enables all the services but doesn't show IP address. And I am not able to find my EVM8148 on any network sniffer.

This is the output when I use Dynamic IP .

[C674X_0] Using MAC Address: 00-18-32-62-1d-0a
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
EMAC has been started successfully
Registeration of the EMAC Successful
Service Status: DHCPC : Enabled : : 000
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
Service Status: HTTP : Enabled : : 000
Service Status: DHCPC : Enabled : Running : 000
Service Status: DHCPC : Enabled : Fault : 002

This is what I get when I use Static IP, it shows the IP but I am not able to ping that IP.

[C674X_0] Using MAC Address: 00-18-32-62-1d-0a
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
EMAC has been started successfully
Registeration of the EMAC Successful
Network Added: If-1:192.168.10.143
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
Service Status: HTTP : Enabled : : 000

And Service doesn't run.

Your help will be highly appreciated.

  • This is what I am getting now on Helloworld application.

    [C674X_0] Using MAC Address: 00-18-32-62-1d-0a

    SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0

    EMAC has been started successfully

    Registeration of the EMAC Successful

    Network Added: If-1:192.168.10.143

    cpsw_MDIO_FindingState: PhyNum: 0

    cpsw_MDIO_PhYReset(0)

    Enable Phy to negotiate external connection

    NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10  

    Phy: 0, NegMode 01E1, NWAYadvertise 01E1, NWAYREadvertise 4DE1

    Negotiated connection: FullDuplex 100 Mbs

    Link Status: 100Mb/s Full Duplex on PHY 0

    Can anyone tell me what these red lines showing here? Why Negotiated connection?

  • Touseef,

    When you run the simple client example, is this the original example, or have you modified it?

    And, when you run hello world, does that work as expected?

    Does your network sniffer (Wireshark?) show any DHCP discover messages coming from the DSP?

    For the messages you highlighted in red: those are coming from the Ethernet driver.

    Regards,
    Scott

  • Hi Scott,

    I am running original example, haven't modified it yet.

    Hello world doesn't work as expected.

    Wireshark doesn't shows any DHCP discover message from board.

    Regards.

    Touseef

  • Hi Touseef,

    OK, thanks.

    I’m wondering if your network connections are working.  (I don’t know enough about the driver to know if that “Negotiated connection…” message is a full confirmation.)  Can you please describe your network configuration (for example, are board and PC plugged into a router or switch)?

    Have you been able to get any Ethernet functionality working using your current setup?

    If you look with Wireshark do you see anything at all coming from your board’s MAC address?

    Also, when running and you don’t see anything on the line, can you try halting the target, and then in a CCS watch window look at these global variables and report what they show?

    “tcps” for TCP stats
    “ips” for IP stats

    Thanks,
    Scott

  • Hi Scott,

    Network is connections are good, they are in working condition. I have connected PC and Board to the switch (tried with the router also) didn't worked in either case. I have confirmed the connection by connecting and disconnecting the LAN wire, it shows network speed like 100Mbps(for 100Mbps switch) ,1000Mbps (for 1000Mbps switch) and no connection when I disconnect it. And it changes the status while in debugging mode. This means every thing is working fine. And negotiated connection is all about variable transmission speed as far as I know.

    Wireshark and arp command both doesn't shows anything from that board.

    I will look for tcps and ips.

    Thanks and Regards,

    Touseef

  • Hi Touseef,

    Thanks for the info.  A few more questions:  

    How is your PC getting its IP address?  Is it a DHCP client, or does it have a static IP?

    Is the switch always connected to a router or to an office LAN so a DHCP server is always available?

    What else is connected to the switch?  If you connect a 3rd device (like another PC configured as a DHCP client), does the 3rd device get an IP address?  And do you see the associated Wireshark traffic for that?

    Also, please still send the tcps and ips info when you have it.

    Thanks,
    Scott

  • Hi Scott,

    My PC is getting IP by DHCP.

    Switch is always connected to office LAN. Yes DHCP server is always available.

    Switch is having one in and two out. Input direct from office LAN and output to PC and Board. I have tried with two router till now but didn't worked for me. I have tried the same procedure for another board(DM6437) and it was working fine with the same switch. Problem isn't in the switch.

    I am not able to find TCPS and IPS status till now. I will let you know about it after getting it.

    Thanks and regards,

    Touseef