FreeRTOS crash in a Wi-Fi setup example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS crash in a Wi-Fi setup example

1,400 Views
azarubkin
Contributor III

I'm getting FreeRTOS crash in the "wifi_setup" example imported from SDK.

Here's a tail of the debugging session output:

[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

The debugger shows the state of the threads. The top of the current thread call stack is:

"Tmr Svc": Stopped
Reset_Handler@0x60002524
<signal handler called>@0xfffffffd

If I look at pxReadyTasksLists array in the debugger, it shows that its 2nd element has uxNumberOfItems == 1 but pxIndex points to xListEnd. At the same time, xListEnd->pxNext and pxPrevious point to "tcp/ip" task. I've attached a screenshot.

azarubkin_0-1752673050909.png

My setup:

  • MIMXRT1060-EVKB board
  • MAYA-W161 M.2 Wi-Fi card
  • I have the resistors resoldered on the board to enable M.2 connector.
  • I'm using Visual Studio Code with MCUXpresso for VS Code extension
  • I've imported MCUXpresso SDK Repository version 25.03.00 (I've checked version 25.06.00 but it made no difference)
  • I've imported the following example from Repository: wifi_examples/wifi_setup, as a Freestanding application.
  • I've also made a wrapper for tcpip_input function to print something to the debug console.

As my Wi-Fi card isn't readily available in the choice of cards, I've made the following changes to the SDK sources:

(.venv) c:\tmp\mcux_sdk_release_25_06_00\mcuxsdk>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(&wrapper_net_is_ip_or_ipv6);
 #endif
         ip_2_ip4(&g_mlan.ipaddr)->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(&g_mlan.netif, ip_2_ip4(&g_mlan.ipaddr), ip_2_ip4(&g_mlan.ipaddr),
-                                 ip_2_ip4(&g_mlan.ipaddr), NULL, lwip_netif_init, tcpip_input);
+                                 ip_2_ip4(&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(&g_uap.netif, ip_2_ip4(&g_uap.ipaddr), ip_2_ip4(&g_uap.ipaddr),
-                                 ip_2_ip4(&g_uap.ipaddr), NULL, lwip_netif_uap_init, tcpip_input);
+                                 ip_2_ip4(&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.

My wrapper function looks as:

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;
}

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.

There's a similar post on FreeRTOS forum: https://forums.freertos.org/t/incorrect-pxreadytaskslists-state-causes-fault/17791, only in my case pxCurrentTCB is correct, pointing to "Tmr Svc" task.

The solution to that topic was an incorrect interrupt priority. I tried setting all NVIC->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.

If I don't use wrapper function, so that the SDK code calls tcpip_input 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.

0 Kudos
Reply
8 Replies

1,366 Views
azarubkin
Contributor III

xPSR register value is 0x81000004.

0 Kudos
Reply

1,366 Views
azarubkin
Contributor III

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.

0 Kudos
Reply

1,385 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

Let me check this.

 

Regards,

Daniel.

0 Kudos
Reply

1,357 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

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.

1. Right click on the project > Configure > Open Kconfig GUI Configuration

2. Component configuration > wifi_bt_module > config > Select NXP IW416 module (NXP IW416-MURATA-1XK-M2)

 

There is no option for MAYA-W161. Nevertheless, both modules use the same SoC. Could you please try with the same option as me "NXP IW416-MURATA-1XK-M2"?

 

Regards,

Daniel.

0 Kudos
Reply

1,351 Views
azarubkin
Contributor III

Have you tried building it in debug mode? I've found that the crash happens only in debug build. Also, setting

#define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE * 2)
 
fixes it in debug mode as well.
 
It appears stack overflow happens in timer task in debug mode. How do I calculate the amount of stack needed for the task?
 
0 Kudos
Reply

1,326 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I'm not sure why it crashes on your side. Are you using the example as is with the recommendation I gave you?

I tested in on 25.03 in debug mode and it is working on my side.

Regards,
Daniel.

0 Kudos
Reply

1,221 Views
azarubkin
Contributor III
For some reason, replacing tcpip_input with a simple wrapper leads to stack requirements growth in Tmr Svc thread.
0 Kudos
Reply

1,322 Views
azarubkin
Contributor III

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.

The only modification to the SDK is to call my wrapper function instead of tcpip_input:

=== 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(&wrapper_net_is_ip_or_ipv6);
 #endif
         ip_2_ip4(&g_mlan.ipaddr)->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(&g_mlan.netif, ip_2_ip4(&g_mlan.ipaddr), ip_2_ip4(&g_mlan.ipaddr),
-                                 ip_2_ip4(&g_mlan.ipaddr), NULL, lwip_netif_init, tcpip_input);
+                                 ip_2_ip4(&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(&g_uap.netif, ip_2_ip4(&g_uap.ipaddr), ip_2_ip4(&g_uap.ipaddr),
-                                 ip_2_ip4(&g_uap.ipaddr), NULL, lwip_netif_uap_init, tcpip_input);
+                                 ip_2_ip4(&g_uap.ipaddr), NULL, lwip_netif_uap_init, wifi_tcpip_input_wrapper);
         if (ret != WM_SUCCESS)
         {
             net_e("UAP interface add failed");

And the wrapper function itself is:

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;
}

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2135058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20getting%20FreeRTOS%20crash%20in%20the%20%22wifi_setup%22%20example%20imported%20from%20SDK.%3C%2FP%3E%3CP%3EHere's%20a%20tail%20of%20the%20debugging%20session%20output%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5BNew%20Thread%203%5D%0A%5BNew%20Thread%209%5D%0A%5BNew%20Thread%201610631818%5D%0A%5BNew%20Thread%205%5D%0A%5BNew%20Thread%206%5D%0A%5BNew%20Thread%204%5D%0A%5BNew%20Thread%208%5D%0A%5BNew%20Thread%207%5D%0A%5BNew%20Thread%2010%5D%0A%0AThread%20%0A2%20received%20signal%20SIGSTOP%2C%20Stopped%20(signal).%0A%5BSwitching%20to%20Thread%203%5D%0AReset_Handler%20()%20at%20C%3A%2Ftmp%2Fmcux_sdk_release_25_06_00%2Fmcuxsdk%2Fdevices%2FRT%2FRT1060%2FMIMXRT1062%2Fgcc%5Cstartup_MIMXRT1062.S%3A446%0A446%09%20%20%20%20b%20DefaultISR%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EThe%20debugger%20shows%20the%20state%20of%20the%20threads.%20The%20top%20of%20the%20current%20thread%20call%20stack%20is%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%22Tmr%20Svc%22%3A%20Stopped%0AReset_Handler%400x60002524%0A%3CSIGNAL%20handler%3D%22%22%20called%3D%22%22%3E%400xfffffffd%3C%2FSIGNAL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIf%20I%20look%20at%26nbsp%3B%3CSTRONG%3EpxReadyTasksLists%3C%2FSTRONG%3E%20array%20in%20the%20debugger%2C%20it%20shows%20that%20its%202nd%20element%20has%26nbsp%3B%3CSTRONG%3EuxNumberOfItems%3C%2FSTRONG%3E%20%3D%3D%201%20but%26nbsp%3B%3CSTRONG%3EpxIndex%3C%2FSTRONG%3E%20points%20to%26nbsp%3B%3CSTRONG%3ExListEnd%3C%2FSTRONG%3E.%20At%20the%20same%20time%2C%26nbsp%3B%3CSTRONG%3ExListEnd%3C%2FSTRONG%3E-%26gt%3B%3CSTRONG%3EpxNext%3C%2FSTRONG%3E%20and%26nbsp%3B%3CSTRONG%3EpxPrevious%3C%2FSTRONG%3E%20point%20to%20%22tcp%2Fip%22%20task.%20I've%20attached%20a%20screenshot.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22azarubkin_0-1752673050909.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22azarubkin_0-1752673050909.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347874iD8F6A5F3BE9FE529%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22azarubkin_0-1752673050909.png%22%20alt%3D%22azarubkin_0-1752673050909.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EMy%20setup%3A%3C%2FP%3E%3CUL%3E%3CLI%3EMIMXRT1060-EVKB%20board%3C%2FLI%3E%3CLI%3EMAYA-W161%20M.2%20Wi-Fi%20card%3C%2FLI%3E%3CLI%3EI%20have%20the%20resistors%20resoldered%20on%20the%20board%20to%20enable%20M.2%20connector.%3C%2FLI%3E%3CLI%3EI'm%20using%20Visual%20Studio%20Code%20with%20MCUXpresso%20for%20VS%20Code%20extension%3C%2FLI%3E%3CLI%3EI've%20imported%20MCUXpresso%20SDK%20Repository%20version%2025.03.00%20(I've%20checked%20version%2025.06.00%20but%20it%20made%20no%20difference)%3C%2FLI%3E%3CLI%3EI've%20imported%20the%20following%20example%20from%20Repository%3A%20wifi_examples%2Fwifi_setup%2C%20as%20a%20Freestanding%20application.%3C%2FLI%3E%3CLI%3EI've%20also%20made%20a%20wrapper%20for%26nbsp%3B%3CSTRONG%3Etcpip_input%3C%2FSTRONG%3E%20function%20to%20print%20something%20to%20the%20debug%20console.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAs%20my%20Wi-Fi%20card%20isn't%20readily%20available%20in%20the%20choice%20of%20cards%2C%20I've%20made%20the%20following%20changes%20to%20the%20SDK%20sources%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E(.venv)%20c%3A%5Ctmp%5Cmcux_sdk_release_25_06_00%5Cmcuxsdk%26gt%3Bwest%20diff%0A%3D%3D%3D%20diff%20for%20mcu-sdk-examples%20(mcuxsdk%2Fexamples)%3A%0Adiff%20--git%20mcuxsdk%2Fexamples%2F_boards%2Fevkbmimxrt1060%2Fwifi_examples%2Fwifi_setup%2Fprj.conf%20mcuxsdk%2Fexamples%2F_boards%2Fevkbmimxrt1060%2Fwifi_examples%2Fwifi_setup%2Fprj.conf%0Aindex%208892a39d6..8060d7118%20100644%0A---%20mcuxsdk%2Fexamples%2F_boards%2Fevkbmimxrt1060%2Fwifi_examples%2Fwifi_setup%2Fprj.conf%0A%2B%2B%2B%20mcuxsdk%2Fexamples%2F_boards%2Fevkbmimxrt1060%2Fwifi_examples%2Fwifi_setup%2Fprj.conf%0A%40%40%20-7%2C4%20%2B7%2C4%20%40%40%20CONFIG_MCUX_COMPONENT_middleware.sdmmc.host.usdhc.non_blocking%3Dy%0A%20CONFIG_MCUX_COMPONENT_utility.assert_lite%3Dn%0A%20CONFIG_MCUX_COMPONENT_utility.debug_console_lite%3Dn%0A%20CONFIG_MCUX_COMPONENT_component.wifi_bt_module.IW416%3Dy%0A-CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_1xk_usd%3Dy%0A%5C%20No%20newline%20at%20end%20of%20file%0A%2BCONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_m2%3Dy%0A%0A%0A%3D%3D%3D%20diff%20for%20mcu-sdk-components%20(mcuxsdk%2Fcomponents)%3A%0Adiff%20--git%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FCMakeLists.txt%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FCMakeLists.txt%0Aindex%20d06643b..6e7c777%20100644%0A---%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FCMakeLists.txt%0A%2B%2B%2B%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FCMakeLists.txt%0A%40%40%20-154%2C6%20%2B154%2C12%20%40%40%20if%20(CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_usd)%0A%20%20%20%20%20)%0A%20endif()%0A%0A%2Bif%20(CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_m2)%0A%2B%20%20%20%20%20mcux_add_macro(%0A%2B%20%20%20%20%20%20%20%20%22-DWIFI_IW416_BOARD_UBX_MAYA_W1_M2%22%0A%2B%20%20%20%20)%0A%2Bendif()%0A%2B%0A%20if%20(CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_2dl_m2)%0A%20%20%20%20%20%20mcux_add_macro(%0A%20%20%20%20%20%20%20%20%20%22-DWIFI_IW611_BOARD_MURATA_2DL_M2%22%0Adiff%20--git%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FKconfig%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FKconfig%0Aindex%20ee38df8..0d37f8f%20100644%0A---%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FKconfig%0A%2B%2B%2B%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2FKconfig%0A%40%40%20-246%2C6%20%2B246%2C20%20%40%40%20menu%20%22wifi_bt_module%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Detailed%20information%20about%20Type%20MAYA%20W1%20module%20you%20can%20find%20on%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20https%3A%2F%2Fwww.u-blox.com%2Fen%2Fproduct%2Fmaya-w1-series%0A%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20config%20MCUX_COMPONENT_component.wifi_bt_module.board_ubx_maya_w1_m2%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20bool%20%22NXP%20UBX-MAYA-W1-M2%22%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20help%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20The%20MAYA-W1%20series%20are%20host-based%20Wi-Fi%204%20and%20Bluetooth%205.2%20multiradio%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20modules%20designed%20for%20a%20wide%20range%20of%20industrial%20applications%2C%20such%20as%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20industrial%20automation%20and%20smart%20manufacturing%2C%20EV%20charging%20infrastructures%2C%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20professional%20appliances%2C%20tracking%20and%20telematics%2C%20point-of-sale%20and%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ticketing%20machines%2C%20building%20automation%2C%20and%20healthcare.%20The%20modules%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20are%20designed%20and%20built%20to%20meet%20the%20high%20reliability%20and%20quality%20requirements%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20of%20such%20applications.%0A%2B%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Detailed%20information%20about%20Type%20MAYA%20W1%20module%20you%20can%20find%20on%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20https%3A%2F%2Fwww.u-blox.com%2Fen%2Fproduct%2Fmaya-w1-series%0A%2B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20endchoice%0A%20%20%20%20%20%20%20%20%20endif%0A%0Adiff%20--git%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2Fincl%2Fwifi_bt_module_config.h%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2Fincl%2Fwifi_bt_module_config.h%0Aindex%20b59457d..84316a5%20100644%0A---%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2Fincl%2Fwifi_bt_module_config.h%0A%2B%2B%2B%20mcuxsdk%2Fcomponents%2Fwifi_bt_module%2Fincl%2Fwifi_bt_module_config.h%0A%40%40%20-286%2C6%20%2B286%2C17%20%40%40%0A%20%20%20%20%20%20%20%20%20.ed_ctrl_2g%20%3D%200x1%2C%20.ed_offset_2g%20%3D%200x9%2C%20.ed_ctrl_5g%20%3D%200x1%2C%20.ed_offset_5g%20%3D%200xC%20%5C%0A%20%20%20%20%20%7D%0A%0A%2B%2F*%20u-blox%20EVK-MAYA-W1-M2%20*%2F%0A%2B%23elif%20defined(WIFI_IW416_BOARD_UBX_MAYA_W1_M2)%0A%2B%23define%20WIFI_BT_TX_PWR_LIMITS%20%22wlan_txpwrlimit_cfg_WW.h%22%0A%2B%23define%20SD8978%0A%2B%23define%20SDMMCHOST_OPERATION_VOLTAGE_1V8%0A%2B%23define%20WIFI_BT_USE_M2_INTERFACE%0A%2B%23define%20WLAN_ED_MAC_CTRL%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%0A%2B%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%0A%2B%20%20%20%20%20%20%20%20.ed_ctrl_2g%20%3D%200x1%2C%20.ed_offset_2g%20%3D%200x9%2C%20.ed_ctrl_5g%20%3D%200x1%2C%20.ed_offset_5g%20%3D%200xC%20%5C%0A%2B%20%20%20%20%7D%0A%2B%0A%20%2F*%20Redfinch%20RW61X%20*%2F%0A%20%23elif%20defined(WIFI_BOARD_RW610)%0A%20%23define%20WIFI_BT_TX_PWR_LIMITS%20%22wlan_txpwrlimit_cfg_WW_rw610.h%22%0A%0A%0A%3D%3D%3D%20diff%20for%20wifi_nxp%20(mcuxsdk%2Fmiddleware%2Fwifi_nxp)%3A%0Adiff%20--git%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%0Aindex%205b830d24..6a4a48d2%20100644%0A---%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%0A%2B%2B%2B%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%0A%40%40%20-318%2C8%20%2B318%2C10%20%40%40%20int%20net_wlan_init(void)%0A%20%20%20%20%20%20%20%20%20(void)wifi_register_wrapper_net_is_ip_or_ipv6_callback(%26amp%3Bwrapper_net_is_ip_or_ipv6)%3B%0A%20%23endif%0A%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)-%26gt%3Baddr%20%3D%20INADDR_ANY%3B%0A%2B%2F%2F%20HACK%3A%20This%20is%20a%20hack%20to%20allow%20the%20wifi_tcpip_input_wrapper%20to%20be%20used%20as%20the%20input%20function%20for%20the%20wifi%20interface%0A%2Berr_t%20wifi_tcpip_input_wrapper(struct%20pbuf%20*p%2C%20struct%20netif%20*netif)%3B%0A%20%20%20%20%20%20%20%20%20ret%20%3D%20netifapi_netif_add(%26amp%3Bg_mlan.netif%2C%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%0A-%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%20NULL%2C%20lwip_netif_init%2C%20tcpip_input)%3B%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%20NULL%2C%20lwip_netif_init%2C%20wifi_tcpip_input_wrapper)%3B%0A%20%20%20%20%20%20%20%20%20if%20(ret%20!%3D%20WM_SUCCESS)%0A%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20net_e(%22MLAN%20interface%20add%20failed%22)%3B%0A%40%40%20-331%2C7%20%2B333%2C7%20%40%40%20int%20net_wlan_init(void)%0A%0A%20%23if%20UAP_SUPPORT%0A%20%20%20%20%20%20%20%20%20ret%20%3D%20netifapi_netif_add(%26amp%3Bg_uap.netif%2C%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%0A-%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%20NULL%2C%20lwip_netif_uap_init%2C%20tcpip_input)%3B%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%20NULL%2C%20lwip_netif_uap_init%2C%20wifi_tcpip_input_wrapper)%3B%0A%20%20%20%20%20%20%20%20%20if%20(ret%20!%3D%20WM_SUCCESS)%0A%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20net_e(%22UAP%20interface%20add%20failed%22)%3B%0A%0A%0AEmpty%20diff%20in%2091%20projects.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EMy%20wrapper%20function%20looks%20as%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3Eerr_t%20wifi_tcpip_input_wrapper(struct%20pbuf%20*p%2C%20struct%20netif%20*netif)%0A%7B%0A%20%20%20%20PRINTF(%22In%20wrapper%5Cr%5Cn%22)%3B%0A%20%20%20%20const%20err_t%20result%20%3D%20tcpip_input(p%2C%20netif)%3B%0A%20%20%20%20return%20result%3B%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ESo%20there's%20nothing%20criminal%20there%2C%20just%20calling%20the%20original%20function.%20The%20crash%20happens%20after%20%22In%20wrapper%22%20is%20printed%20to%20the%20console%2C%20when%20the%20software%20should%20switch%20to%20%22tcp%2Fip%22%20task.%3C%2FP%3E%3CP%3EThere's%20a%20similar%20post%20on%20FreeRTOS%20forum%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fforums.freertos.org%2Ft%2Fincorrect-pxreadytaskslists-state-causes-fault%2F17791%2C%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fforums.freertos.org%2Ft%2Fincorrect-pxreadytaskslists-state-causes-fault%2F17791%2C%3C%2FA%3E%26nbsp%3Bonly%20in%20my%20case%26nbsp%3B%3CSTRONG%3EpxCurrentTCB%3C%2FSTRONG%3E%20is%20correct%2C%20pointing%20to%20%22Tmr%20Svc%22%20task.%3C%2FP%3E%3CP%3EThe%20solution%20to%20that%20topic%20was%20an%20incorrect%20interrupt%20priority.%20I%20tried%20setting%20all%20NVIC-%26gt%3BIPRn%20registers%20to%200xF0%20at%20the%20beginning%20of%20the%20program%20to%20set%20all%20priorities%20to%20the%20lowest%20possible%20level%20but%20that%20didn't%20help.%20I%20also%20checked%20the%20stacks%20--%20they%20are%20fine.%20I%20can%20attach%20my%20project%20or%20upload%20it%20anywhere%20if%20that%20helps.%3C%2FP%3E%3CP%3EIf%20I%20don't%20use%20wrapper%20function%2C%20so%20that%20the%20SDK%20code%20calls%26nbsp%3B%3CSTRONG%3Etcpip_input%3C%2FSTRONG%3E%20directly%2C%20the%20example%20works%20but%20sometimes%20I%20get%20delays%20in%20ping%20responses%20of%20like%201600%20ms%20which%20is%20strange%20because%20I%20ping%20my%20local%20router.%20So%20I%20suspect%20the%20bug%20is%20still%20there%20but%20adding%20a%20PRINTF%20makes%20it%20more%20apparent.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFor%20some%20reason%2C%20replacing%20tcpip_input%20with%20a%20simple%20wrapper%20leads%20to%20stack%20requirements%20growth%20in%20Tmr%20Svc%20thread.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136698%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136698%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%20I%20am%20sure.%20I've%20imported%20the%20example%20from%20scratch%2C%20reverted%20most%20of%20my%20modifications%20to%20the%20SDK%20and%20selected%20MURATA-1XK-M2%20board%20in%20the%20Kconfig%20GUI%20tool.%3C%2FP%3E%3CP%3EThe%20only%20modification%20to%20the%20SDK%20is%20to%20call%20my%20wrapper%20function%20instead%20of%20tcpip_input%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3D%3D%3D%20diff%20for%20wifi_nxp%20(mcuxsdk%2Fmiddleware%2Fwifi_nxp)%3A%0Adiff%20--git%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%0Aindex%205b830d24..6a4a48d2%20100644%0A---%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%0A%2B%2B%2B%20mcuxsdk%2Fmiddleware%2Fwifi_nxp%2Fport%2Fnet%2Fnet.c%0A%40%40%20-318%2C8%20%2B318%2C10%20%40%40%20int%20net_wlan_init(void)%0A%20%20%20%20%20%20%20%20%20(void)wifi_register_wrapper_net_is_ip_or_ipv6_callback(%26amp%3Bwrapper_net_is_ip_or_ipv6)%3B%0A%20%23endif%0A%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)-%26gt%3Baddr%20%3D%20INADDR_ANY%3B%0A%2B%2F%2F%20HACK%3A%20This%20is%20a%20hack%20to%20allow%20the%20wifi_tcpip_input_wrapper%20to%20be%20used%20as%20the%20input%20function%20for%20the%20wifi%20interface%0A%2Berr_t%20wifi_tcpip_input_wrapper(struct%20pbuf%20*p%2C%20struct%20netif%20*netif)%3B%0A%20%20%20%20%20%20%20%20%20ret%20%3D%20netifapi_netif_add(%26amp%3Bg_mlan.netif%2C%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%0A-%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%20NULL%2C%20lwip_netif_init%2C%20tcpip_input)%3B%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_mlan.ipaddr)%2C%20NULL%2C%20lwip_netif_init%2C%20wifi_tcpip_input_wrapper)%3B%0A%20%20%20%20%20%20%20%20%20if%20(ret%20!%3D%20WM_SUCCESS)%0A%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20net_e(%22MLAN%20interface%20add%20failed%22)%3B%0A%40%40%20-331%2C7%20%2B333%2C7%20%40%40%20int%20net_wlan_init(void)%0A%0A%20%23if%20UAP_SUPPORT%0A%20%20%20%20%20%20%20%20%20ret%20%3D%20netifapi_netif_add(%26amp%3Bg_uap.netif%2C%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%0A-%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%20NULL%2C%20lwip_netif_uap_init%2C%20tcpip_input)%3B%0A%2B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ip_2_ip4(%26amp%3Bg_uap.ipaddr)%2C%20NULL%2C%20lwip_netif_uap_init%2C%20wifi_tcpip_input_wrapper)%3B%0A%20%20%20%20%20%20%20%20%20if%20(ret%20!%3D%20WM_SUCCESS)%0A%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20net_e(%22UAP%20interface%20add%20failed%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EAnd%20the%20wrapper%20function%20itself%20is%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3Eerr_t%20wifi_tcpip_input_wrapper(struct%20pbuf%20*p%2C%20struct%20netif%20*netif)%0A%7B%0A%20%20%20%20PRINTF(%22In%20wrapper%5Cr%5Cn%22)%3B%0A%20%20%20%20const%20err_t%20result%20%3D%20tcpip_input(p%2C%20netif)%3B%0A%20%20%20%20return%20result%3B%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EI'm%20not%20sure%20why%20it%20crashes%20on%20your%20side.%20Are%20you%20using%20the%20example%20as%20is%20with%20the%20recommendation%20I%20gave%20you%3F%3C%2FP%3E%0A%3CP%3EI%20tested%20in%20on%2025.03%20in%20debug%20mode%20and%20it%20is%20working%20on%20my%20side.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3EDaniel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136037%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136037%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHave%20you%20tried%20building%20it%20in%20debug%20mode%3F%20I've%20found%20that%20the%20crash%20happens%20only%20in%20debug%20build.%20Also%2C%20setting%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%3CSPAN%3E%23define%3C%2FSPAN%3E%20%3CSPAN%3EconfigTIMER_TASK_STACK_DEPTH%3C%2FSPAN%3E%3CSPAN%3E%20(%3C%2FSPAN%3E%3CSPAN%3EconfigMINIMAL_STACK_SIZE%20*%202%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%3Efixes%20it%20in%20debug%20mode%20as%20well.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%3EIt%20appears%20stack%20overflow%20happens%20in%20timer%20task%20in%20debug%20mode.%20How%20do%20I%20calculate%20the%20amount%20of%20stack%20needed%20for%20the%20task%3F%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135992%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135992%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20tested%20wifi_setup%20on%20an%20RT1060-EVKB%20with%20a%201XK%20(IW416)%20M.2%20module%2C%20and%20it%20is%20working%20on%20my%20side.%20I%20selected%20the%20correct%20module%20by%20using%20the%20Kconfig%20GUI.%3C%2FP%3E%0A%3CP%3E1.%20Right%20click%20on%20the%20project%20%26gt%3B%20Configure%20%26gt%3B%20Open%20Kconfig%20GUI%20Configuration%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3BComponent%20configuration%20%26gt%3B%20wifi_bt_module%20%26gt%3B%20config%20%26gt%3B%20Select%20NXP%20IW416%20module%20(NXP%20IW416-MURATA-1XK-M2)%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThere%20is%20no%20option%20for%26nbsp%3B%3CSPAN%3EMAYA-W161.%20Nevertheless%2C%20both%20modules%20use%20the%20same%20SoC.%20Could%20you%20please%20try%20with%20the%20same%20option%20as%20me%20%22NXP%20IW416-MURATA-1XK-M2%22%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EDaniel.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ExPSR%20register%20value%20is%200x81000004.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20I%20run%20the%20project%20in%20MCUXpresso%20IDE%20with%20SDK%2025.6.0%2C%20the%20execution%20hits%20MemManage_Handler%2C%20if%20that%20helps.%20In%20MCUXpresso%20for%20VS%20Code%2C%20it's%20DefaultISR%20instead%20of%20MemManage_Handler.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135265%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FreeRTOS%20crash%20in%20a%20Wi-Fi%20setup%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135265%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20check%20this.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel.%3C%2FP%3E%3C%2FLINGO-BODY%3E