I'm using a brand new ESP32-C2 module (ESP8684-MINI-1-H2), bought from mouser.com, on a custom PCB.
Programming it using vscode over JTAG works fine with a blinking and serial print example. However when I try to use it as a Wi-Fi client I get the following errors:
[ 2289][E][WiFiGeneric.cpp:255] wifiLowLevelInit(): esp_wifi_init 4353
[ 2296][E][STA.cpp:298] begin(): STA enable failed!
4353 error code is: ESP_ERR_NVS_NOT_INITIALIZED (0x1101): The storage driver is not initialized
I've tried to run
Code: Select all
esp_err_t ret = nvs_flash_init();
Code: Select all
#define ESP_ERR_FLASH_BASE 0x6000 /*!< Starting number of flash error codes */
If I run the exact same code on ESP8684-DevKitM-1-H4 (uses ESP8684-MINI-1) development board then there are no issues getting Wi-Fi to work.
Any idea how to resolve this issue?