<?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: Anyone successfully convert the eth_to_serial example to PEx? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396078#M1297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dave408,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the httpsrv example located at the path : C:\Freescale\KSDK_1.1.0\tcpip\rtcs\examples\httpsrv?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&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>Tue, 21 Apr 2015 23:56:39 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2015-04-21T23:56:39Z</dc:date>
    <item>
      <title>Anyone successfully convert the eth_to_serial example to PEx?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396077#M1296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I was first finding my way around the Kinetis tools, I used the eth_to_serial as the starting point for one of my applications.&amp;nbsp; I added tasks and my modbus code to it and it worked out relatively well.&amp;nbsp; However, I have recently decided that it makes the most sense to leverage PEx.&amp;nbsp; I drew up a matrix of the tool and feature combinations, and I completed the KSDK+PEx tasks more quickly than the others.&amp;nbsp; Plus, that's the future of Kinetis development, so it makes sense to stick with it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I forgot who it was here that pointed me to &lt;A _jive_internal="true" data-containerid="2022" data-containertype="14" data-objectid="102330" data-objecttype="102" href="https://community.nxp.com/docs/DOC-102330" rel="nofollow noopener noreferrer" target="_blank"&gt;this excellent tutorial&lt;/A&gt; on how to add PEx to a bare project (sorry -- probably David or Jorge), but I was able to get my project converted over pretty well.&amp;nbsp; I added OS_TASKs and started to fill in all of the details.&amp;nbsp; However, now when I run the project, it only gets part of the way through the RTCS code.&amp;nbsp; More specifically, when I try to step into ipcfg_bind_staticip(), execution freezes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;void ethernet_task(os_task_param_t task_init_data) { #ifdef PEX_USE_RTOS #if RTCSCFG_ENABLE_IP4 &amp;nbsp;&amp;nbsp;&amp;nbsp; IPCFG_IP_ADDRESS_DATA ip_data; &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t ip4_addr = ENET_IPADDR; #endif &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t error; &amp;nbsp;&amp;nbsp;&amp;nbsp; sockaddr addr; &amp;nbsp;&amp;nbsp;&amp;nbsp; _enet_address enet_addr = ENET_MAC; &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t retval = 0; &amp;nbsp;&amp;nbsp;&amp;nbsp; SOCKETS_STRUCT sockets; &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t conn_sock; &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t client_sock; &amp;nbsp;&amp;nbsp;&amp;nbsp; _task_id rx_tid; &amp;nbsp;&amp;nbsp;&amp;nbsp; //_task_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tx_tid; &amp;nbsp;&amp;nbsp;&amp;nbsp; FILE_PTR ser_device; &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t option; &amp;nbsp;&amp;nbsp;&amp;nbsp; rtcs_fd_set rfds; &amp;nbsp;&amp;nbsp;&amp;nbsp; int32_t err; #if RTCSCFG_ENABLE_IP6 &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t n = 0; &amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t i = 0; &amp;nbsp;&amp;nbsp;&amp;nbsp; IPCFG6_GET_ADDR_DATA data[RTCSCFG_IP6_IF_ADDRESSES_MAX]; &amp;nbsp;&amp;nbsp;&amp;nbsp; char prn_addr6[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"]; #endif&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sockets.sock4 = 0; &amp;nbsp;&amp;nbsp;&amp;nbsp; sockets.sock6 = 0; &amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize RTCS */ &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCSPCB_init = 4; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCSPCB_grow = 2; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCSPCB_max = 20; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_msgpool_init = 4; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_msgpool_grow = 2; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_msgpool_max = 20; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_socket_part_init = 4; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_socket_part_grow = 2; &amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_socket_part_max = 20; &amp;nbsp;&amp;nbsp;&amp;nbsp; error = RTCS_create(); &amp;nbsp;&amp;nbsp;&amp;nbsp; if (error != RTCS_OK) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fputs("Fatal Error: RTCS initialization failed.", stderr); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block(); &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // my stuff here &amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t mac[6] = {0}; &amp;nbsp;&amp;nbsp;&amp;nbsp; GetSemiUniqueMacAddress( mac); &amp;nbsp;&amp;nbsp;&amp;nbsp; ExecuteUnitTests(); &amp;nbsp;&amp;nbsp;&amp;nbsp; // end my stuff&amp;nbsp; #if RTCSCFG_ENABLE_IP4 &amp;nbsp;&amp;nbsp;&amp;nbsp; ip_data.ip = ENET_IPADDR; &amp;nbsp;&amp;nbsp;&amp;nbsp; ip_data.mask = ENET_IPMASK; &amp;nbsp;&amp;nbsp;&amp;nbsp; ip_data.gateway = ENET_IPGATEWAY; #endif &amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize ethernet */ &amp;nbsp;&amp;nbsp;&amp;nbsp; error = ipcfg_init_device(BSP_DEFAULT_ENET_DEVICE, enet_addr); &amp;nbsp;&amp;nbsp;&amp;nbsp; if (error != IPCFG_OK) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf(stderr, "Fatal Error 0x%X: Network device initialization failed.\r\n", (unsigned int)error); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_block(); &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; #if RTCSCFG_ENABLE_IP4 &amp;nbsp;&amp;nbsp;&amp;nbsp; /* Bind static IP address */ &amp;nbsp;&amp;nbsp;&amp;nbsp; error = ipcfg_bind_staticip(BSP_DEFAULT_ENET_DEVICE, &amp;amp;ip_data); &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And even though I could run before, now I can't because I have the 8192 character limit to overcome.&amp;nbsp; &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&amp;nbsp; Will post more info about the freeze later, but I'm still interested to hear if anyone has gotten this conversion to work, or if you can recommend how to do simple sockets with PEx, like a telnet connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 06:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396077#M1296</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-10T06:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone successfully convert the eth_to_serial example to PEx?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396078#M1297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dave408,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the httpsrv example located at the path : C:\Freescale\KSDK_1.1.0\tcpip\rtcs\examples\httpsrv?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&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>Tue, 21 Apr 2015 23:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396078#M1297</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-04-21T23:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone successfully convert the eth_to_serial example to PEx?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396079#M1298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, one of my two ethernet projects is based on it, but I don't recall that it used PEx.&amp;nbsp; I'll double check, thanks.&amp;nbsp; If it does use PEx I will feel really silly.&amp;nbsp; :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 23:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396079#M1298</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-21T23:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone successfully convert the eth_to_serial example to PEx?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396080#M1299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just confirmed that httpsrv does not use PEx.&amp;nbsp; As far as I could tell, there are no usable examples with RTCS or lwIP with PEx and MQX Standard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 00:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396080#M1299</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-22T00:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone successfully convert the eth_to_serial example to PEx?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396081#M1300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this issue in the lwIP case before by creating a new project, and then copying over the code.&amp;nbsp; Then I manually resolved all of the missing include files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While that worked for me in KDS 2.0, once I moved to KDS 3.0 I couldn't get my project working anymore due to a hard fault.&amp;nbsp; This ongoing discussion is covered in a different post &lt;A href="https://community.nxp.com/thread/356653"&gt;Adding HardFault handlers in KDS3/KSDK1.2?&lt;/A&gt; so I will close this discussion as I have proven that it's possible to get the example code working under a new PEx project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Anyone-successfully-convert-the-eth-to-serial-example-to-PEx/m-p/396081#M1300</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-06-04T13:56:41Z</dc:date>
    </item>
  </channel>
</rss>

