<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis Software Development KitのトピックHow to change ip address using LWIP on K64</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-change-ip-address-using-LWIP-on-K64/m-p/913091#M7932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've managed to incorporate the LWIP stack into our project and can successfully ping etc.. and have now moved on to try and make the ip address as a user setting but I'm have trouble getting this to apply. I've followed the ping example and adding&amp;nbsp;&lt;SPAN&gt;netif_set_down first to the sequence as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;netif_set_down(&amp;amp;fsl_netif0);&lt;BR /&gt; &lt;BR /&gt; printf("ip address set as %d.%d.%d.%d\r\n",configIP_ADDR[0],configIP_ADDR[1],configIP_ADDR[2],configIP_ADDR[3]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IP4_ADDR(&amp;amp;fsl_netif0_ipaddr, configIP_ADDR[0], configIP_ADDR[1], configIP_ADDR[2], configIP_ADDR[3]);&lt;BR /&gt; IP4_ADDR(&amp;amp;fsl_netif0_netmask, configNET_MASK[0], configNET_MASK[1], configNET_MASK[2], configNET_MASK[3]);&lt;BR /&gt; IP4_ADDR(&amp;amp;fsl_netif0_gw, configGW_ADDR[0], configGW_ADDR[1], configGW_ADDR[2], configGW_ADDR[3]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; lwip_init();&lt;BR /&gt; &lt;BR /&gt; netif_add(&amp;amp;fsl_netif0, &amp;amp;fsl_netif0_ipaddr, &amp;amp;fsl_netif0_netmask, &amp;amp;fsl_netif0_gw,&lt;BR /&gt; &amp;amp;fsl_enet_config0, ethernetif0_init, ethernet_input);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;netif_set_default(&amp;amp;fsl_netif0);&lt;BR /&gt;netif_set_up(&amp;amp;fsl_netif0);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting a new ip address pinging the previous address now fails so it's had some effect but I can't successfully ping the new address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what steps I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 15:08:35 GMT</pubDate>
    <dc:creator>inorman</dc:creator>
    <dc:date>2019-06-27T15:08:35Z</dc:date>
    <item>
      <title>How to change ip address using LWIP on K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-change-ip-address-using-LWIP-on-K64/m-p/913091#M7932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've managed to incorporate the LWIP stack into our project and can successfully ping etc.. and have now moved on to try and make the ip address as a user setting but I'm have trouble getting this to apply. I've followed the ping example and adding&amp;nbsp;&lt;SPAN&gt;netif_set_down first to the sequence as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;netif_set_down(&amp;amp;fsl_netif0);&lt;BR /&gt; &lt;BR /&gt; printf("ip address set as %d.%d.%d.%d\r\n",configIP_ADDR[0],configIP_ADDR[1],configIP_ADDR[2],configIP_ADDR[3]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IP4_ADDR(&amp;amp;fsl_netif0_ipaddr, configIP_ADDR[0], configIP_ADDR[1], configIP_ADDR[2], configIP_ADDR[3]);&lt;BR /&gt; IP4_ADDR(&amp;amp;fsl_netif0_netmask, configNET_MASK[0], configNET_MASK[1], configNET_MASK[2], configNET_MASK[3]);&lt;BR /&gt; IP4_ADDR(&amp;amp;fsl_netif0_gw, configGW_ADDR[0], configGW_ADDR[1], configGW_ADDR[2], configGW_ADDR[3]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; lwip_init();&lt;BR /&gt; &lt;BR /&gt; netif_add(&amp;amp;fsl_netif0, &amp;amp;fsl_netif0_ipaddr, &amp;amp;fsl_netif0_netmask, &amp;amp;fsl_netif0_gw,&lt;BR /&gt; &amp;amp;fsl_enet_config0, ethernetif0_init, ethernet_input);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;netif_set_default(&amp;amp;fsl_netif0);&lt;BR /&gt;netif_set_up(&amp;amp;fsl_netif0);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting a new ip address pinging the previous address now fails so it's had some effect but I can't successfully ping the new address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what steps I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:08:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-change-ip-address-using-LWIP-on-K64/m-p/913091#M7932</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2019-06-27T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change ip address using LWIP on K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-change-ip-address-using-LWIP-on-K64/m-p/913092#M7933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone having this issue I found the answer in the LWIP wiki under the IPv4 section&amp;nbsp;&lt;A href="https://lwip.fandom.com/wiki/IPv4"&gt;https://lwip.fandom.com/wiki/IPv4&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and use the function&amp;nbsp;netif_set_ipaddr instead of adding the interface again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:07:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-change-ip-address-using-LWIP-on-K64/m-p/913092#M7933</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2019-07-01T13:07:07Z</dc:date>
    </item>
  </channel>
</rss>

