<?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 Design StudioのトピックProblem with lwip / tcpecho</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-lwip-tcpecho/m-p/406342#M2803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;We have a board using the K64 that we're trying to do Ethernet-TCP/IP com using KDS 3.0 with KSDK 1.3.&amp;nbsp; I've been trying to bring up the lwip demo app tcpecho (bare metal) and I just can't get it to work.&amp;nbsp; One thing different from the FRDM board is we have a Micrel KSZ8794 non-managed 3-port switch connected to the Ethernet port of the micro.&amp;nbsp;&amp;nbsp; Since it's non-managed, it should be transparent to the bus.&amp;nbsp; The code builds and executes.&amp;nbsp; The PC has a 2nd network card plugged in (Intel I210) and I set the IP address, etc according to the Freescale app note ("Adding lwIP to KDS3.0 Project").&amp;nbsp; I'm attempting to send messages via the PC app SocketTest v3.0 and monitoring the bus with Wireshark.&amp;nbsp; When I attempt to connect&amp;nbsp; (the IP addr is set to 168.192.1.102 and the Port is 7) to the board with TestSocket and I get a time out.&amp;nbsp; Wireshark says there's no activity from the board, only the PC and I can see the query of the board coming from the PC:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;45 33.788063000 IntelCor_75:e0:c0 Broadcast ARP 42 Who has 192.168.1.102?&amp;nbsp; Tell 192.168.1.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I've tried all 3 Ethernet ports.&amp;nbsp; 192.168.1.102 is the address I've set in the code and the gateway and mask are set to 192.168.1.1 and 255.255.255.0 respectively.&amp;nbsp; The PC is set to IP adr 192.168.1.3.&amp;nbsp; The mask is 255,255,255,0 and the gateway is blank although I tried all combinations with mask 255,255,0,0 and gateway 192.168.1.1 with the same time out. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 18:02:40 GMT</pubDate>
    <dc:creator>paulfargotstein</dc:creator>
    <dc:date>2015-10-16T18:02:40Z</dc:date>
    <item>
      <title>Problem with lwip / tcpecho</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-lwip-tcpecho/m-p/406342#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;We have a board using the K64 that we're trying to do Ethernet-TCP/IP com using KDS 3.0 with KSDK 1.3.&amp;nbsp; I've been trying to bring up the lwip demo app tcpecho (bare metal) and I just can't get it to work.&amp;nbsp; One thing different from the FRDM board is we have a Micrel KSZ8794 non-managed 3-port switch connected to the Ethernet port of the micro.&amp;nbsp;&amp;nbsp; Since it's non-managed, it should be transparent to the bus.&amp;nbsp; The code builds and executes.&amp;nbsp; The PC has a 2nd network card plugged in (Intel I210) and I set the IP address, etc according to the Freescale app note ("Adding lwIP to KDS3.0 Project").&amp;nbsp; I'm attempting to send messages via the PC app SocketTest v3.0 and monitoring the bus with Wireshark.&amp;nbsp; When I attempt to connect&amp;nbsp; (the IP addr is set to 168.192.1.102 and the Port is 7) to the board with TestSocket and I get a time out.&amp;nbsp; Wireshark says there's no activity from the board, only the PC and I can see the query of the board coming from the PC:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;45 33.788063000 IntelCor_75:e0:c0 Broadcast ARP 42 Who has 192.168.1.102?&amp;nbsp; Tell 192.168.1.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I've tried all 3 Ethernet ports.&amp;nbsp; 192.168.1.102 is the address I've set in the code and the gateway and mask are set to 192.168.1.1 and 255.255.255.0 respectively.&amp;nbsp; The PC is set to IP adr 192.168.1.3.&amp;nbsp; The mask is 255,255,255,0 and the gateway is blank although I tried all combinations with mask 255,255,0,0 and gateway 192.168.1.1 with the same time out. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 18:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-lwip-tcpecho/m-p/406342#M2803</guid>
      <dc:creator>paulfargotstein</dc:creator>
      <dc:date>2015-10-16T18:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with lwip / tcpecho</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-lwip-tcpecho/m-p/406343#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I checked tcpecho example at the begging I used TeraTerm, but it didnt work. Then I had to use SocketTest application to see it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edited the IP address in tcpecho example to be 192.168.1.200 and my laptop has 192.168.1.110. Then in socketTest application I started a connection as client to address 192.168.1.200 in Port 7. This is not very obvious but it is defined in line 119.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;err = tcp_bind(echo_pcb, IP_ADDR_ANY, 7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may find useful the following document which is based in tcpecho example with FreeRTOS and it explains how to make it work with SocketTest.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-252874"&gt;How to Add lwIP to KDS3.0 Project&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem persists please try with a FRDM-K64 board to consider or discard the possibility of hardware issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Problem-with-lwip-tcpecho/m-p/406343#M2804</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-10-28T18:07:30Z</dc:date>
    </item>
  </channel>
</rss>

