ESP32-C6 crashing after update to latest version (MEGH-5894)
Answers checklist.
- [X] I have read the Rainmaker documentation and the issue is not addressed there.
- [X] I have updated my IDF branch (release/vX.Y) to the latest version and checked that the issue is present there. This is not applicable if you are using Rainmaker with Arduino.
- [X] I have searched the Rainmaker forum and issue tracker for a similar issue and not found a similar issue.
IDF / ESP32-Arduino version.
release/v5.1 5c57dfe949 / Arduino master
Operating System used.
macOS
How did you build your project?
Arduino IDE
Development Kit.
ESP32-C6-DevKitC-1 V1.2
What is the expected behavior?
The Rainmaker on esp32c6 was working without any errors. For testing I am using RainMaker switch example from esp32-arduino repo.
What is the actual behavior?
After updating to latest Rainmaker version the board crashes after scanning QR code. Versions used:
espressif__esp_rainmaker: 1.4.0
espressif__rmaker_common: 1.4.6
Error:
E (25623) OPENTHREAD: esp_openthread_lock_acquire(21): Failed to acquire the lock because the mutex is not ready
assert failed: otTaskletsSignalPending esp_openthread_task_queue.c:48 (ret == sizeof(val))
Steps to reproduce.
- Update ESP32-Arduino core to latest master
- Select RainMaker Switch example
- In Tools -> select ESP32C6, Partition scheme -> RainMaker no OTA Core Debug Level -> Verbose
- In the sketch comment line 79:
RMaker.enableOTA(OTA_USING_TOPICS);as partition without OTA is used. - Flash and try to connect the device in RainMaker App
Debug Logs.
E (25623) OPENTHREAD: esp_openthread_lock_acquire(21): Failed to acquire the lock because the mutex is not ready
assert failed: otTaskletsSignalPending esp_openthread_task_queue.c:48 (ret == sizeof(val))
More Information.
No response
Could you check whether the OPENTHREAD_ENABLED in menuconfig is enabled for the example? It should not be enabled if you are running RainMaker Over Wi-Fi on C6.
Could you check whether the OPENTHREAD_ENABLED in menuconfig is enabled for the example? It should not be enabled if you are running RainMaker Over Wi-Fi on C6.
Yes it is. We need to have it enabled in Arduino to provide support for it.
This is a similar issue to how we often see PSRAM_ENABLED being treated as if PSRAM has been started and used, which might not be the case.