Migrate to v4.4.6, WiFi no longer starts up

HighVoltage
Posts: 45
Joined: Mon Oct 24, 2022 9:37 pm

Migrate to v4.4.6, WiFi no longer starts up

Postby HighVoltage » Thu Nov 30, 2023 6:08 pm

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

HighVoltage
Posts: 45
Joined: Mon Oct 24, 2022 9:37 pm

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

Postby HighVoltage » Thu Nov 30, 2023 10:59 pm

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.

Who is online

Users browsing this forum: No registered users and 212 guests