Page 1 of 1

Migrate to v4.4.6, WiFi no longer starts up

Posted: Thu Nov 30, 2023 6:08 pm
by HighVoltage
I have a working application running on ESP32E 4MB, and I've been running v4.4.2. I've decided to port to the latest v4, v4.4.6.

The WiFi is no longer starting up, seems related to NVS config. Scanning release notes, didn't see anything obvious related. Any thoughts to this problem?

Connecting to ---------------
W (2022) wifi:wifi osi_nvs_open fail ret=4353

I (2023) wifi_init: rx ba win: 6
I (2023) wifi_init: tcpip mbox: 32
I (2024) wifi_init: udp mbox: 6
I (2028) wifi_init: tcp mbox: 6
I (2032) wifi_init: tcp tx win: 5744
I (2036) wifi_init: tcp rx win: 5744
I (2040) wifi_init: tcp mss: 1440
I (2044) wifi_init: WiFi IRAM OP enabled
I (2049) wifi_init: WiFi RX IRAM OP enabled
[ 1433][E][WiFiGeneric.cpp:678] wifiLowLevelInit(): esp_wifi_init 4353
W (2060) wifi:wifi osi_nvs_open fail ret=4353

Re: Migrate to v4.4.6, WiFi no longer starts up

Posted: Thu Nov 30, 2023 10:59 pm
by HighVoltage
Came across this, fixed the problem.
Don't forget to initialize NVS using nvs_flash_init() before enabling WiFi.
Previously that was not strictly required, as WiFi driver would also call nvs_flash_init if the application didn't. It doesn't do that anymore, so application should take care of NVS initialization before WiFi or Bluetooth drivers are started.