Skip to content

E (667) wifi_init: Failed to deinit Wi-Fi driver (0x3001) #1

Open
@HabibMCS

Description

@HabibMCS

Failed to deinit Wi-Fi driver

I am trying to flash the build of 01_ProvisionByClaim. It builds and flashes successfully but upon monitoring I get folloing errors.

Device Reset Log:

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET), boot:0x13 (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:2
load:0x3fff0030, len:6072
load:0x40078000, len:15308
ho 0 tail 12 room 4
load:0x40080400, len:4
0x40080400: _init at ??:?

load:0x40080404, len:3832
entry 0x40080628
I (31) boot: ESP-IDF v5.3.1-dirty 2nd stage bootloader
I (31) boot: compile time Oct 20 2024 18:36:22
I (31) boot: Multicore bootloader
I (36) boot: chip revision: v3.1
I (40) boot.esp32: SPI Speed      : 40MHz
I (44) boot.esp32: SPI Mode       : DIO
I (49) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (77) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (85) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (92) boot:  3 ota_0            OTA app          00 10 00010000 00180000
I (99) boot:  4 ota_1            OTA app          00 11 00190000 00180000
I (107) boot: End of partition table
I (111) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2ba80h (178816) map
I (181) esp_image: segment 1: paddr=0003baa8 vaddr=3ffbdb60 size=04570h ( 17776) load
I (188) esp_image: segment 2: paddr=00040020 vaddr=400d0020 size=9a468h (631912) map
I (405) esp_image: segment 3: paddr=000da490 vaddr=3ffc20d0 size=00b64h (  2916) load
I (406) esp_image: segment 4: paddr=000daffc vaddr=40080000 size=15b4ch (88908) load
I (456) boot: Loaded app from partition at offset 0x10000
I (457) boot: Disabling RNG early entropy source...

Platform Information:

-----------------------------------------------------------------
-----------------------------------------------------------------
-               *** ESP32 Platform v3.0.0 ***                   -
-                                                               -
-  The free usage of platform is limited to 15 minutes.         -
-  It is meant for testing and demonstration only.              -
-  To obtain the license, write to us at [email protected]   -
-                                                               -
-  copyright: BuildStorm Technologies                           -
-                                                               -
-----------------------------------------------------------------
-----------------------------------------------------------------

Device Information:

 10061C69C4E0  Platform_Ver:v3.0.0 App_ver:1.0.0 Feb 24 2024, 15:51:34

[WiFi] SSID:nowifitoday  Password:22331111

Error Messages:

Device is not provisioned
E (667) wifi: invalid magic number a5a5a5a5, call WIFI_INIT_CONFIG_DEFAULT to init config
E (667) wifi_init: Failed to deinit Wi-Fi driver (0x3001)
E (667) wifi_init: Failed to deinit Wi-Fi (0x3001)

Abort Information:

abort() was called at PC 0x400d7c8c on core 0
0x400d7c8c: wifi_configDefault at D:/repos/gitlab/esp32/idf/esp32_platform_src/components/bs_esp32_platform/lib/lib_wifi.c:193 (discriminator 1)

Backtrace: 0x400813c6:0x3ffd2190 0x40088f2d:0x3ffd21b0 0x4008f746:0x3ffd21d0 0x400d7c8c:0x3ffd2240 0x400d864c:0x3ffd2340 0x400d7977:0x3ffd2420

Problem

esp32 is experiencing a failure during the Wi-Fi initialization process, likely due to an invalid state or uninitialized configuration. The error indicates that the device is not provisioned, and it suggests calling WIFI_INIT_CONFIG_DEFAULT to initialize the configuration. Further investigation is needed to ensure that the provisioning process is completed successfully.

Steps I followed
Reference: https://buildstorm.com/blog/esp32-aws-iot-device-provision/
I followed all the steps provided in the link. My wifi cred are also correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions