<?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>topic Re: Cannot ping dev board after lwip initialization in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Cannot-ping-dev-board-after-lwip-initialization/m-p/953259#M2485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I tested the&amp;nbsp; lwip_tcpecho_freertos demo with evkmimxrt1064 board, using your lwipopts.h&lt;BR /&gt; First the compile failed.&lt;BR /&gt; If I comment on below line,&amp;nbsp; it will be OK&lt;BR /&gt; //#define LWIP_TIMEVAL_PRIVATE 0&lt;BR /&gt; I can ping successfully on my side.&lt;BR /&gt; I did not modify anything on lwip_tcpecho_freertos.c.&lt;BR /&gt; It seems the difference between us is the macro 'LWIP_TIMEVAL_PRIVATE'.&lt;BR /&gt; I would suggest you check this macro. and double check it on your side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2019 02:01:25 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2019-09-27T02:01:25Z</dc:date>
    <item>
      <title>Cannot ping dev board after lwip initialization</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Cannot-ping-dev-board-after-lwip-initialization/m-p/953258#M2484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build an application that uses FreeRTOS and the lwip stack. I am using the MIMXRT1064-EVK with version 2.6.1 of the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running into an issue where after I have initialized enet and tcp/ip I cannot ping the board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;initializing enet and tcp/ip with the same code that is in the example programs provided by the sdk, and have an almost identical configuration for lwipopts.h. I have attached my version of lwipopts.h to this post for comparison.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know my connection to the board is good because when I flash the example programs to the board I am able to ping them without issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I set up anything incorrectly in my initialization that could be causing this issue?&lt;/P&gt;&lt;P&gt;Are there other places that I should be looking that could be causing this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code used to initalize enet and tcp/ip:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpio_pin_config_t gpio_config = {kGPIO_DigitalOutput, 0, kGPIO_NoIntmode};&lt;/P&gt;&lt;P&gt;BOARD_ConfigMPU();&lt;BR /&gt;BOARD_InitPins();&lt;BR /&gt;BOARD_BootClockRUN();&lt;BR /&gt;BOARD_InitDebugConsole();&lt;BR /&gt;BOARD_InitModuleClock();&lt;/P&gt;&lt;P&gt;//TCPIP init&lt;/P&gt;&lt;P&gt;IOMUXC_EnableMode(IOMUXC_GPR, kIOMUXC_GPR_ENET1TxClkOutputDir, true);&lt;/P&gt;&lt;P&gt;GPIO_PinInit(GPIO1, 9, &amp;amp;gpio_config);&lt;BR /&gt;GPIO_PinInit(GPIO1, 10, &amp;amp;gpio_config);&lt;BR /&gt;/* pull up the ENET_INT before RESET. */&lt;BR /&gt;GPIO_WritePinOutput(GPIO1, 10, 1);&lt;BR /&gt;GPIO_WritePinOutput(GPIO1, 9, 0);&lt;BR /&gt;delaygpio();&lt;BR /&gt;GPIO_WritePinOutput(GPIO1, 9, 1);&lt;/P&gt;&lt;P&gt;IP4_ADDR(&amp;amp;fsl_netif0_ipaddr, IP_ADDRESS_0, IP_ADDRESS_1, IP_ADDRESS_2, IP_ADDRESS_3);&lt;BR /&gt;IP4_ADDR(&amp;amp;fsl_netif0_netmask, IP_MASK_0, IP_MASK_1, IP_MASK_2, IP_MASK_3);&lt;BR /&gt;IP4_ADDR(&amp;amp;fsl_netif0_gw, IP_GW_0, IP_GW_1, IP_GW_2, IP_GW_3);&lt;/P&gt;&lt;P&gt;tcpip_init(NULL, NULL);&lt;/P&gt;&lt;P&gt;netifapi_netif_add(&amp;amp;fsl_netif0, &amp;amp;fsl_netif0_ipaddr, &amp;amp;fsl_netif0_netmask, &amp;amp;fsl_netif0_gw, &amp;amp;fsl_enet_config0,&lt;BR /&gt;ethernetif0_init, tcpip_input);&lt;BR /&gt;netifapi_netif_set_default(&amp;amp;fsl_netif0);&lt;BR /&gt;netifapi_netif_set_up(&amp;amp;fsl_netif0);&lt;/P&gt;&lt;P&gt;PRINTF("\r\n************************************************\r\n");&lt;BR /&gt;PRINTF(" TCP Echo example\r\n");&lt;BR /&gt;PRINTF("************************************************\r\n");&lt;BR /&gt;PRINTF(" IPv4 Address : %u.%u.%u.%u\r\n", ((u8_t *)&amp;amp;fsl_netif0_ipaddr)[0], ((u8_t *)&amp;amp;fsl_netif0_ipaddr)[1],&lt;BR /&gt;((u8_t *)&amp;amp;fsl_netif0_ipaddr)[2], ((u8_t *)&amp;amp;fsl_netif0_ipaddr)[3]);&lt;BR /&gt;PRINTF(" IPv4 Subnet mask : %u.%u.%u.%u\r\n", ((u8_t *)&amp;amp;fsl_netif0_netmask)[0], ((u8_t *)&amp;amp;fsl_netif0_netmask)[1],&lt;BR /&gt;((u8_t *)&amp;amp;fsl_netif0_netmask)[2], ((u8_t *)&amp;amp;fsl_netif0_netmask)[3]);&lt;BR /&gt;PRINTF(" IPv4 Gateway : %u.%u.%u.%u\r\n", ((u8_t *)&amp;amp;fsl_netif0_gw)[0], ((u8_t *)&amp;amp;fsl_netif0_gw)[1],&lt;BR /&gt;((u8_t *)&amp;amp;fsl_netif0_gw)[2], ((u8_t *)&amp;amp;fsl_netif0_gw)[3]);&lt;BR /&gt;PRINTF("************************************************\r\n");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 14:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Cannot-ping-dev-board-after-lwip-initialization/m-p/953258#M2484</guid>
      <dc:creator>joe_downing</dc:creator>
      <dc:date>2019-09-20T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot ping dev board after lwip initialization</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Cannot-ping-dev-board-after-lwip-initialization/m-p/953259#M2485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I tested the&amp;nbsp; lwip_tcpecho_freertos demo with evkmimxrt1064 board, using your lwipopts.h&lt;BR /&gt; First the compile failed.&lt;BR /&gt; If I comment on below line,&amp;nbsp; it will be OK&lt;BR /&gt; //#define LWIP_TIMEVAL_PRIVATE 0&lt;BR /&gt; I can ping successfully on my side.&lt;BR /&gt; I did not modify anything on lwip_tcpecho_freertos.c.&lt;BR /&gt; It seems the difference between us is the macro 'LWIP_TIMEVAL_PRIVATE'.&lt;BR /&gt; I would suggest you check this macro. and double check it on your side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 02:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Cannot-ping-dev-board-after-lwip-initialization/m-p/953259#M2485</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-09-27T02:01:25Z</dc:date>
    </item>
  </channel>
</rss>

