esp_wifi_deinit fails with error 0x3014

floitsch_toit
Posts: 22
Joined: Wed Jun 29, 2022 4:25 pm

esp_wifi_deinit fails with error 0x3014

Postby floitsch_toit » Thu Jun 20, 2024 7:42 pm

I have some code that has a weird error after it couldn't establish a connection. It gets error 0x3014 when trying to deinit. So far I have only seen this error with the ESP32S3.

Code: Select all

E (3697) wifi_init: Failed to deinit Wi-Fi driver (0x3014)
The error code reference seems to indicate that this error is "Returned when WiFi is stopping". However, the documentation for esp_wifi_deinit doesn't mention this error as a possible return value: https://docs.espressif.com/projects/esp ... fi_deinitv

What's the correct way to proceed in this case? Can I assume that the WiFi was correctly uninitialized? If not, can I force the deinit?

Arduino_Vergara
Posts: 2
Joined: Fri Jun 21, 2024 4:30 pm

Re: esp_wifi_deinit fails with error 0x3014

Postby Arduino_Vergara » Fri Jun 21, 2024 4:36 pm

Hola tengo un problema de conxión a wifi de mi esp32 wroom 32D y U, se reinicia constantemente:
rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1288
load:0x40078000,len:13872
load:0x40080400,len:4
ho 8 tail 4 room 4

Ayuda por favor!

MicroController
Posts: 1725
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: esp_wifi_deinit fails with error 0x3014

Postby MicroController » Fri Jun 21, 2024 10:33 pm

Did you stop the WiFi before trying to deinit?

floitsch_toit
Posts: 22
Joined: Wed Jun 29, 2022 4:25 pm

Re: esp_wifi_deinit fails with error 0x3014

Postby floitsch_toit » Sun Jun 23, 2024 1:14 pm

Did you stop the WiFi before trying to deinit?
We generally only call `stop` if we got an event that the WiFi was started. Maybe we didn't get that event, or there is a race condition.
I will look into that.

Who is online

Users browsing this forum: markkuk and 333 guests