nRF7002 - wlan0 interface goes down after repeated making HTTP requests

Wonder if anyone has experience this but my Zephyr OS and a http client application eventually crashes due the network interface going down coming back up.   Initialization of the WIFI interface and initial requests are all perfect until the WIFI interface goes down.  Do I have to teardown the WIFI driver stack and re-initialize everything all over?

Parents Reply Children
  • My host MPU is a nRF52840 controlling a nRF7002.  Building the WIFI application is challenging because the nRF52840 has only 256KB RAM, which built with NCS v3.0.1 reaches RAM maximum.  Tweaking stack sizes (prj.conf) to fit the app+zephyr OS into 256KB could possibly have ramifications to the system driver stack etc.

    I tried with both NCS version v2.9.1 and v3.0.1.  Only that v3.0.1 last a few minutes longer before it crashes.  The snapshot below is from v3.0.1

    I guess my question would be why is the interface going down?  A few questions comes to mind:

    1. Is it entering low-power mode? 
    2. Why would the WIFI interface which is currently active decides to go down? 
    3. Is nRF7002 low-power mode periodic?

    I can see that if there's no TX/RX activities, WIFI is not connected to a SSID, or that the actual WIFI device has a status fault, then bringing the interface down would make sense.

Related