printing ip with mpc5775b

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

printing ip with mpc5775b

470件の閲覧回数
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

タグ(4)
0 件の賞賛
返信
2 返答(返信)

446件の閲覧回数
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 件の賞賛
返信

329件の閲覧回数
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 件の賞賛
返信