Kinetics K66 IP address setting/Configuration

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

Kinetics K66 IP address setting/Configuration

1,589件の閲覧回数
prasadgj
Contributor II

Hello Everyone,

Anyone can you guide me how to set the IP address for Kinetics K66 Controller

0 件の賞賛
返信
3 返答(返信)

1,367件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Prasad

I would suggest you check the lwip_ping demo for how to configure IP, netmask, gw.

Please refer to the lwip_ping demo for more details

SDK_2.2_FRDM-K66F\boards\frdmk66f\demo_apps\lwip\lwip_ping\bm\lwip_ping_bm.c

    IP4_ADDR(&fsl_netif0_ipaddr, configIP_ADDR0, configIP_ADDR1, configIP_ADDR2, configIP_ADDR3);
    IP4_ADDR(&fsl_netif0_netmask, configNET_MASK0, configNET_MASK1, configNET_MASK2, configNET_MASK3);
    IP4_ADDR(&fsl_netif0_gw, configGW_ADDR0, configGW_ADDR1, configGW_ADDR2, configGW_ADDR3);

    lwip_init();

    netif_add(&fsl_netif0, &fsl_netif0_ipaddr, &fsl_netif0_netmask, &fsl_netif0_gw, NULL, ethernetif_init,
              ethernet_input);
    netif_set_default(&fsl_netif0);
    netif_set_up(&fsl_netif0);

Regards

Daniel

0 件の賞賛
返信

1,367件の閲覧回数
mjbcswitzerland
Specialist V

Hi

Just get the open-source uTasker project from https://github.com/uTasker/uTasker-Kinetis since it contains complete TCP/IP (and RNDIS) IPv4/v6 and full management of the IP (including safe changing and storing new settings on the fly at remote devices).
Works also on K66 and tutorial at http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis.pdf

Regards

Mark

0 件の賞賛
返信

1,367件の閲覧回数
davidsherman
Senior Contributor I

The ethernet hardware only knows about the MAC address, not the IP address.  The IP stack running on it will need to be configured with the IP, or use DHCP.

0 件の賞賛
返信