espressif / esp32-wifi-lib

ESP32 WiFi stack precompiled libraries
Apache License 2.0
167 stars 71 forks source link

Crash in wifi_nvs_set (libnet80211.a) #35

Open real-tintin opened 1 year ago

real-tintin commented 1 year ago

Hi,

We are running Zephyr on an ESP32 (ESP32-WROOM-32E-N8R2). We have noticed sporadic (quite seldom) crashes in wifi_nvs_set, located in esp32/libnet80211.a.

The Zephyr kernel throws a fatal error: EXCCAUSE 29 (trying to write to read-only memory). Assembler line:

0x401378da <+102>: s8i a3, a2, 0

As we can't access the source of the lib we are somewhat in the dark here. We have not defined CONFIG_ESP32_WIFI_NVS_ENABLED, hence the WiFi NVS feature should be disable. I don't know if/how that affects the usage of the lib.

Are there any stack sizes related which can be increased?

Any help is appreciated 🙏