-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32C6 Zigbee Analog example - Crash #11044
Comments
I got exactly the same problem. Same Zigbee error "Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled." and same example I am using. But my board is a DFRobot Beetle ESP32-C6 I found out, that everything works fine as soon as I comment out the line for the reporting configuration: zbAnalogDevice.setAnalogInputReporting(0, 30, 10); but I have no clue why this function call doesn't work. I would really like to keep it and use the reporting configuration. Someone any ideas? Why is this function call even located after establishing zigbee connection? Does zigbee need to be connected for that? |
I can confirm that commenting this line out does prevent the crash. Decided to dig a little deeper. In the Zigbee library, in the file esp_zb_zcl_update_reporting_info(&reporting_info); Just a few lines above, where the reporting_info.cluster_id = ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT; to reporting_info.cluster_id = ESP_ZB_ZCL_CLUSTER_ID_ANALOG_INPUT; has fixed the crashing and reporting seems to work okay for me |
Fix to a copy-paste error that causes a Guru Meditation crash with Zigbee Analog Example.
@oli-the-kitty Thank you for investigation and also for posting a fix. I am sorry for that copy-paste error. |
@oli-the-kitty May I ask you how you managed to test it with the changed line right away? I am guite new to github and would like to get it to work correctly in my Arduino IDE. Is that possible? |
Hi @MikaFromTheRoof, I just edited the local file on my laptop without doing editing in github. The library, in my case, was located under the following path:
but this will depend on your Arduino installation. Once I got it working, I made the change in github. BTW welcome to github, I'm very new is well, this is literally the first issue and first pull request I ever did. |
@oli-the-kitty nice, then welcome to you too :-) I am desperately looking for a community of other people tinkering with ESP32, zigbee and the arduino-esp32 library. Did you find any yet? Or is there just Github? I would really love to go deeper into those topics, but the code examples are few and as soon as you deviate too far from them stuff stops working quite often. Whenever I need help, I don't know where I could turn to... How are you testing your selfmade zigbee devices? I integrate them into my Home Assistant via Zigbee2MQTT and always wonder, if my code / the zigbee on the ESP32 or Zigbee2MQTT is the problem, whenever something isn't working properly. At the moment I am trying to combine two zigbee endpoints into one device: a dimmable light endpoint and a analog value endpoint to expose the sensor values of a simple photoresistor (light measure). But I can't even get the analog value example code working... Zigbee2MQTT finds the endpoint, but does not receive or "understand" any values... Apart from that, a quick question: do you know if there is a function for sending personal messages on Github? |
Hi. As far as I know, github got rid of private messages. You can message me on Telegram if you wanna talk, being honest, I don't know myself if continuing a conversation in a closed issue is the right thing to do here XD |
Folks you can also join our Discord, where you can also chat directly :) For sure it will be better to chat 1-1 as its off-topic of this issue ;) |
you're absolutely right, Prochy! |
I'll look into joining once I get home from work, I need to be on PC for discord cuz the mobile apps are crap |
Board
ESP32-C6 dev module
Device Description
ESP32-C6-WROOM-1 module on a generic ebay development board with 2 USB-C ports.
Hardware Configuration
There is no other hardware attached to the board.
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE v1.8.19
Operating System
Windows 11
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
I wanted to try out the Zigbee analog input output example. The code compiled okay, was flashed to the board, paired up with zigbee network (Home Assistant via Sonoff dongle) and crashed. Since then it keeps crashing as soon as it connects to the network. The example was completely unmodified.
Sketch
Debug Message
Other Steps to Reproduce
Steps that led to this are:
Here are my IDE settings
Tried this with an ESP32H2 and the same thing happened.
I'm using ZHA in HA and running Silicon Labs Multiprotocol firmware on the dongle.
I could not get the exception decoded using the decoder - I pasted it in and no output appeared.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: