Page 1 of 1

Rainmaker claiming issue with the ESP32-S3-DevKitC-1-N32R8V board!!!

Posted: Thu Jan 05, 2023 9:28 am
by Mahendra_ms
Hello Geeks
I hope all are doing well...

Last couple of days me and my team playing with the rainmaker SDK
The intent is to test the switch example on the ESP32-S3-DevKitC-1-N32R8V official board with 32MB flash and 8 MB PSRAM!

The ESP32-IDF version is v4.4

We can successfully build the SDK and flash it on the board
However, during the logs, it's unable to generate the QR code for the provisioning
We are using assisted claiming for the instance


Case-1
The major error is listed below
E (9783) app_wifi: Failed to read random bytes from NVS to generate PoP.
E (9793) app_main: Could not start Wifi. Aborting!!!


The full logs are attached as below as a
Esp_Log_1.txt
file


Case-2
After some googling, we found one thread from where we have made some changes with the app_main.c
here is the change

Code: Select all

err = app_wifi_start(POP_TYPE_MAC);
if (err != ESP_OK) {
    ESP_LOGE(TAG, "Could not start Wifi. Aborting!!!");
    vTaskDelay(5000/portTICK_PERIOD_MS);
    abort();
}

If we are using the MAC rather NVS then it's able to generate the QR code!
However, during the claiming process, it again fails!


The full logs are attached here as a
Esp_Log_2.txt
file
It seems it failed to read the client key from the NVS

I have also attached the Rainmaker dashboard insights screen here


From my research, I guess there is some weird issue with the NVS!

Here I have found similar threads on the git repo


Let me know if any further debug logs required

Welcome, to all suggestions and comments!

Thanks
Mahendra

Re: Rainmaker claiming issue with the ESP32-S3-DevKitC-1-N32R8V board!!!

Posted: Mon Jan 16, 2023 3:46 pm
by sanketwadekar
For others facing a similar issue, please refer this Github issue https://github.com/espressif/esp-rainma ... 1381420160