printing ip with mpc5775b

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

printing ip with mpc5775b

378 次查看
paker
Contributor I

Hi

Board :- MPC5775B

i am trying to get dynamic ip address from DHCP but i am un able to get it please check my code and tell me where to update 

Thanks & Regards,

paker

标记 (4)
0 项奖励
回复
2 回复数

354 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I found below can be used, e.g.
printf("IP address: %s\n", ip4addr_ntoa(&netif.ip_addr)); or
printf("IP address: %s\n", ip4addr_ntoa(netif_ip4_addr(&netif)));

Generally for lwip, the user is expected to use rather generic LWIP support if needed:
https://lwip.fandom.com/wiki/Further_lwIP_support

BR, Petr

0 项奖励
回复

237 次查看
paker
Contributor I

thank you for your replay i am not able to get IP in the dhcp_start(&netif) itself from tcpip library dhcp functionality

my board mpc5775b  connected with phy device ksz8041 which is custom board . I can see lights are glowing

ide=s32 Design studio for power architecture v2.1

sdk=SDK_S32_PA_15

kindly replay if you know solution for these

paker_0-1717471039120.jpeg

 

 

regards 

paker

0 项奖励
回复