Other Parts Discussed in Thread: TMDSCNCD263P
Tool/software:
Using SDK 10.0.0.35 with ccs 12.8.0.00012 and TMDSCNCD263P trying to run enet_cpsw_socket_am263px-cc_r5fss0-0_freertos_ti-arm-clang.
Created a very simple network like the example suggests TI<>Router<> PC(Ubuntu). No other network connections.
IPs 192.168.50.61<>192.168.50.1<>192.168.50.142
Router DHCP working fine because running enet_lwip_cpsw_am263px-cc_r5fss0-0_freertos_ti-arm-clang example works fine and TI got 192.168.50.61 when using DHCP.
With the socket example, DHCP did not request for IP. and the example is just stuck at "Waiting for network UP"
==========================
CPSW LWIP SIMPLE SOCKET
==========================
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
Link Status Changed. PHY: 0x0, state: up
Open MAC port 2
EnetPhy_bindDriver:1842
PHY 0 is alive
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:ff:76:1f:61:88
Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] Enet has been started successfully
Waiting for network UP ...
Waiting for network UP ...
Cpsw_handleLinkUp:1626
MAC Port 2: link up
Network Link UP Event
Waiting for network UP ...
Waiting for network UP ...
Waiting for network UP ...
Waiting for network UP ...
TI never send DHCP Request packet.
Tried changing to static IP using instructions:
Started ncat on Ubuntuncat -e /bin/cat -kv -l 8888
Ncat: Version 7.94SVN ( https://nmap.org/ncan )
Ncat: listening on [::]:8888
Ncat: Listening on 0.0.0.0:8888
TI is still unable to connect.
==========================
CPSW LWIP SIMPLE SOCKET
==========================
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2
Link Status Changed. PHY: 0x0, state: up
Open MAC port 2
EnetPhy_bindDriver:1842
PHY 0 is alive
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:ff:76:1f:61:88
Enet IF UP Event. Local interface IP:192.168.50.61
[LWIPIF_LWIP] Enet has been started successfully
Waiting for network UP ...
Waiting for network UP ...
Cpsw_handleLinkUp:1626
MAC Port 2: link up
Network Link UP Event
Network is UP ...
UDP socket Menu:
Enter server IPv4 address:(example: 192.168.101.100)
192.168.50.142
<<< Iteration 1 >>>>
Connecting to: 192.168.50.142:8888
93.514s : CPU load = 0.66 %
98.515s : CPU load = 1.12 %
ERR: unable to connect
<<< Iteration 2 >>>>
Connecting to: 192.168.50.142:8888
103.516s : CPU load = 1.29 %
108.517s : CPU load = 1.12 %
ERR: unable to connect
<<< Iteration 3 >>>>
Connecting to: 192.168.50.142:8888
113.518s : CPU load = 1.28 %
118.519s : CPU load = 1.14 %
123.520s : CPU load = 1.12 %
ERR: unable to connect
<<< Iteration 4 >>>>
Connecting to: 192.168.50.142:8888
128.521s : CPU load = 1.29 %
133.522s : CPU load = 1.12 %
ERR: unable to connect
<<< Iteration 5 >>>>
Would you be able to give some suggestions as what may be done incorrectly here? Thanks.
BTW. There seems to be conflicting instructions to set static IP. The above mentioned instructions and also reference to Ethernet LwIP TCP/IP Static IP. Can you clarify which one to use?