Other Parts Discussed in Thread: TMDS243EVM, DP83869
Hi Team,
I'm writing to report an issue I'm encountering with the Enet Lwip CPSW Example configured with a static IP address in mcu_plus_sdk_am243x_09_01_00_41.
Background
I successfully ran the Enet Lwip CPSW Example with a static IP on the TMDS243EVM using mcu_plus_sdk_am243x_09_00_00_35. In this setup, I have modified code in file lwipcfg.h
file as below to set USE_DHCP and USE_AUTOIP as '0':
#define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,3,50)
#define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,3,1)
#define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,0,0)
const ip_addr_t gStaticIP[IP_ADDR_POOL_COUNT] = { IPADDR4_INIT_BYTES(192, 168, 3, 50), /* For NetifIdx = 0 */
IPADDR4_INIT_BYTES(192, 168, 4, 50),}; /* For NetifIdx = 1 */
const ip_addr_t gStaticIPGateway[IP_ADDR_POOL_COUNT] = { IPADDR4_INIT_BYTES(192, 168, 3, 1), /* For NetifIdx = 0 */
IPADDR4_INIT_BYTES(192, 168, 4, 1),}; /* For NetifIdx = 1 */
const ip_addr_t gStaticIPNetmask[IP_ADDR_POOL_COUNT] = { IPADDR4_INIT_BYTES(255,255,0,0), /* For NetifIdx = 0 */
IPADDR4_INIT_BYTES(255,255,0,0),}; /* For NetifIdx = 1 */
ENET LWIP App
==========================
Enabling clocks!
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 2
Mdio_open: MDIO Manual_Mode enabled
EnetPhy_bindDriver: PHY 0: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK
EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:01 <-> 'dp83869' : OK
PHY 0 is alive
PHY 3 is alive
[0]: Starting lwIP, local interface IP is 192.168.3.50
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 34:08:e1:80:d1:6d
Host MAC address-0 : 70:ff:76:1e:67:9f
[1]: Starting lwIP, local interface IP is 192.168.4.50
[LWIPIF_LWIP] NETIF INIT SUCCESS
[LWIPIF_LWIP] Enet has been started successfully
[0]status_callback==UP, local interface IP is 192.168.3.50
[1]status_callback==UP, local interface IP is 192.168.4.50
UDP server listening on port 5001
Cpsw_handleLinkUp: Port 1: Link up: 1-Gbps Full-Duplex
MAC Port 1: link up
[0] link_callback==UP
[1] link_callback==UP
