Building Matter Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Building Matter Issue

跳至解决方案
1,914 次查看
Mason-Ahn
Contributor II

I have an IOTZTB-DK006 from NXP.

I'm currently looking at the DOC(K32W0X1-MATTER-QSG_Rev1.0(Getting started with K32W0x1 in Matter).pdf) and trying to build an environment.

I used virtual Box to create an image of ubuntu64-22.04.3.

I have read and followed the documentation, but I am not able to progress in the python Part as shown below.

I've searched the internet and installed several pip packages, but I'm still unable to resolve the issue.

What's the problem?

MasonAhn_0-1708872697433.png

...

error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
['/home/ahn/NXP/matter/.environment/pigweed-venv/bin/python', '-m', 'pip', 'install', '--log', '/home/ahn/NXP/matter/.environment/pigweed-venv/pip-requirements.log', '--requirement=/home/ahn/NXP/matter/scripts/requirements.txt', '--constraint=/home/ahn/NXP/matter/scripts/constraints.txt'] {'stdout': <_io.TextIOWrapper name=3 mode='w+' encoding='UTF-8'>, 'stderr': -2}
None
Traceback (most recent call last):
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 795, in <module>
sys.exit(main())
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 787, in main
return EnvSetup(**vars(parse())).setup()
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 457, in setup
result = step(spin)
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 606, in virtualenv
if not virtualenv_setup.install(
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 274, in install
pip_install('--log', os.path.join(venv_path, 'pip-requirements.log'),
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 243, in pip_install
return _check_call(cmd)
File "/home/ahn/NXP/matter/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 88, in _check_call
subprocess.check_call(args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/ahn/NXP/matter/.environment/pigweed-venv/bin/python', '-m', 'pip', 'install', '--log', '/home/ahn/NXP/matter/.environment/pigweed-venv/pip-requirements.log', '--requirement=/home/ahn/NXP/matter/scripts/requirements.txt', '--constraint=/home/ahn/NXP/matter/scripts/constraints.txt']' returned non-zero exit status 1.

 

ubuntu64-22:~/NXP/matter$ pip list

Package Version
---------------------- ----------------
apturl 0.5.2
bcrypt 3.2.0
blinker 1.4
Brlapi 0.8.3
certifi 2020.6.20
chardet 4.0.0
click 8.0.3
colorama 0.4.4
command-not-found 0.3
cryptography 3.4.8
cupshelpers 1.0
dbus-python 1.2.18
defer 1.0.6
distlib 0.3.4
distro 1.7.0
distro-info 1.1+ubuntu0.1
duplicity 0.8.21
fasteners 0.14.1
filelock 3.6.0
future 0.18.2
httplib2 0.20.2
idna 3.3
importlib-metadata 4.6.4
jeepney 0.7.1
keyring 23.5.0
language-selector 0.1
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
lockfile 0.12.2
louis 3.20.0
macaroonbakery 1.3.1
Mako 1.1.3
Markdown 3.3.6
MarkupSafe 2.0.1
monotonic 1.6
more-itertools 8.10.0
netifaces 0.11.0

oauthlib 3.2.0
olefile 0.46


paramiko 2.9.3
pexpect 4.8.0
Pillow 9.0.1
pip 24.0
platformdirs 2.5.1
protobuf 3.12.4
ptyprocess 0.7.0
pycairo 1.20.1
pycups 2.0.1
Pygments 2.11.2
PyGObject 3.42.1
PyJWT 2.3.0
pymacaroons 0.13.0
PyNaCl 1.5.0
pyparsing 2.4.7
pyRFC3339 1.1
python-apt 2.4.0+ubuntu2
python-dateutil 2.8.1
python-debian 0.1.43+ubuntu1.1
python-dotenv 1.0.1
pytz 2022.1
pyxdg 0.27
PyYAML 5.4.1
reportlab 3.6.8
requests 2.25.1
SecretStorage 3.3.1
setuptools 69.1.1
six 1.16.0
ssh-import-id 5.11
systemd-python 234
ubuntu-advantage-tools 8001
ubuntu-drivers-common 0.0.0
ufw 0.36.1
unattended-upgrades 0.1
urllib3 1.26.5
usb-creator 0.3.7
virtualenv 20.13.0+ds
wadllib 1.3.6
wheel 0.42.0
xdg 5
xkit 0.0.0
zipp 1.0.0

 

ubuntu64-22:~/NXP/matter$ ls -al /home/ahn/NXP/matter/.environment/pigweed-venv/bin

total 24
drwxrwxr-x 2 ahn ahn 4096 2월 25 23:45 .
drwxrwxr-x 5 ahn ahn 4096 2월 25 23:45 ..
-rwxrwxr-x 1 ahn ahn 262 2월 25 23:45 pip
-rwxrwxr-x 1 ahn ahn 262 2월 25 23:45 pip3
-rwxrwxr-x 1 ahn ahn 262 2월 25 23:45 pip3.10
lrwxrwxrwx 1 ahn ahn 7 2월 25 23:45 python -> python3
lrwxrwxrwx 1 ahn ahn 16 2월 25 23:45 python3 -> /usr/bin/python3
lrwxrwxrwx 1 ahn ahn 7 2월 25 23:45 python3.10 -> python3
-rwxrwxr-x 1 ahn ahn 249 2월 25 23:45 wheel

 

标签 (2)
0 项奖励
回复
1 解答
1,677 次查看
Mason-Ahn
Contributor II

Thanks about your reply..... Ricardo

在原帖中查看解决方案

0 项奖励
回复
9 回复数
1,872 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. What Releases · NXP/matter · GitHub are you using?

 

Have you tried this?

pip install --upgrade prompt-toolkit

 

Regards,

Ricardo

0 项奖励
回复
1,866 次查看
Mason-Ahn
Contributor II

I proceeded the same as with the NXP DOC.

"K32W0X1-MATTER-QSG_Rev1.0(Getting started with K32W0x1 in Matter).pdf" 9page

3. Matter Building Setup instructions:
   Clone the Matter SDK using the public repo:
$ git clone https://github.com/NXPmicro/matter/
$ cd matter
$ git checkout v1.0-branch-nxp
$ git pull
$ git submodule update --init --recursive
   Start build environment by running the activate script:
$ source ./scripts/activate.sh

 

ubuntu64-22:~/NXP/matter$ git branch

MasonAhn_0-1708988738390.png

I followed the DOC procedure. and I am using K32W061 EVK(IOTZTB-DK006)

Is there a problem?

0 项奖励
回复
1,847 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Mason-Ahn

The document you used may not be up to date. Please, consider using the latest stable Matter release for your device from the matter repository, since v1.0 branch was updated after the QSG document was released; the best path would be to keep up with the READMEs from the application folder.

Specific steps for each example should be included in matter/examples/"example"/nxp/k32w/k32w0. There you should find the requirements, setup and building steps for the corresponding demo application.

Regards,
Eduardo.

0 项奖励
回复
1,772 次查看
Mason-Ahn
Contributor II

I successfully built the lighting-app and contact-sensor-app for Matter.
and I flashed the binary I built, but K32W061 board doesn't work.

1. Is there something wrong with the Build Procedure below? check plz..

2. Can you share a pre-built image for Matters? ("K32W061 + OM15082")
    I want 2 binarys for K32W061. (chip-k32w0x-light-example.bin , chip-k32w0x-contact-example.bin)
    I just want to flash the binary to check if the board working well.


"Build Procedure"
-https://github.com/NXP/matter/blob/v1.2.0.1-tag-nxp/examples/lighting-app/nxp/k32w/k32w0/README.md
-https://github.com/NXP/matter/blob/v1.2.0.1-tag-nxp/examples/contact-sensor-app/nxp/k32w/k32w0/README.md
-K32W0X1-MATTER-QSG_Rev1.0(Getting started with K32W0x1 in Matter).pdf
(I referred to link and DOC. I just wrote down the main points below.)

a. git clone https://github.com/NXPmicro/matter/
b. git branch --list

MasonAhn_0-1709547212650.png

c. git pull
d. git submodule update --init
e. source ./scripts/activate.sh

MasonAhn_1-1709547277878.png

f. west init -l manifest --mf west.yml
g. west update

h. export NXP_K32W0_SDK_ROOT=~/NXP/SDK_2_6_13_K32W061DK6/
i. gn gen out/debug --args="k32w0_sdk_root=\"${NXP_K32W0_SDK_ROOT}\" chip_with_OM15082=1 chip_with_ot_cli=0 is_debug=false chip_crypto=\"platform\" chip_with_se05x=0 chip_pw_tokenizer_logging=true"
j. ninja -C out/debug

MasonAhn_2-1709547556444.png

k. $NXP_K32W0_SDK_ROOT/tools/imagetool/sign_images.sh out/debug/

l. Connecting the board, Flashing the application using DK6Programmer.

MasonAhn_3-1709547676380.png

m. DK6Programmer.exe -V 5 -P 1000000 -s COM5 -e Flash
n. DK6Programmer.exe -V 2 -s COM5 -P 1000000 -Y -p FLASH@0x00=k32w061dk6_ssbl.bin

k32w061dk6_ssbl.bin(SSBL project using MCUXpresso, compiled with the PDM_EXT_FLASH)
o. DK6Programmer.exe -V 5 -s COM5 -P 1000000 -w image_dir_0=0000000010000000
p. DK6Programmer.exe -V 5 -s COM5 -P 1000000 -w image_dir_1=00400000C9040101
q. DK6Programmer.exe -V 2 -s COM5 -P 1000000 -Y -p FLASH@0x4000=chip-k32w0x-light-example.bin

-> I have tried flashing the binaries "chip-k32w0x-light-example.bin and chip-k32w0x-contact-example.bin" respectively, but board doesn't work.

 

0 项奖励
回复
1,759 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please use one of the Releases · NXP? For example, v1.2.0.1.3 is the latest release, and also you can check the features and platforms supported.

 

And unfortunately, we cannot provide a compiled binary. Every customer needs to build it.

 

Best Regards,

Ricardo

0 项奖励
回复
1,331 次查看
seah
Contributor III

Hi,

I tried the instructions from matter/examples/lighting-app/nxp/k32w/k32w0 at v1.2.0.1-tag-nxp · NXP/matter (github.com), and successfully built chip-k32w0x-light-example.bin.

I then flashed the DK6 board with command 

C:\nxp\DK6Programmer> ./DK6Programmer.exe -s COM10 -p chip-k32w0x-light-example.bin

but the board UI LED does not correspond to the README file, i.e. no blinking, as below

1.JPG

 

Please advise 

 

 

0 项奖励
回复
1,730 次查看
Mason-Ahn
Contributor II

I did it on the latest v1.2.0.1.3 you mentioned.

https://github.com/NXP/matter/blob/v1.2.0.1.3/examples/lighting-app/nxp/k32w/k32w0/README.md
-> I built it, and verified the Lighting APP UI behaviour on the K32W061 board.


https://github.com/NXP/matter/blob/v1.2.0.1.3/examples/contact-sensor-app/nxp/k32w/k32w0/README.md
-> I followed the same procedure as lighting-app above.
However, I encountered the following issue during the build.

MasonAhn_0-1709736932631.png


If you look at the "/home/ahn/.cache/pip-tools" folder permissions mentioned above, it looks no problem.

MasonAhn_1-1709737256054.png

Now "contact-sensor-app" is the problem. T.T

 

0 项奖励
回复
1,697 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

I was not able to reproduce your issue. Both applications can be compiled correctly from my side.

I would recommend updating your packages.

 

Regards,

Ricardo

0 项奖励
回复
1,678 次查看
Mason-Ahn
Contributor II

Thanks about your reply..... Ricardo

0 项奖励
回复