<?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 PING is not stable after porting RTCS ,help. in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627661#M16934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 data-spm="1000983" style="color: #000000; background-color: #ffffff; font-weight: bold; font-size: 16px; padding: 0px 0px 0.2em;"&gt;After porting the MQX3.7 to &amp;nbsp;K60MK60DN512ZVLQ10 ,I "PING" to MCU and find that:&lt;/H1&gt;&lt;H1 data-spm="1000983" style="color: #000000; background-color: #ffffff; font-weight: bold; font-size: 16px; padding: 0px 0px 0.2em;"&gt;1 when connecting K60 to PC in OFFICE ,"PING" is OK ,even UDP is OK .&lt;/H1&gt;&lt;P&gt;2 Then bing a&amp;nbsp;switchboard between them,"PING" is not&amp;nbsp;stable, often come to a timeout.&lt;/P&gt;&lt;P&gt;3 connect two PC each at home ,PING is not&amp;nbsp;&lt;SPAN&gt;stable,often come to a timeout.That's&amp;nbsp;impenetrable~&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;explored this issue for 2 days,and still can't&amp;nbsp;work out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="178805_178805.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122945i2A63B31D15E86FDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="178805_178805.jpg" alt="178805_178805.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14869iFE831A5142CEC0C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0.jpg" alt="0.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Key CODE shows below:&lt;/P&gt;&lt;P&gt;#define ENET_IPADDR IPADDR(192,168,1,4)&lt;BR /&gt;#define ENET_MASKADDR IPADDR(255,255,255,0)&lt;BR /&gt;#define ENET_GATEWAYADDR IPADDR(192,168,1,1)&lt;BR /&gt;#define DEMOCFG_DEFAULT_DEVICE BSP_DEFAULT_ENET_DEVICE&lt;BR /&gt;void hello_task(uint_32 initial_data)&lt;BR /&gt;{&lt;BR /&gt; printf("RTSC ICMP IS CONFIG ing... PAGE-312\r\n"); &lt;BR /&gt; int_32 error;&lt;BR /&gt; _enet_address address;//mac eq&amp;nbsp;char[6]&lt;BR /&gt; IPCFG_IP_ADDRESS_DATA ip_data;&lt;BR /&gt; ip_data.ip = ENET_IPADDR;&lt;BR /&gt; ip_data.mask = ENET_MASKADDR;&lt;BR /&gt; ip_data.gateway = ENET_GATEWAYADDR;&lt;BR /&gt; //step1:create&amp;nbsp;RTCS&lt;BR /&gt; error = RTCS_create();&lt;BR /&gt; if(error == RTCS_OK)&lt;BR /&gt; {&lt;BR /&gt; printf("RTCS_create is OK\r\n");&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //step2:get&amp;nbsp;mac&amp;nbsp;to&amp;nbsp;address&lt;BR /&gt; if(1 == ENET_get_mac_address(DEMOCFG_DEFAULT_DEVICE, ip_data.ip, address))&lt;BR /&gt; {&lt;BR /&gt; printf("ENET_get_mac_address is OK\n ");&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //step3:INIT PHY&lt;BR /&gt; error = ipcfg_init_device(DEMOCFG_DEFAULT_DEVICE,address);&lt;BR /&gt; if (error == 0)&lt;BR /&gt; {&lt;BR /&gt; printf (" init ethernet device OK \n");&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //step4:bind ip&lt;BR /&gt; error = ipcfg_bind_staticip(DEMOCFG_DEFAULT_DEVICE,&amp;amp;ip_data);&lt;BR /&gt; if(error == IPCFG_OK )&lt;BR /&gt; {&lt;BR /&gt; printf("Bind OK \n");&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;BR /&gt; GPIO_ToggleBit(HW_GPIOE, 6);//&lt;SPAN&gt;ToggleLED&lt;/SPAN&gt;&lt;BR /&gt; _time_delay(200);&lt;BR /&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project is compiled in IAR 6.30, MQX version is 3.7.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338908"&gt;MQX_3_7_20170307ping_not_OK.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 14:30:59 GMT</pubDate>
    <dc:creator>tim4146</dc:creator>
    <dc:date>2017-03-07T14:30:59Z</dc:date>
    <item>
      <title>PING is not stable after porting RTCS ,help.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627661#M16934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 data-spm="1000983" style="color: #000000; background-color: #ffffff; font-weight: bold; font-size: 16px; padding: 0px 0px 0.2em;"&gt;After porting the MQX3.7 to &amp;nbsp;K60MK60DN512ZVLQ10 ,I "PING" to MCU and find that:&lt;/H1&gt;&lt;H1 data-spm="1000983" style="color: #000000; background-color: #ffffff; font-weight: bold; font-size: 16px; padding: 0px 0px 0.2em;"&gt;1 when connecting K60 to PC in OFFICE ,"PING" is OK ,even UDP is OK .&lt;/H1&gt;&lt;P&gt;2 Then bing a&amp;nbsp;switchboard between them,"PING" is not&amp;nbsp;stable, often come to a timeout.&lt;/P&gt;&lt;P&gt;3 connect two PC each at home ,PING is not&amp;nbsp;&lt;SPAN&gt;stable,often come to a timeout.That's&amp;nbsp;impenetrable~&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;explored this issue for 2 days,and still can't&amp;nbsp;work out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="178805_178805.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122945i2A63B31D15E86FDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="178805_178805.jpg" alt="178805_178805.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14869iFE831A5142CEC0C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0.jpg" alt="0.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Key CODE shows below:&lt;/P&gt;&lt;P&gt;#define ENET_IPADDR IPADDR(192,168,1,4)&lt;BR /&gt;#define ENET_MASKADDR IPADDR(255,255,255,0)&lt;BR /&gt;#define ENET_GATEWAYADDR IPADDR(192,168,1,1)&lt;BR /&gt;#define DEMOCFG_DEFAULT_DEVICE BSP_DEFAULT_ENET_DEVICE&lt;BR /&gt;void hello_task(uint_32 initial_data)&lt;BR /&gt;{&lt;BR /&gt; printf("RTSC ICMP IS CONFIG ing... PAGE-312\r\n"); &lt;BR /&gt; int_32 error;&lt;BR /&gt; _enet_address address;//mac eq&amp;nbsp;char[6]&lt;BR /&gt; IPCFG_IP_ADDRESS_DATA ip_data;&lt;BR /&gt; ip_data.ip = ENET_IPADDR;&lt;BR /&gt; ip_data.mask = ENET_MASKADDR;&lt;BR /&gt; ip_data.gateway = ENET_GATEWAYADDR;&lt;BR /&gt; //step1:create&amp;nbsp;RTCS&lt;BR /&gt; error = RTCS_create();&lt;BR /&gt; if(error == RTCS_OK)&lt;BR /&gt; {&lt;BR /&gt; printf("RTCS_create is OK\r\n");&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //step2:get&amp;nbsp;mac&amp;nbsp;to&amp;nbsp;address&lt;BR /&gt; if(1 == ENET_get_mac_address(DEMOCFG_DEFAULT_DEVICE, ip_data.ip, address))&lt;BR /&gt; {&lt;BR /&gt; printf("ENET_get_mac_address is OK\n ");&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //step3:INIT PHY&lt;BR /&gt; error = ipcfg_init_device(DEMOCFG_DEFAULT_DEVICE,address);&lt;BR /&gt; if (error == 0)&lt;BR /&gt; {&lt;BR /&gt; printf (" init ethernet device OK \n");&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //step4:bind ip&lt;BR /&gt; error = ipcfg_bind_staticip(DEMOCFG_DEFAULT_DEVICE,&amp;amp;ip_data);&lt;BR /&gt; if(error == IPCFG_OK )&lt;BR /&gt; {&lt;BR /&gt; printf("Bind OK \n");&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; printf("Failed!!");&lt;BR /&gt; _task_block();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;BR /&gt; GPIO_ToggleBit(HW_GPIOE, 6);//&lt;SPAN&gt;ToggleLED&lt;/SPAN&gt;&lt;BR /&gt; _time_delay(200);&lt;BR /&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project is compiled in IAR 6.30, MQX version is 3.7.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338908"&gt;MQX_3_7_20170307ping_not_OK.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 14:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627661#M16934</guid>
      <dc:creator>tim4146</dc:creator>
      <dc:date>2017-03-07T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: PING is not stable after porting RTCS ,help.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627662#M16935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;phy ship is KSZ4041&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 14:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627662#M16935</guid>
      <dc:creator>tim4146</dc:creator>
      <dc:date>2017-03-07T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: PING is not stable after porting RTCS ,help.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627663#M16936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which board you are using, TWR-K60N512 or TWR-K60D100M board, or custom board?&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, 10 Mar 2017 03:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627663#M16936</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-03-10T03:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: PING is not stable after porting RTCS ,help.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627664#M16937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sry for delayed reply ,my lovely boy is just 36 days old .I have little time to open my PC these days。。&lt;/P&gt;&lt;P&gt;I&amp;nbsp;use a&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;custom board, all the pins of 8041 ship on board are confirmed according to the PCB. CLOCK &amp;nbsp;frequency is changed based on the board 50Mhz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I thought it should be easy to porting MQX on my board since the default PHY ship is kzs8041 in MQX 3.7.However....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is it possible &amp;nbsp;if I ignored something that need to be changed ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;THX for your help very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:55:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627664#M16937</guid>
      <dc:creator>tim4146</dc:creator>
      <dc:date>2017-03-14T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: PING is not stable after porting RTCS ,help.</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627665#M16938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Congratulations, Yong! Wish your baby a healthy and happy life:)&lt;/P&gt;&lt;P&gt;Since ping is OK at office and timeout at home, I would suggest check if there is IP address conflict, or MAC address conflict?&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>Wed, 15 Mar 2017 05:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/PING-is-not-stable-after-porting-RTCS-help/m-p/627665#M16938</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-03-15T05:52:17Z</dc:date>
    </item>
  </channel>
</rss>

