Wi-Fi command response timeout

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

Wi-Fi command response timeout

280 Views
azarubkin
Contributor III

I'm working on a project using i.MXRT1062 crossover MCU and Murata 2EL M.2 wireless card based on NXP IW612 chipset. The project uses MCUXpresso SDK and FreeRTOS. The current SDK version is 25.12.

During the firmware operation, sometimes I get the following output in the debug console:

`[wifi] Warn: Command response timed out. command 0x0, len 1514, seqno 0x16`

or

`[wifi] Warn: Command response timed out. command 0x0, len 66, seqno 0x16`

or

`[wifi] Warn: Command response timed out. command 0x0, len 190, seqno 0x16`

or

`[wifi] Warn: Command response timed out. command 0x0, len 60, seqno 0x16`

 

I don't know what do these lines mean, probably some problem with wireless module. After that a task list is printed, panic is triggered and the firmware stalls. I think the problem happens after ~30 minutes during more or less heavy traffic through the wireless connection.

A corresponding place in the SDK files is located at `middleware/wifi_nxp/wifidriver/wifi.c` in `wifi_wait_for_cmdresp` function. This is further confirmed that there's a pause of roughly 20 seconds between the previous debug console print and this line.

How can I troubleshoot the problem? I can work with you to provide further debugging information or test SDK fixes.

Tags (2)
0 Kudos
Reply
2 Replies

246 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I understand you are using a custom application, but which SDK example did you use as a starting point? If you can reproduce the same behavior using an unmodified SDK example, it would significantly help isolate the issue.

Seems the driver was waiting for a command response, and did not receive it before the timeout expired.

Please enable the following debug macros in wifi_config.h:

CONFIG_WIFI_CMD_RESP_DEBUG
CONFIG_WIFI_EVENTS_DEBUG
CONFIG_WIFI_IO_INFO_DUMP
CONFIG_WIFI_EXTRA_DEBUG

Once the macros are enabled; rebuild the example and test it again. Please share the output.

I would be a good idea to test it with the latest SDK and see if the problems still occurs.

0 Kudos
Reply

93 Views
azarubkin
Contributor III

This is the debug output when the firmware hangs up. Please let me know if you need any previous log lines.

23/06/2026 12:27:48.808 [RX] - [wifi] Warn: Command response timed out. command 0x0, len 890, seqno 0x16
SDIO multiple port group registers value:
**** Dump @ 20218FC0 Len: 196 ****
00 00 00 00 ff 00 00 00 c3 00 00 00 00 00 00 00
00 00 00 00 00 00 f0 7f 00 01 00 01 00 01 00 01
00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01
00 01 00 01 00 01 00 01 00 01 00 01 00 01 00 01
00 01 00 01 00 01 00 01 00 01 00 03 00 01 00 01
00 01 00 01 00 01 00 01 00 01 00 00 00 00 00 00
87 0c 00 00 00 00 00 00 00 00 00 00 1c c2 06 c0
f4 de 09 c0 00 1e ff ff 00 0a 36 01 00 00 96 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff ff ff ff 00 00 00 00 00 00 00 00 ff ff ff ff
00 00 00 00 00 00 00 00 10 cc f0 ff ff ff ff ff
00 00 ff ff ff ff ff ff f4 74 04 c0 80 98 04 c0
00 00 00 00
******** End Dump *******
Name State Priority Stack Num
==================================================
main_task X 3 581 6
print_dhcp R 0 683 17
IDLE R 0 92 2
tcp/ip B 3 400 1
Tmr Svc B 4 196 3
supplicant_main_tas B 2 1456 14
nfc_cfg B 0 715 7
dhcpd_task B 3 406 15
HTTP server B 1 888 18
wifi_scan_task B 1 255 11
wlcmgr_task B 3 244 13
wifi_drv_task B 3 228 10
lwip_rx B 3 431 8
wifi_core_task B 3 276 12

[wifi] Start to process hanging
[wifi] initiating wifi-deauth
[FW Download] S
23/06/2026 12:27:48.824 [RX] - tart to download firmware from 0x602319fc: 1618224

23/06/2026 12:27:54.807 [RX] - [wifi_io] Error: SDIO - FW Ready Registers not set
[wifi] Error: sd_wifi_reinit failed. status code -1
ASSERT: wlan_process_hang: 550
Assert failed: Panic!
ASSERT ERROR " 0 ": file "C:/tmp/mcuxsdk/mcuxsdk/middleware/wifi_nxp/wifidriver/incl/mlan_api.h" Line "65" function name "panic"

0 Kudos
Reply