Page 1 of 1

ESP RainMaker not initialised error on RMakerSwitch example

Posted: Tue Dec 14, 2021 10:09 pm
by hamishcunningham
Hi!

I'm getting the errors below when burning the RMakerSwitch.ino example to an ESP32 (Adafruit Feather Huzzah32, via the Arduino IDE 1.8.16 with arduino-esp32 core 2.0.1 on Ubuntu 21.04):

Code: Select all

E (48) esp_rmaker_storage: NVS Flash init failed
E (49) esp_rmaker_core: Failed to initialise storage
E (49) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (53) esp_rmaker_core: ESP RainMaker not initialised
E (57) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (64) esp_rmaker_ota: Failed to enable OTA
E (68) esp_rmaker_core: ESP RainMaker not initialised
E (72) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (80) esp_rmaker_core: ESP RainMaker not initialised
E (83) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (89) esp_rmaker_schedule: Failed to add service Service
E (94) esp_rmaker_core: ESP RainMaker not initialised
This is with the "no OTA" partition table because the default table overran text section space.

Any ideas?

Thanks!
Hamish

Re: ESP RainMaker not initialised error on RMakerSwitch example

Posted: Wed Dec 15, 2021 9:22 am
by hamishcunningham
I got this to work by erasing flash before burning the RMakerSwitch example :)

Now I get the QR code, but when submitting the wifi psk via the Android app I get "failed to associate device".

Any ideas?

Tnx
H

Re: ESP RainMaker not initialised error on RMakerSwitch example

Posted: Wed Dec 15, 2021 5:44 pm
by ESP_Piyush
Hello,

If you indeed see the Wi-Fi scan list and the provisioning fails right after you provide the network password, it could mean that RainMaker hasn't gotten initialised correctly. Did you even see any "Claiming in progress" screen before the Wi-Fi scan list appeared? If not, can you check if any errors were shown in the serial terminal?

Note that using the RainMaker specific partition table is mandatory, especially for the "fctry" partition which gets used for storing the MQTT credentials.

Re: ESP RainMaker not initialised error on RMakerSwitch example

Posted: Wed Dec 15, 2021 10:15 pm
by hamishcunningham
Thanks, I guess I have the wrong partition table. (I didn't see any "claiming in progress" screen.)

The Rainmaker partition table doesn't show up in my Arduino IDE>Tools menu (running core version 2.0.1); how should I access it?

Tnx!

Re: ESP RainMaker not initialised error on RMakerSwitch example

Posted: Fri Dec 23, 2022 12:40 pm
by pragnesh
Hello,
I've been working on an ESP32-S3 device and was trying to interface the device with rainmaker. Everything went well but after connecting the device to the app, MQTT is not connecting due to this my Node confirming association is getting failed. As you mentioned earlier that it is "Claiming in Progress " and should come prior to the Wifi it's happening but, not able to connect.

Re: ESP RainMaker not initialised error on RMakerSwitch example

Posted: Wed Dec 28, 2022 3:16 am
by sanketwadekar
Can you attach the logs by setting "Core Debug Level" to "Debug" ?