<?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: lwip socket APIs in bm in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1694725#M209839</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The only calls I think are thread creation, semaphore creation &amp;amp; mailbox creation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to have the task delay in microsecond. But the vTaskDelay() functions are based on ticks and it is calculated in milliseconds.&lt;/P&gt;&lt;P&gt;1) Is there any way to reduce vTaskDelay to microsecond delays?&lt;/P&gt;&lt;P&gt;2) If not, timers can be used for microsecond delays but the Ethernet code should be in bare metal/ firmware.&lt;/P&gt;&lt;P&gt;3) If not, the change I did was, simply to use Ethernet FreeRTOS code and replace creation of thread into function. But the code is going to Hard Fault at the time of socket creation?&lt;/P&gt;&lt;P&gt;#if 0&lt;/P&gt;&lt;P&gt;/* Initialize lwIP from thread */&lt;BR /&gt;if (sys_thread_new("main", stack_init, NULL, INIT_THREAD_STACKSIZE, INIT_THREAD_PRIO) == NULL)&lt;BR /&gt;LWIP_ASSERT("main(): Task creation failed.", 0);&amp;nbsp;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; stack_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, can you tell which method would be useful and for changing the code to bm, can you tell where exactly the change can be made?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Devaharsha&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 06:19:22 GMT</pubDate>
    <dc:creator>Devaharsha</dc:creator>
    <dc:date>2023-07-28T06:19:22Z</dc:date>
    <item>
      <title>lwip socket APIs in bm</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1692933#M209706</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21410" target="_blank" rel="noopener"&gt;@kerry&lt;/A&gt;zhou&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The example modified for ethernet BSD-style socket creation and TCP/IP client server, based on your suggested document, the code is working fine. As the code or even the Sockets example uses FreeRTOS or in OS mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility in using the same in Non OS mode or in bare metal? Or can the same be modified in the No OS Mode?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 09:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1692933#M209706</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2023-07-26T09:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: lwip socket APIs in bm</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1694222#M209804</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can use the same code as bare metal just make sure all call from freertos.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1694222#M209804</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-07-27T13:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: lwip socket APIs in bm</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1694725#M209839</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The only calls I think are thread creation, semaphore creation &amp;amp; mailbox creation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to have the task delay in microsecond. But the vTaskDelay() functions are based on ticks and it is calculated in milliseconds.&lt;/P&gt;&lt;P&gt;1) Is there any way to reduce vTaskDelay to microsecond delays?&lt;/P&gt;&lt;P&gt;2) If not, timers can be used for microsecond delays but the Ethernet code should be in bare metal/ firmware.&lt;/P&gt;&lt;P&gt;3) If not, the change I did was, simply to use Ethernet FreeRTOS code and replace creation of thread into function. But the code is going to Hard Fault at the time of socket creation?&lt;/P&gt;&lt;P&gt;#if 0&lt;/P&gt;&lt;P&gt;/* Initialize lwIP from thread */&lt;BR /&gt;if (sys_thread_new("main", stack_init, NULL, INIT_THREAD_STACKSIZE, INIT_THREAD_PRIO) == NULL)&lt;BR /&gt;LWIP_ASSERT("main(): Task creation failed.", 0);&amp;nbsp;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; stack_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, can you tell which method would be useful and for changing the code to bm, can you tell where exactly the change can be made?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Devaharsha&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 06:19:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1694725#M209839</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2023-07-28T06:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: lwip socket APIs in bm</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1696549#M210019</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have used PIT timer for 50micrsecond delay in interrupt mode. Used taskYeild() for forcefully switching the task.&amp;nbsp;Its working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Devaharsha&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 08:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/lwip-socket-APIs-in-bm/m-p/1696549#M210019</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2023-08-01T08:54:46Z</dc:date>
    </item>
  </channel>
</rss>

