printing ip with mpc5775b

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

printing ip with mpc5775b

598 Views
paker
Contributor II

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

0 Kudos
Reply
2 Replies

574 Views
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 Kudos
Reply

457 Views
paker
Contributor II

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 Kudos
Reply