<?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>i.MX RT Crossover MCUsのトピック回复： &amp;quot;Function called without core lock&amp;quot; when re-initializing LWIP with changed IP info</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/quot-Function-called-without-core-lock-quot-when-re-initializing/m-p/1971818#M32148</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189531"&gt;@JamesNgo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your interest in NXP MIMXRT series!&lt;/P&gt;
&lt;P&gt;LWIP is an open source lightweight networking stack, it does not provide an API such as lwip_deinit(). including the SDK provided by NXP does not change this.There are some APIs in LWIP that are thread-unsafe, and the error you are experiencing should be for this reason.&lt;/P&gt;
&lt;P&gt;Consider using the netif_remove() function to remove the network interface, removing the current network interface configuration.And use mem_free() to manually free the memory resources associated with the network interface.Ensure that all related tasks and data transfers are stopped before removing the interface to avoid resource conflicts.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 03:23:50 GMT</pubDate>
    <dc:creator>Gavin_Jia</dc:creator>
    <dc:date>2024-10-11T03:23:50Z</dc:date>
    <item>
      <title>"Function called without core lock" when re-initializing LWIP with changed IP info</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/quot-Function-called-without-core-lock-quot-when-re-initializing/m-p/1971448#M32134</link>
      <description>&lt;P&gt;I'm using RT1021 lwip stack and need to account for the IP info could be changed dynamically. This info is needed when initialize LWIP stack, below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;netifapi_netif_add(&amp;amp;g_netif, &amp;amp;netif_ipaddr, &amp;amp;netif_netmask, &amp;amp;netif_gw, &amp;amp;enet_config, EXAMPLE_NETIF_INIT_FN,tcpip_input);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;netifapi_netif_set_default(&amp;amp;g_netif);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;netifapi_netif_set_up(&amp;amp;g_netif);&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. Is there such API de_init_lwip to properly delete/remove previously lwip stack setup with old IP info to repeat the re-initialization with new IP info? (I tried to re-init anyways this without the non existing de_init API and ran into a ASSERT code halt "Function called without core lock").&lt;/P&gt;&lt;P&gt;2. How do I handle properly when getting the new IP info to re-initialize lwip stack to effect the new IP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:45:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/quot-Function-called-without-core-lock-quot-when-re-initializing/m-p/1971448#M32134</guid>
      <dc:creator>JamesNgo</dc:creator>
      <dc:date>2024-10-10T14:45:48Z</dc:date>
    </item>
    <item>
      <title>回复： "Function called without core lock" when re-initializing LWIP with changed IP info</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/quot-Function-called-without-core-lock-quot-when-re-initializing/m-p/1971818#M32148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/189531"&gt;@JamesNgo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your interest in NXP MIMXRT series!&lt;/P&gt;
&lt;P&gt;LWIP is an open source lightweight networking stack, it does not provide an API such as lwip_deinit(). including the SDK provided by NXP does not change this.There are some APIs in LWIP that are thread-unsafe, and the error you are experiencing should be for this reason.&lt;/P&gt;
&lt;P&gt;Consider using the netif_remove() function to remove the network interface, removing the current network interface configuration.And use mem_free() to manually free the memory resources associated with the network interface.Ensure that all related tasks and data transfers are stopped before removing the interface to avoid resource conflicts.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 03:23:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/quot-Function-called-without-core-lock-quot-when-re-initializing/m-p/1971818#M32148</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2024-10-11T03:23:50Z</dc:date>
    </item>
  </channel>
</rss>

