WIFI driver initialization failed due to lack of RAM
Posted: Mon Sep 30, 2024 3:43 pm
Hello,
As the following traces show, I don't have enough internal RAM available in the ESP32-S3 when initializing WIFI.
OK, that's possible, my project need a lot of internal RAM. But why when I make PSRAM memory available, I still don't have enough memory available for WIFI?
(KCONFIG with: SPIRAM true, Octal Mode PSRAM enabled, SPIRAM_TYPE Auto-detect, SPIRAM_TRY_ALLOCATE_WIFI_LWIP enabled).
There's 8 MB free in the PSRAM!
Has anyone ever run a project with WIFI using all or part of the PSRAM? I'm on ESP-IDF version 5.3.1.
Thanks in advance.
I (2764) wifi:wifi driver task: 3fccb058, prio:23, stack:6656, core=0
I (2779) wifi:wifi firmware version: ccaebfa
I (2780) wifi:wifi certification version: v7.0
I (2780) wifi:config NVS flash: enabled
I (2780) wifi:config nano formating: disabled
I (2784) wifi:Init data frame dynamic rx buffer num: 32
I (2789) wifi:Init static rx mgmt buffer num: 5
I (2794) wifi:Init management short buffer num: 32
W (2798) wifi:esf_buf_setup_static: alloc eb fail(1)
I (2803) wifi:Deinit lldesc rx mblock:0
I (2806) wifi:Deinit lldesc rx mblock:0
I (2810) wifi:Deinit lldesc rx mblock:0
W (14:37:27.238) wifi_init: Failed to unregister Rx callbacks
E (14:37:27.242) wifi_init: Failed to deinit Wi-Fi driver (0x3001)
E (14:37:27.250) wifi_init: Failed to deinit Wi-Fi (0x3001)
ESP_ERROR_CHECK failed: esp_err_t 0x101 (ESP_ERR_NO_MEM) at 0x42021b69
As the following traces show, I don't have enough internal RAM available in the ESP32-S3 when initializing WIFI.
OK, that's possible, my project need a lot of internal RAM. But why when I make PSRAM memory available, I still don't have enough memory available for WIFI?
(KCONFIG with: SPIRAM true, Octal Mode PSRAM enabled, SPIRAM_TYPE Auto-detect, SPIRAM_TRY_ALLOCATE_WIFI_LWIP enabled).
There's 8 MB free in the PSRAM!
Has anyone ever run a project with WIFI using all or part of the PSRAM? I'm on ESP-IDF version 5.3.1.
Thanks in advance.
I (2764) wifi:wifi driver task: 3fccb058, prio:23, stack:6656, core=0
I (2779) wifi:wifi firmware version: ccaebfa
I (2780) wifi:wifi certification version: v7.0
I (2780) wifi:config NVS flash: enabled
I (2780) wifi:config nano formating: disabled
I (2784) wifi:Init data frame dynamic rx buffer num: 32
I (2789) wifi:Init static rx mgmt buffer num: 5
I (2794) wifi:Init management short buffer num: 32
W (2798) wifi:esf_buf_setup_static: alloc eb fail(1)
I (2803) wifi:Deinit lldesc rx mblock:0
I (2806) wifi:Deinit lldesc rx mblock:0
I (2810) wifi:Deinit lldesc rx mblock:0
W (14:37:27.238) wifi_init: Failed to unregister Rx callbacks
E (14:37:27.242) wifi_init: Failed to deinit Wi-Fi driver (0x3001)
E (14:37:27.250) wifi_init: Failed to deinit Wi-Fi (0x3001)
ESP_ERROR_CHECK failed: esp_err_t 0x101 (ESP_ERR_NO_MEM) at 0x42021b69