AM2634-Q1: AM2634- LWIP - Enabling hostname halts at "Network Link DOWN Event"

Part Number: AM2634-Q1


Hi,

For our application, the device has to get IP address using dhcp with hostname. For making this work, I have set the options below to 1.

File-->C:\ti\mcu_plus_sdk_am263x_10_02_00_13\source\networking\lwip\lwip-stack\src\include\lwip\opt.h

#define LWIP_DHCP_DISCOVER_ADD_HOSTNAME 1

#define LWIP_NETIF_HOSTNAME             1 

in my application, I set the hostname with the below line.

m_netif_s[0]->hostname = "VARMA";
 
The execution hangs with a network down event. Below is the debug log.
-------------beginning of log-------------
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:0 From 4 To 2 
Open MAC port 1
EnetPhy_bindDriver:1873 
Open MAC port 2
EnetPhy_bindDriver:1873 
PHY 3 is alive
PHY 12 is alive
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:ff:76:1f:db:4e
Host MAC address-0 : 70:ff:76:1f:db:4f
Enet IF DOWN Event
Cpsw_handleLinkUp:1653 
MAC Port 1: link up
Network Link DOWN Event
----------end of log-------------------------
 
When I revert back removing the hostname options disabled, the ip address assignment works and  execution proceeds without any problem.
 
Appreciate any fixes/suggestions for solving this.
 
Thanks
Varma