Hello, I have been trying to update our matter framework from 1.2 to 1.4 and I found out several issues. The examples we use is lighting-app, light-switch-combo and lock-app.
1) When I tried to compile the light-switch-combo, ninja gives me a couple of errors:
../../main/ZclCallbacks.cpp: In function 'void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath&, uint8_t, uint16_t, uint8_t*)':
../../main/ZclCallbacks.cpp:58:33: error: 'OnOffSwitchConfiguration' has not been declared
58 | else if (path.mClusterId == OnOffSwitchConfiguration::Id)
ACTION //third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup:pi...hird_party/connectedhomeip/third_party/pigweed/repo/pw_build/python_toolchain:python
FAILED: python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/compiled_requirements.txt
python ../../third_party/connectedhomeip/third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup --default-toolchain=//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc --current-toolchain=//third_party/connectedhomeip/third_party/pigweed/repo/pw_build/python_toolchain:python --capture-output --module piptools --python-virtualenv-config python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/venv_metadata.json --python-dep-list-files python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv._compile_requirements_metadata_path_list.txt -- compile --resolver=backtracking --allow-unsafe --output-file python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/compiled_requirements.txt python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/generated_requirements.txt
ERROR: Cannot install -r python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/generated_requirements.txt (line 99) because these package versions have conflicting dependencies.
I am pretty sure I prepared my WSL according to the prerequisites listed in the README of the example, is there a problem with the code?
2) lock-app does not support k32w0 anymore (well, since v1.3); while it is hard to argue with such an official statement, may I ask if it is possible to make the example run somehow using the code for k32w1? Otherwise, would the device with the lock-app from v1.2 operate normally in the Matter network which devices were updated to v1.4v?
Thanks in advance for your answers.
Solved! Go to Solution.
Hi, @MO94
I have synced with our internal team, both our internal expert team's colleague and me could not repro your above issue. We only can repro the "Not declared "issue.
Our internal team have created Jira ticket to our example owner to check further.
About "After comment the if-else" you meet the building failed errors, we suggest you to check your building environment.
Please let me know whether have any other concerns on this case.
Otherwise, please help to close this current case by marking my answer as a solution.
Thanks.
Best regards,
Christine.
Hi, @MO94
1. If you directly use clean V1.4.0.0, not update from 1.2 to v1.4, will you still meet this issue?
2.Can you please let me know your SDK version?
3.If you can provide me your detailed steps, would be appreciated. So that I can try to repro this issue on my local side.
For question2. lock-app does not support k32w0 anymore (well, since v1.3)
==>Yes, you are right.
if it is possible to make the example run somehow using the code for k32w1? Otherwise, would the device with the lock-app from v1.2 operate normally in the Matter network which devices were updated to v1.4v?
==>I need to check internally whether it is possible. Will let you know my updates after I receive internal team's feedback.
Best regards,
Christine.
Hello, Christine, sorry for the belated reply, I took some vacation days off.
1. I have used the clean v1.4.0, the 'upgrade' part in the text related to the fact that I was trying out the clean version separately in order to replace the old framework we are using.
2. The SDK I used was downloaded automatically by the command
third_party/nxp/nxp_matter_support/scripts/update_nxp_sdk.py --platform k32w0"
The branch of the connectedhomeip repository is explicitly set to "v1.4.0.0".
3. We are using a dockerfile we made that is based on the "ghcr.io/project-chip/chip-build:94" Matter image. We don't do much with it except for installing the packages mentioned in the "Building" section of the example readme, downloading the NXP Matter repository and using a couple of scripts inside the repo to checkout the submodules and the sdk.
As for your next reply, I need to make it clear that we definitely call the "source scripts/bootstrap.sh" and "source scripts/activate.sh" script to set up our environment and I haven't seen the error that you mentioned in the yesterday's message.
Hi, @MO94
Thanks for your reply.
I think the error I met locally is related to my Ubuntu version(Ubuntu 20.04).
What is your Ubuntu version? Are you using Ubuntu 22.04?
If yes, then I need to ask our internal IT team help to update my Ubuntu to 22.04 then have a try to repro your issue locally.
Best regards,
Christine.
My distribution is Ubuntu 24.04 LTS that is pulled by the "ghcr.io/project-chip/chip-build:94" chipbuild docker image.
Hi, @MO94
Thanks for your feedback.
I have informed our internal IT support team help to upgrade my Ubuntu from 20.04 to 22.04. After upgrade successfully, I will try again. Then let you know my test results.
Best regards,
Christine.
Hi, @MO94
Thanks for your patience.
Last Saturday our IT team has helped me to upgrade my Ubuntu from 20.04 to 22.04.
I tried locally, and I think I can repro your issue in "light-switch-combo-app".
Please see below:
../../main/ZclCallbacks.cpp:58:33: error: 'OnOffSwitchConfiguration' has not been declared
58 | else if (path.mClusterId == OnOffSwitchConfiguration::Id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
[14/59] c++ obj/third_party/connectedhomeip/src/app/clusters/access-control-server/light-switch-combo-common.access-control-server.cpp.o
ninja: build stopped: subcommand failed.
And I searched it in other folders, can you please try with below:
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ cd ../../../
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples$ grep -ir OnOffSwitchConfiguration ./
./tv-app/android/java/src/com/matter/tv/server/tvapp/Clusters.java: public static final long ClusterId_OnOffSwitchConfiguration = 0x00000007;
./virtual-device-app/android/java/src/com/matter/virtual/device/app/Clusters.java: public static final long ClusterId_OnOffSwitchConfiguration = 0x00000007;
./light-switch-combo-app/nxp/k32w0/main/ZclCallbacks.cpp: else if (path.mClusterId == OnOffSwitchConfiguration::Id)
To declare OnOffSwitchConfiguration firstly, then use it again to see whether can resolve this issue. At the same time, I will report this issue to our internal team.
And I also tried the "lighting-app" and "lock-app".
For "lighting-app", I can build successfully, but for "lock-app", I could also not build successfuly.
Can you build "lighting-app" successfully?
Can you please provide me your full compile logs and also your commands and configurations?
Below attached is mine for your reference.
Best regards,
Christine.
Hello,
I can compile lighting-app without errors.
When I declared 'OnOffSwitchConfiguration::Id', the compilation of the light-switch-combo-app went ahead almost until the end, then I got an error related to pigweed dependency conflict:
[9/16] ACTION //third_party/connectedhomeip/third_party/pigweed/repo/pw_env_...ty/connectedhomeip/third_party/pigweed/repo/pw_build/python_toolchain:python
FAILED: python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/compiled_requirements.txt
python ../../third_party/connectedhomeip/third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup --default-toolchain=//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc --current-toolchain=//third_party/connectedhomeip/third_party/pigweed/repo/pw_build/python_toolchain:python --capture-output --module piptools --python-virtualenv-config python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/venv_metadata.json --python-dep-list-files python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv._compile_requirements_metadata_path_list.txt -- compile --resolver=backtracking --allow-unsafe --output-file python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/compiled_requirements.txt python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/generated_requirements.txt
ERROR: Cannot install -r python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/generated_requirements.txt (line 99) because these package versions have conflicting dependencies.
Traceback (most recent call last):
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 316, in _backjump
name, candidate = broken_state.mapping.popitem()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'dictionary is empty'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 434, in resolve
success = self._backjump(causes)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in _backjump
raise ResolutionImpossible(causes)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('dill>=0.3.6; python_version >= "3.11"'), parent=LinkCandidate('https://files.pythonhosted.org/packages/73/79/e9649dd36ea3ada2b7a14e279b3dc6a9502541e1fd2ba5ed73cbd9e27840/pylint-3.0.1-py3-none-any.whl (from https://pypi.org/simple/pylint/) (requires-python:>=3.8.0)')), RequirementInformation(requirement=SpecifierRequirement('dill>=0.3.7; python_version >= "3.12"'), parent=LinkCandidate('https://files.pythonhosted.org/packages/73/79/e9649dd36ea3ada2b7a14e279b3dc6a9502541e1fd2ba5ed73cbd9e27840/pylint-3.0.1-py3-none-any.whl (from https://pypi.org/simple/pylint/) (requires-python:>=3.8.0)'))]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/__main__.py", line 19, in <module>
cli()
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/scripts/compile.py", line 659, in cli
results = resolver.resolve(max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/resolver.py", line 604, in resolve
is_resolved = self._do_resolve(
^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/resolver.py", line 636, in _do_resolve
resolver.resolve(
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve
raise error from e
pip._internal.exceptions.DistributionNotFound: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
ninja: build stopped: subcommand failed.
I basically ran the activate script and used 'gn gen out/debug' and 'ninja -C out/debug' commands after the addition of a small code piece that declared the missing variable.
Here, I attached my simple dockerfile contents so you can reproduce my configuration (without the declaration fix).
Hi, @MO94
Thanks for your reply.
I don't know how do you declare "OnOffSwitchConfiguration".
Because after searched, I just find that this "OnOffSwitchConfiguration" is using here, so I tried to comment this "else if" where it reported the error, then I can compile it successfully.
Please see below:
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ vi main/ZclCallbacks.cpp
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ ninja -C out/debug
ninja: Entering directory `out/debug'
[4/15] ld ./chip-k32w0x-light-switch-combo-example
Memory region Used Size Region Size %age Used
Flash640: 632276 B 643584 B 98.24%
SCRATCH_RAM: 1 KB 1 KB 100.00%
RAM0: 79928 B 89056 B 89.75%
reserved: 0 GB 32 B 0.00%
RAM1: 60 KB 64 KB 93.75%
[8/15] ACTION //:binsign(//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc)
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Python package ** pycrypto ** is not installed! Please install it then recompile.
Installation command: pip3 install pycrypto
[15/15] stamp obj/default.stamp
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ pip3 install pycrypto
Collecting pycrypto
Using cached pycrypto-2.6.1-cp310-cp310-linux_x86_64.whl
Installing collected packages: pycrypto
Successfully installed pycrypto-2.6.1
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ ninja -C out/debug
ninja: Entering directory `out/debug'
[1/4] ACTION //:binsign(//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc)
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Python package ** pycryptodome ** is not installed! Please install it then recompile.
Installation command: pip3 install pycryptodome
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ pip3 install pycryptodome
Collecting pycryptodome
Obtaining dependency information for pycryptodome from https://files.pythonhosted.org/packages/ea/66/6f2b7ddb457b19f73b82053ecc83ba768680609d56dd457dbc7e902c41aa/pycryptodome-3.21.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading pycryptodome-3.21.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.4 kB)
Downloading pycryptodome-3.21.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 23.9 MB/s eta 0:00:00
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.21.0
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ ninja -C out/debug
ninja: Entering directory `out/debug'
[1/4] ACTION //:binsign(//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc)
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
arm-none-eabi-objcopy: /home/nxf93258/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/stdcmmrM: section .bss lma 0x9a5d4 adjusted to 0x9a600
No .ext_flash_text section found in ELF file
No compatibility list
Boot Block Offset: 0009a5e0
Writing checksum fbfcf50c to file /home/nxf93258/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/chip-k32w0x-light-switch-combo-example
Writing CRC32 of header 3de13b55 to file /home/nxf93258/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/chip-k32w0x-light-switch-combo-example
Binary size is 0009a600 (632320)
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ cd out/debug/
gen/ lib/ obj/ protocol_buffer/ python/ python-venv/
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ cd out/debug/
gen/ lib/ obj/ protocol_buffer/ python/ python-venv/
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ cd out/debug/
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug$ ll
total 77976
drwxr-xr-x 8 nxf93258 nxp 4096 Jan 15 10:47 ./
drwxr-xr-x 3 nxf93258 nxp 4096 Jan 14 10:39 ../
-rw-r--r-- 1 nxf93258 nxp 53 Jan 14 10:39 args.gn
-rw------- 1 nxf93258 nxp 1251593 Jan 15 10:40 build.ninja
-rw------- 1 nxf93258 nxp 54610 Jan 15 10:40 build.ninja.d
-rw------- 1 nxf93258 nxp 0 Jan 15 10:40 build.ninja.stamp
-rwxr-xr-x 1 nxf93258 nxp 62298348 Jan 15 10:47 chip-k32w0x-light-switch-combo-example*
-rwxr-xr-x 1 nxf93258 nxp 632320 Jan 15 10:47 chip-k32w0x-light-switch-combo-example.bin*
-rw-r--r-- 1 nxf93258 nxp 56004 Jan 15 10:46 chip-k32w0x-light-switch-combo-example-database.bin
-rw-r--r-- 1 nxf93258 nxp 11521537 Jan 15 10:46 chip-k32w0x-light-switch-combo-example.map
-rwxr-xr-x 1 nxf93258 nxp 1817910 Jan 15 10:46 chip-k32w0x-light-switch-combo-example.srec*
drwxr-xr-x 4 nxf93258 nxp 4096 Jan 14 10:39 gen/
drwxr-xr-x 2 nxf93258 nxp 4096 Jan 14 10:40 lib/
-rw-r--r-- 1 nxf93258 nxp 44 Jan 14 10:39 light_switch_combo_app.flashbundle.txt
-rw-r--r-- 1 nxf93258 nxp 761036 Jan 15 10:45 .ninja_deps
-rw-r--r-- 1 nxf93258 nxp 207386 Jan 15 10:47 .ninja_log
drwxr-xr-x 5 nxf93258 nxp 4096 Jan 15 10:46 obj/
-rw-r--r-- 1 nxf93258 nxp 1 Jan 15 10:47 postbuild_process_ongoing
drwxr-xr-x 3 nxf93258 nxp 4096 Jan 14 10:39 protocol_buffer/
drwxr-xr-x 4 nxf93258 nxp 4096 Jan 15 10:40 python/
drwxr-xr-x 6 nxf93258 nxp 4096 Jan 15 10:46 python-venv/
-rw-r--r-- 1 nxf93258 nxp 607 Jan 14 10:39 relative_path_transformations.json
-rw-r--r-- 1 nxf93258 nxp 1182747 Jan 15 10:40 toolchain.ninja
-rw-r--r-- 1 nxf93258 nxp 0 Jan 15 10:40 zap_gen.lock
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug$
Please have a try to comment this "else if" where it reports "not been declared" error and let me know your result. So that we can narrow down whether your error is related to your environment.
For sure, I will report this "not been declared issue" to our internal team to correct it.
Best regards,
Christine.
Hello, just wanted to let you know that if I comment out the if-else block like you suggested, the pigweed error I reported earlier persists.
// else if (path.mClusterId == OnOffSwitchConfiguration::Id)
// {
// ChipLogProgress(Zcl, "OnOff Switch Configuration attribute ID: " ChipLogFormatMEI " Type: %u Value: %u, lengt>
// ChipLogValueMEI(path.mAttributeId), type, *value, size);
// WIP Apply attribute change to Light
// }
root@71d05c30e364:/home/matter/examples/light-switch-combo-app/nxp/k32w0# gn gen out/debug
------------- Matter config --------------
- k32w0_sdk_root //third_party/connectedhomeip/third_party/nxp/nxp_matter_support/github_sdk/k32w0/repo
- Built with SDK package: 0
- device: K32W061
- board: k32w061dk6
- ntag: 0
- increased TX power: 0
- FRO32k: 0
- low power: false
- OTA default firmware processor: true
- OTA default factory data processor: false
- PDM Encryption: 1
- Antenna Diversity enabled: 0
- ECC crypto lib: NXP-Ultrafast-P256
Done. Made 4292 targets from 339 files in 283ms
root@71d05c30e364:/home/matter/examples/light-switch-combo-app/nxp/k32w0# ninja -C out/debug/
ninja: Entering directory `out/debug/'
[24/1292] cc obj/third_party/connectedhomeip/third_party/n...epo/core/devices/K32W061/mcuxpresso/sdk.startup_k32w061.c.
../../third_party/connectedhomeip/third_party/nxp/nxp_matter_support/github_sdk/k32w0/repo/core/devices/K32W061/mcuxpresso/startup_k32w061.c: In function 'ZIGBEE_MAC_IRQHandler':
../../third_party/connectedhomeip/third_party/nxp/nxp_matter_support/github_sdk/k32w0/repo/core/devices/K32W061/mcuxpresso/startup_k32w061.c:841:14: warning: the address of 'ZIGBEE_MAC_DriverIRQHandler' will always evaluate as 'true' [-Waddress]
841 | else if (ZIGBEE_MAC_DriverIRQHandler)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/connectedhomeip/third_party/nxp/nxp_matter_support/github_sdk/k32w0/repo/core/devices/K32W061/mcuxpresso/startup_k32w061.c: In function 'ZIGBEE_MODEM_IRQHandler':
../../third_party/connectedhomeip/third_party/nxp/nxp_matter_support/github_sdk/k32w0/repo/core/devices/K32W061/mcuxpresso/startup_k32w061.c:857:14: warning: the address of 'ZIGBEE_MODEM_DriverIRQHandler' will always evaluate as 'true' [-Waddress]
857 | else if (ZIGBEE_MODEM_DriverIRQHandler)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
[1279/1292] ld ./chip-k32w0x-light-switch-combo-example
Memory region Used Size Region Size %age Used
Flash640: 632276 B 643584 B 98.24%
SCRATCH_RAM: 1 KB 1 KB 100.00%
RAM0: 79928 B 89056 B 89.75%
reserved: 0 GB 32 B 0.00%
RAM1: 60 KB 64 KB 93.75%
[1283/1292] ACTION //:binsign(//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc)
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
[notice] A new release of pip is available: 23.2.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
arm-none-eabi-objcopy: /home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/stZjRIqB: section .bss lma 0x9a5d4 adjusted to 0x9a600
No .ext_flash_text section found in ELF file
No compatibility list
Boot Block Offset: 0009a5e0
Writing checksum fbfcf50c to file /home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/chip-k32w0x-light-switch-combo-example
Writing CRC32 of header 3de13b55 to file /home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/chip-k32w0x-light-switch-combo-example
Binary size is 0009a600 (632320)
[1285/1292] ACTION //third_party/connectedhomeip/third_par.../third_party/pigweed/repo/pw_build/python_toolchain:python
FAILED: python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/compiled_requirements.txt
python ../../third_party/connectedhomeip/third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup --default-toolchain=//third_party/connectedhomeip/build/toolchain/arm_gcc:arm_gcc --current-toolchain=//third_party/connectedhomeip/third_party/pigweed/repo/pw_build/python_toolchain:python --capture-output --module piptools --python-virtualenv-config python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/venv_metadata.json --python-dep-list-files python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv._compile_requirements_metadata_path_list.txt -- compile --resolver=backtracking --allow-unsafe --output-file python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/compiled_requirements.txt python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/generated_requirements.txt
ERROR: Cannot install -r python/gen/third_party/connectedhomeip/third_party/pigweed/repo/pw_env_setup/pigweed_build_venv/generated_requirements.txt (line 99) because these package versions have conflicting dependencies.
Traceback (most recent call last):
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 316, in _backjump
name, candidate = broken_state.mapping.popitem()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'dictionary is empty'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 434, in resolve
success = self._backjump(causes)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in _backjump
raise ResolutionImpossible(causes)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('dill>=0.3.6; python_version >= "3.11"'), parent=LinkCandidate('https://files.pythonhosted.org/packages/73/79/e9649dd36ea3ada2b7a14e279b3dc6a9502541e1fd2ba5ed73cbd9e27840/pylint-3.0.1-py3-none-any.whl (from https://pypi.org/simple/pylint/) (requires-python:>=3.8.0)')), RequirementInformation(requirement=SpecifierRequirement('dill>=0.3.7; python_version >= "3.12"'), parent=LinkCandidate('https://files.pythonhosted.org/packages/73/79/e9649dd36ea3ada2b7a14e279b3dc6a9502541e1fd2ba5ed73cbd9e27840/pylint-3.0.1-py3-none-any.whl (from https://pypi.org/simple/pylint/) (requires-python:>=3.8.0)'))]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/__main__.py", line 19, in <module>
cli()
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/scripts/compile.py", line 659, in cli
results = resolver.resolve(max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/resolver.py", line 604, in resolve
is_resolved = self._do_resolve(
^^^^^^^^^^^^^^^^^
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/piptools/resolver.py", line 636, in _do_resolve
resolver.resolve(
File "/home/matter/examples/light-switch-combo-app/nxp/k32w0/out/debug/python-venv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve
raise error from e
pip._internal.exceptions.DistributionNotFound: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
ninja: build stopped: subcommand failed.
Hi, @MO94
Thanks for your reply.
From our test results, I think this error might related to your compile environment.
Is it possible to try with Ubuntu 22.04 on your side?
Or, try with the same python version as mine:
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ python3 --version
Python 3.10.16
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$
nxf93258@lsv051430:~/matter/v1.4.0.0/matter/examples/light-switch-combo-app/nxp/k32w0$ python --version
Python 3.10.16
Best regards,
Christine.
Hi, @MO94
I have synced with our internal team, both our internal expert team's colleague and me could not repro your above issue. We only can repro the "Not declared "issue.
Our internal team have created Jira ticket to our example owner to check further.
About "After comment the if-else" you meet the building failed errors, we suggest you to check your building environment.
Please let me know whether have any other concerns on this case.
Otherwise, please help to close this current case by marking my answer as a solution.
Thanks.
Best regards,
Christine.
Hello, I haven't tested the example against a different version of OS/python here, but it seems likely that it might not work because my python version is 3.12.3. It is not currently desirable to downgrade the development OS/python and the priority shifted to a different product at the moment, so for now I guess the topic can be closed.
Hi, @MO94
For this error, Sorry I couldn't repro it in my local side.
Because I am using Ubuntu 20.04, when I compiled matter source code, I met below errors:
Setting up CIPD package manager...done (3.4s)
Setting up Project actions........skipped (0.1s)
Setting up Python environment.....[|]Error: Command '['/home/nxf93258/matter/connectedhomeip/.environment/pigweed-venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Now I am stuck here to repro your issue.
But I consulted our internal team and recommended to have a try with
source scripts/activate.sh
and:
source scripts/bootstrap.sh
Because this error seems related to network environment.
Please have a try and let me know whether it works for you.
For question2, I am still trying to consult our internal team. Once have any updates, I will let you know.
Best regards,
Christine.
Hi. @MO94
Happy new year!
For question 2, I checked with our internal expert team, and recommend as below:
lock-app may require a relatively large program space, so you need to evaluate whether K32W0 is sufficient. If sufficient in your project, you can implement the transmutation by yourself through referring to k32W1 . In addition, if it is a new design, we now recommend you consider MCXW71 instead of K32W1 and K32W0.
Please let me know whether have any other concerns on this case.
Best regards,
Christine.