<?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>MCUXpresso SDKのトピックRe: FreeRTOS crash in a Wi-Fi setup example</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2137435#M5238</link>
    <description>For some reason, replacing tcpip_input with a simple wrapper leads to stack requirements growth in Tmr Svc thread.</description>
    <pubDate>Mon, 21 Jul 2025 12:12:28 GMT</pubDate>
    <dc:creator>azarubkin</dc:creator>
    <dc:date>2025-07-21T12:12:28Z</dc:date>
    <item>
      <title>FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135058#M5227</link>
      <description>&lt;P&gt;I'm getting FreeRTOS crash in the "wifi_setup" example imported from SDK.&lt;/P&gt;&lt;P&gt;Here's a tail of the debugging session output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[New Thread 3]
[New Thread 9]
[New Thread 1610631818]
[New Thread 5]
[New Thread 6]
[New Thread 4]
[New Thread 8]
[New Thread 7]
[New Thread 10]

Thread 
2 received signal SIGSTOP, Stopped (signal).
[Switching to Thread 3]
Reset_Handler () at C:/tmp/mcux_sdk_release_25_06_00/mcuxsdk/devices/RT/RT1060/MIMXRT1062/gcc\startup_MIMXRT1062.S:446
446	    b DefaultISR&lt;/LI-CODE&gt;&lt;P&gt;The debugger shows the state of the threads. The top of the current thread call stack is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Tmr Svc": Stopped
Reset_Handler@0x60002524
&amp;lt;signal handler called&amp;gt;@0xfffffffd&lt;/LI-CODE&gt;&lt;P&gt;If I look at&amp;nbsp;&lt;STRONG&gt;pxReadyTasksLists&lt;/STRONG&gt; array in the debugger, it shows that its 2nd element has&amp;nbsp;&lt;STRONG&gt;uxNumberOfItems&lt;/STRONG&gt; == 1 but&amp;nbsp;&lt;STRONG&gt;pxIndex&lt;/STRONG&gt; points to&amp;nbsp;&lt;STRONG&gt;xListEnd&lt;/STRONG&gt;. At the same time,&amp;nbsp;&lt;STRONG&gt;xListEnd&lt;/STRONG&gt;-&amp;gt;&lt;STRONG&gt;pxNext&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;pxPrevious&lt;/STRONG&gt; point to "tcp/ip" task. I've attached a screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azarubkin_0-1752673050909.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/347874iD8F6A5F3BE9FE529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azarubkin_0-1752673050909.png" alt="azarubkin_0-1752673050909.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;azarubkin_0-1752673050909.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MIMXRT1060-EVKB board&lt;/LI&gt;&lt;LI&gt;MAYA-W161 M.2 Wi-Fi card&lt;/LI&gt;&lt;LI&gt;I have the resistors resoldered on the board to enable M.2 connector.&lt;/LI&gt;&lt;LI&gt;I'm using Visual Studio Code with MCUXpresso for VS Code extension&lt;/LI&gt;&lt;LI&gt;I've imported MCUXpresso SDK Repository version 25.03.00 (I've checked version 25.06.00 but it made no difference)&lt;/LI&gt;&lt;LI&gt;I've imported the following example from Repository: wifi_examples/wifi_setup, as a Freestanding application.&lt;/LI&gt;&lt;LI&gt;I've also made a wrapper for&amp;nbsp;&lt;STRONG&gt;tcpip_input&lt;/STRONG&gt; function to print something to the debug console.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As my Wi-Fi card isn't readily available in the choice of cards, I've made the following changes to the SDK sources:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.venv) c:\tmp\mcux_sdk_release_25_06_00\mcuxsdk&amp;gt;west diff
=== diff for mcu-sdk-examples (mcuxsdk/examples):
diff --git mcuxsdk/examples/_boards/evkbmimxrt1060/wifi_examples/wifi_setup/prj.conf mcuxsdk/examples/_boards/evkbmimxrt1060/wifi_examples/wifi_setup/prj.conf
index 8892a39d6..8060d7118 100644
--- mcuxsdk/examples/_boards/evkbmimxrt1060/wifi_examples/wifi_setup/prj.conf
+++ mcuxsdk/examples/_boards/evkbmimxrt1060/wifi_examples/wifi_setup/prj.conf
@@ -7,4 +7,4 @@ CONFIG_MCUX_COMPONENT_middleware.sdmmc.host.usdhc.non_blocking=y
 CONFIG_MCUX_COMPONENT_utility.assert_lite=n
 CONFIG_MCUX_COMPONENT_utility.debug_console_lite=n
 CONFIG_MCUX_COMPONENT_component.wifi_bt_module.IW416=y
-CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_1xk_usd=y
\ No newline at end of file
+CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_m2=y


=== diff for mcu-sdk-components (mcuxsdk/components):
diff --git mcuxsdk/components/wifi_bt_module/CMakeLists.txt mcuxsdk/components/wifi_bt_module/CMakeLists.txt
index d06643b..6e7c777 100644
--- mcuxsdk/components/wifi_bt_module/CMakeLists.txt
+++ mcuxsdk/components/wifi_bt_module/CMakeLists.txt
@@ -154,6 +154,12 @@ if (CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_usd)
     )
 endif()

+if (CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_m2)
+     mcux_add_macro(
+        "-DWIFI_IW416_BOARD_UBX_MAYA_W1_M2"
+    )
+endif()
+
 if (CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_2dl_m2)
      mcux_add_macro(
         "-DWIFI_IW611_BOARD_MURATA_2DL_M2"
diff --git mcuxsdk/components/wifi_bt_module/Kconfig mcuxsdk/components/wifi_bt_module/Kconfig
index ee38df8..0d37f8f 100644
--- mcuxsdk/components/wifi_bt_module/Kconfig
+++ mcuxsdk/components/wifi_bt_module/Kconfig
@@ -246,6 +246,20 @@ menu "wifi_bt_module"
                         Detailed information about Type MAYA W1 module you can find on
                         https://www.u-blox.com/en/product/maya-w1-series

+                config MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_m2
+                    bool "NXP UBX-MAYA-W1-M2"
+                    help
+                        The MAYA-W1 series are host-based Wi-Fi 4 and Bluetooth 5.2 multiradio
+                        modules designed for a wide range of industrial applications, such as
+                        industrial automation and smart manufacturing, EV charging infrastructures,
+                        professional appliances, tracking and telematics, point-of-sale and
+                        ticketing machines, building automation, and healthcare. The modules
+                        are designed and built to meet the high reliability and quality requirements
+                        of such applications.
+
+                        Detailed information about Type MAYA W1 module you can find on
+                        https://www.u-blox.com/en/product/maya-w1-series
+
             endchoice
         endif

diff --git mcuxsdk/components/wifi_bt_module/incl/wifi_bt_module_config.h mcuxsdk/components/wifi_bt_module/incl/wifi_bt_module_config.h
index b59457d..84316a5 100644
--- mcuxsdk/components/wifi_bt_module/incl/wifi_bt_module_config.h
+++ mcuxsdk/components/wifi_bt_module/incl/wifi_bt_module_config.h
@@ -286,6 +286,17 @@
         .ed_ctrl_2g = 0x1, .ed_offset_2g = 0x9, .ed_ctrl_5g = 0x1, .ed_offset_5g = 0xC \
     }

+/* u-blox EVK-MAYA-W1-M2 */
+#elif defined(WIFI_IW416_BOARD_UBX_MAYA_W1_M2)
+#define WIFI_BT_TX_PWR_LIMITS "wlan_txpwrlimit_cfg_WW.h"
+#define SD8978
+#define SDMMCHOST_OPERATION_VOLTAGE_1V8
+#define WIFI_BT_USE_M2_INTERFACE
+#define WLAN_ED_MAC_CTRL                                                               \
+    {                                                                                  \
+        .ed_ctrl_2g = 0x1, .ed_offset_2g = 0x9, .ed_ctrl_5g = 0x1, .ed_offset_5g = 0xC \
+    }
+
 /* Redfinch RW61X */
 #elif defined(WIFI_BOARD_RW610)
 #define WIFI_BT_TX_PWR_LIMITS "wlan_txpwrlimit_cfg_WW_rw610.h"


=== diff for wifi_nxp (mcuxsdk/middleware/wifi_nxp):
diff --git mcuxsdk/middleware/wifi_nxp/port/net/net.c mcuxsdk/middleware/wifi_nxp/port/net/net.c
index 5b830d24..6a4a48d2 100644
--- mcuxsdk/middleware/wifi_nxp/port/net/net.c
+++ mcuxsdk/middleware/wifi_nxp/port/net/net.c
@@ -318,8 +318,10 @@ int net_wlan_init(void)
         (void)wifi_register_wrapper_net_is_ip_or_ipv6_callback(&amp;amp;wrapper_net_is_ip_or_ipv6);
 #endif
         ip_2_ip4(&amp;amp;g_mlan.ipaddr)-&amp;gt;addr = INADDR_ANY;
+// HACK: This is a hack to allow the wifi_tcpip_input_wrapper to be used as the input function for the wifi interface
+err_t wifi_tcpip_input_wrapper(struct pbuf *p, struct netif *netif);
         ret = netifapi_netif_add(&amp;amp;g_mlan.netif, ip_2_ip4(&amp;amp;g_mlan.ipaddr), ip_2_ip4(&amp;amp;g_mlan.ipaddr),
-                                 ip_2_ip4(&amp;amp;g_mlan.ipaddr), NULL, lwip_netif_init, tcpip_input);
+                                 ip_2_ip4(&amp;amp;g_mlan.ipaddr), NULL, lwip_netif_init, wifi_tcpip_input_wrapper);
         if (ret != WM_SUCCESS)
         {
             net_e("MLAN interface add failed");
@@ -331,7 +333,7 @@ int net_wlan_init(void)

 #if UAP_SUPPORT
         ret = netifapi_netif_add(&amp;amp;g_uap.netif, ip_2_ip4(&amp;amp;g_uap.ipaddr), ip_2_ip4(&amp;amp;g_uap.ipaddr),
-                                 ip_2_ip4(&amp;amp;g_uap.ipaddr), NULL, lwip_netif_uap_init, tcpip_input);
+                                 ip_2_ip4(&amp;amp;g_uap.ipaddr), NULL, lwip_netif_uap_init, wifi_tcpip_input_wrapper);
         if (ret != WM_SUCCESS)
         {
             net_e("UAP interface add failed");


Empty diff in 91 projects.&lt;/LI-CODE&gt;&lt;P&gt;My wrapper function looks as:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;err_t wifi_tcpip_input_wrapper(struct pbuf *p, struct netif *netif)
{
    PRINTF("In wrapper\r\n");
    const err_t result = tcpip_input(p, netif);
    return result;
}&lt;/LI-CODE&gt;&lt;P&gt;So there's nothing criminal there, just calling the original function. The crash happens after "In wrapper" is printed to the console, when the software should switch to "tcp/ip" task.&lt;/P&gt;&lt;P&gt;There's a similar post on FreeRTOS forum:&amp;nbsp;&lt;A href="https://forums.freertos.org/t/incorrect-pxreadytaskslists-state-causes-fault/17791," target="_blank" rel="noopener"&gt;https://forums.freertos.org/t/incorrect-pxreadytaskslists-state-causes-fault/17791,&lt;/A&gt;&amp;nbsp;only in my case&amp;nbsp;&lt;STRONG&gt;pxCurrentTCB&lt;/STRONG&gt; is correct, pointing to "Tmr Svc" task.&lt;/P&gt;&lt;P&gt;The solution to that topic was an incorrect interrupt priority. I tried setting all NVIC-&amp;gt;IPRn registers to 0xF0 at the beginning of the program to set all priorities to the lowest possible level but that didn't help. I also checked the stacks -- they are fine. I can attach my project or upload it anywhere if that helps.&lt;/P&gt;&lt;P&gt;If I don't use wrapper function, so that the SDK code calls&amp;nbsp;&lt;STRONG&gt;tcpip_input&lt;/STRONG&gt; directly, the example works but sometimes I get delays in ping responses of like 1600 ms which is strange because I ping my local router. So I suspect the bug is still there but adding a PRINTF makes it more apparent.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 14:03:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135058#M5227</guid>
      <dc:creator>azarubkin</dc:creator>
      <dc:date>2025-07-16T14:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135265#M5228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me check this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 22:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135265#M5228</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2025-07-16T22:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135861#M5229</link>
      <description>&lt;P&gt;If I run the project in MCUXpresso IDE with SDK 25.6.0, the execution hits MemManage_Handler, if that helps. In MCUXpresso for VS Code, it's DefaultISR instead of MemManage_Handler.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 13:51:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135861#M5229</guid>
      <dc:creator>azarubkin</dc:creator>
      <dc:date>2025-07-17T13:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135872#M5230</link>
      <description>&lt;P&gt;xPSR register value is 0x81000004.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 14:10:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135872#M5230</guid>
      <dc:creator>azarubkin</dc:creator>
      <dc:date>2025-07-17T14:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135992#M5231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested wifi_setup on an RT1060-EVKB with a 1XK (IW416) M.2 module, and it is working on my side. I selected the correct module by using the Kconfig GUI.&lt;/P&gt;
&lt;P&gt;1. Right click on the project &amp;gt; Configure &amp;gt; Open Kconfig GUI Configuration&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Component configuration &amp;gt; wifi_bt_module &amp;gt; config &amp;gt; Select NXP IW416 module (NXP IW416-MURATA-1XK-M2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no option for&amp;nbsp;&lt;SPAN&gt;MAYA-W161. Nevertheless, both modules use the same SoC. Could you please try with the same option as me "NXP IW416-MURATA-1XK-M2"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 18:12:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2135992#M5231</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2025-07-17T18:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2136037#M5232</link>
      <description>&lt;P&gt;Have you tried building it in debug mode? I've found that the crash happens only in debug build. Also, setting&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt; &lt;SPAN&gt;configTIMER_TASK_STACK_DEPTH&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;configMINIMAL_STACK_SIZE * 2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;fixes it in debug mode as well.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;It appears stack overflow happens in timer task in debug mode. How do I calculate the amount of stack needed for the task?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jul 2025 20:46:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2136037#M5232</guid>
      <dc:creator>azarubkin</dc:creator>
      <dc:date>2025-07-17T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2136658#M5233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm not sure why it crashes on your side. Are you using the example as is with the recommendation I gave you?&lt;/P&gt;
&lt;P&gt;I tested in on 25.03 in debug mode and it is working on my side.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Daniel.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 15:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2136658#M5233</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2025-07-18T15:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2136698#M5236</link>
      <description>&lt;P&gt;Yes I am sure. I've imported the example from scratch, reverted most of my modifications to the SDK and selected MURATA-1XK-M2 board in the Kconfig GUI tool.&lt;/P&gt;&lt;P&gt;The only modification to the SDK is to call my wrapper function instead of tcpip_input:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=== diff for wifi_nxp (mcuxsdk/middleware/wifi_nxp):
diff --git mcuxsdk/middleware/wifi_nxp/port/net/net.c mcuxsdk/middleware/wifi_nxp/port/net/net.c
index 5b830d24..6a4a48d2 100644
--- mcuxsdk/middleware/wifi_nxp/port/net/net.c
+++ mcuxsdk/middleware/wifi_nxp/port/net/net.c
@@ -318,8 +318,10 @@ int net_wlan_init(void)
         (void)wifi_register_wrapper_net_is_ip_or_ipv6_callback(&amp;amp;wrapper_net_is_ip_or_ipv6);
 #endif
         ip_2_ip4(&amp;amp;g_mlan.ipaddr)-&amp;gt;addr = INADDR_ANY;
+// HACK: This is a hack to allow the wifi_tcpip_input_wrapper to be used as the input function for the wifi interface
+err_t wifi_tcpip_input_wrapper(struct pbuf *p, struct netif *netif);
         ret = netifapi_netif_add(&amp;amp;g_mlan.netif, ip_2_ip4(&amp;amp;g_mlan.ipaddr), ip_2_ip4(&amp;amp;g_mlan.ipaddr),
-                                 ip_2_ip4(&amp;amp;g_mlan.ipaddr), NULL, lwip_netif_init, tcpip_input);
+                                 ip_2_ip4(&amp;amp;g_mlan.ipaddr), NULL, lwip_netif_init, wifi_tcpip_input_wrapper);
         if (ret != WM_SUCCESS)
         {
             net_e("MLAN interface add failed");
@@ -331,7 +333,7 @@ int net_wlan_init(void)

 #if UAP_SUPPORT
         ret = netifapi_netif_add(&amp;amp;g_uap.netif, ip_2_ip4(&amp;amp;g_uap.ipaddr), ip_2_ip4(&amp;amp;g_uap.ipaddr),
-                                 ip_2_ip4(&amp;amp;g_uap.ipaddr), NULL, lwip_netif_uap_init, tcpip_input);
+                                 ip_2_ip4(&amp;amp;g_uap.ipaddr), NULL, lwip_netif_uap_init, wifi_tcpip_input_wrapper);
         if (ret != WM_SUCCESS)
         {
             net_e("UAP interface add failed");&lt;/LI-CODE&gt;&lt;P&gt;And the wrapper function itself is:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;err_t wifi_tcpip_input_wrapper(struct pbuf *p, struct netif *netif)
{
    PRINTF("In wrapper\r\n");
    const err_t result = tcpip_input(p, netif);
    return result;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 16:47:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2136698#M5236</guid>
      <dc:creator>azarubkin</dc:creator>
      <dc:date>2025-07-18T16:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS crash in a Wi-Fi setup example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2137435#M5238</link>
      <description>For some reason, replacing tcpip_input with a simple wrapper leads to stack requirements growth in Tmr Svc thread.</description>
      <pubDate>Mon, 21 Jul 2025 12:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-crash-in-a-Wi-Fi-setup-example/m-p/2137435#M5238</guid>
      <dc:creator>azarubkin</dc:creator>
      <dc:date>2025-07-21T12:12:28Z</dc:date>
    </item>
  </channel>
</rss>

