espressif/button component version mismtat

tomasmcguinness
Posts: 14
Joined: Thu Jul 18, 2019 9:20 pm

espressif/button component version mismtat

Postby tomasmcguinness » Fri Nov 29, 2024 10:41 am

I am trying to upgrade the espressif/button version used in the esp-matter ICD example, to try and take advantage of the light sleep support introduced.

My code is working, but due to the light sleep, the GPIO button clicks don't always register. I believe that going to the espressif/button with low power support will help (https://docs.espressif.com/projects/esp ... #low-power). I checked the version history of the espressif/button and the low power didn't come in until version 3.1, so I opted to move to the latest version.

I'm using esp-idf version 5.2.3 (following the esp-matter guide) and the latest esp-matter version.

I have updated my idf_component.yml file to this:

Code: Untitled.yml Select all


dependencies:
espressif/button: ">=3.3.2"

I have deleted the build folder, the dependencies.lock file and the managed_components folder.

When I execute the idf.py set-target or idf.py reconfigure I get this error:

Code: Untitled.cmake Select all


CMake Error at /home/tomasmcguinness/esp/esp-idf/tools/cmake/build.cmake:552 (message):
ERROR: Because project depends on both espressif/button (>=3.3.2) and
espressif/button (=2.5.0), version solving failed.

I cannot figure out what is referencing the 2.5.0 version of the button.

Any advice on where to look?? Is the dependencies much lower down??

tomasmcguinness
Posts: 14
Joined: Thu Jul 18, 2019 9:20 pm

Re: espressif/button component version mismtat

Postby tomasmcguinness » Fri Nov 29, 2024 10:49 am

As soon I typed "dependency lower down", I thought to check the CMAKE file and found that it was pulling in a few folders from the esp-matter directory.

One of these was the device_hal folder, under that there is an import of the iot_button, which has a dependency on espressif/button 2.5.0!!!

I bumped that up and my code now compiles.

I don't know if that will break everything else, but for now it's enough to get me started!

tomasmcguinness
Posts: 14
Joined: Thu Jul 18, 2019 9:20 pm

Re: espressif/button component version mismtat

Postby tomasmcguinness » Sat Nov 30, 2024 7:23 am

This worked perfectly. The power consumption in light sleep is down at 1.5mA and the button successfully wakes everything up and sends a Matter event before going back into sleep.

Who is online

Users browsing this forum: Bing [Bot], ChatGPT-User, PerplexityBot and 2 guests