Skip to content

Commit 0062c5d

Browse files
authored
Add instructions on setting up zap for ARM linux (project-chip#25431)
* Add instructions on setting up zap for ARM linux * Fix typo * Restyle * Make links real links * Restyle * Add full traceback flag for sphinx to debug doc build issues * Fix the flag location * Add icon_links to options ... not sure why they are required, but at least build should not fail * Disable turn-warnings-to-errors in the doc build * Fix several readme.md cross reference links with new new myst * More selectively suppress warnings. Still not ideal as the wrong reference is probably the most useful warning by far * Restyle * Remove extra comment * Fix final errors: remove some bracketing, add top level as an external link prefix
1 parent 251a7c5 commit 0062c5d

File tree

10 files changed

+66
-36
lines changed

10 files changed

+66
-36
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ We welcome your contributions to Matter. Read our contribution guidelines
174174

175175
# Building and Developing in Matter
176176

177-
Instructions about how to build Matter can be found [here](./docs/README.md).
177+
Instructions about how to build Matter can be found [here](./docs/README.md) .
178178

179179
# Directory Structure
180180

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?= -W --keep-going -c . -d _build/doctrees
6+
SPHINXOPTS ?= -W -T --keep-going -c . -d _build/doctrees
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = _build/src
99
BUILDDIR = _build

docs/conf.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"**/android/App/app/libs*",
3131
"examples/providers/README.md",
3232
"examples/thermostat/nxp/linux-se05x/README.md",
33+
"examples/common/m5stack-tft/repo",
3334
]
3435

3536

@@ -40,18 +41,21 @@
4041
html_favicon = "_static/images/favicon.ico"
4142
html_static_path = ["_static"]
4243
html_theme_options = {
43-
"logo_only": True,
4444
"github_url": "https://github.com/project-chip/connectedhomeip",
4545
"repository_url": "https://github.com/project-chip/connectedhomeip",
4646
"use_edit_page_button": True,
4747
"repository_branch": "master",
4848
"path_to_docs": "docs",
49+
"icon_links": [],
4950
}
5051

5152
# -- Options for MyST --------------------------------------------------------
5253

5354
myst_heading_anchors = 6
54-
suppress_warnings = ["myst.header", "myst.anchor"]
55+
suppress_warnings = [
56+
"myst.header",
57+
"myst.anchor",
58+
]
5559
myst_enable_extensions = ["html_image"]
5660

5761

@@ -66,6 +70,7 @@
6670
(MATTER_BASE, "examples/**/*.JPG"),
6771
]
6872
external_content_link_prefixes = [
73+
".",
6974
"src/",
7075
r"\.vscode/",
7176
"CONTRIBUTING",

docs/examples/openiotsdk_examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ ${MATTER_ROOT}/scripts/run_in_ns.sh ARMns ${MATTER_ROOT}/scripts/examples/openio
241241
### Commissioning
242242
243243
Once booted the application can be commissioned, please refer to
244-
[docs/guides/openiotsdk_commissioning.md](/../guides/openiotsdk_commissioning.md)
244+
[docs/guides/openiotsdk_commissioning.md](../guides/openiotsdk_commissioning.md)
245245
for further instructions.
246246
247247
## Testing

docs/guides/BUILDING.md

+25
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,31 @@ Finally, reboot your RPi.
107107
If you want to install/use a different version, you may download one from the
108108
zap project [Releases](https://github.com/project-chip/zap/releases)
109109

110+
### Linux ARM
111+
112+
Zap does not provide binary releases for arm. Rosetta solves this for Darwin,
113+
however for linux arm you will have to use a local ZAP, generally through
114+
setting `$ZAP_DEVELOPMENT_PATH` (see the section `Which zap to use` below).
115+
116+
The file `scripts/setup/zap.json` contains the version that CIPD would download,
117+
so you can download a compatible version from the zap project
118+
[Releases](https://github.com/project-chip/zap/releases). To checkout as source
119+
code the corresponding tag should exist in the zap
120+
[repository tags](https://github.com/project-chip/zap/tags) list.
121+
122+
Example commands:
123+
124+
```sh
125+
RUN set -x \
126+
&& mkdir -p /opt/zap-${ZAP_VERSION} \
127+
&& git clone https://github.com/project-chip/zap.git /opt/zap-${ZAP_VERSION} \
128+
&& cd /opt/zap-${ZAP_VERSION} \
129+
&& git checkout ${ZAP_VERSION} \
130+
&& npm config set user 0 \
131+
&& npm ci
132+
ENV ZAP_DEVELOPMENT_PATH=/opt/zap-${ZAP_VERSION}
133+
```
134+
110135
### Which ZAP to use
111136

112137
ZAP scripting uses the following detection, in order:

docs/guides/mbedos_commissioning.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
- [Building and installing](#building-and-installing)
99
- [Accessory Matter device setup](#accessory-matter-device-setup)
1010
- [Device commissioning for Android](#device-commissioning-for-android)
11-
- [Sending ZCL commands](#sending-zcl-commands)
11+
- [Sending ZCL commands](#sending-zcl-commands-android)
1212
- [POSIX CLI CHIPTool](#posix-cli-chiptool)
1313
- [Building](#building)
1414
- [Device commissioning for CLI](#device-commissioning-for-cli)
15-
- [Sending ZCL commands](#sending-zcl-commands-1)
15+
- [Sending ZCL commands](#sending-zcl-commands-posix)
1616
- [Python Device Controller](#python-device-controller)
1717
- [Building and installing](#building-and-installing-1)
1818
- [Device commissioning for Python Device Controller](#device-commissioning-for-python-device-controller)
19-
- [Sending ZCL commands](#sending-zcl-commands-2)
19+
- [Sending ZCL commands](#sending-zcl-commands-python)
2020
- [ZCL commands details](#zcl-commands-details)
2121

2222
<hr>
@@ -137,7 +137,7 @@ steps:
137137
- After successful completion of the process, the application returns to the
138138
main screen.
139139

140-
### Sending ZCL commands
140+
### Sending ZCL commands Android
141141

142142
After the accessory device has been successfully commissioned to the network, it
143143
is possible to communicate with it using IP. Matter uses Zigbee Cluster Library
@@ -179,7 +179,7 @@ Example:
179179

180180
$ chip-tool pairing ble-wifi node_id_to_assign network_ssid network_password 20202021 3840
181181

182-
### Sending ZCL commands
182+
### Sending ZCL commands POSIX
183183

184184
If the commissioning process was successful, it is possible to send a ZCL
185185
command to the device which initiate a certain action.
@@ -232,7 +232,7 @@ To run the auto commissioning process via BLE:
232232

233233
chip-device-ctrl > connect -ble 3840 20202021 1234
234234

235-
### Sending ZCL commands
235+
### Sending ZCL commands Python
236236

237237
If the commissioning process was successful, it is possible to send a ZCL
238238
command to the device which initiates a certain action.

examples/contact-sensor-app/nxp/k32w/k32w0/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ network.
2020
- [Bluetooth LE Rendezvous](#bluetooth-le-rendezvous)
2121
- [Device UI](#device-ui)
2222
- [Building](#building)
23-
- [Known issues](#known-issues)
23+
- [Known issues buiulding](#known-issues-building)
2424
- [Manufacturing data](#manufacturing-data)
2525
- [Flashing and debugging](#flashing-and-debugging)
2626
- [Pigweed Tokenizer](#pigweed-tokenizer)
2727
- [Detokenizer script](#detokenizer-script)
2828
- [Notes](#notes)
29-
- [Known issues](#known-issues-1)
29+
- [Known issues tokenizer](#known-issues-tokenizer)
3030
- [NXP Ultrafast P256 ECC Library](#nxp-ultrafast-p256-ecc-library)
3131
- [Building steps](#building-steps)
3232
- [Tinycrypt ECC library](#tinycrypt-ecc-library)
@@ -36,10 +36,10 @@ network.
3636
- [Writing the PSECT](#writing-the-psect)
3737
- [Writing the application](#writing-the-application)
3838
- [OTA Testing](#ota-testing)
39-
- [Known issues](#known-issues-2)
39+
- [Known issues ota](#known-issues-ota)
4040
- [Low power](#low-power)
4141

42-
- [Known issues](#known-issues-3)
42+
- [Known issues power](#known-issues-low-power)
4343

4444
- [Removing SSBL Upgrade region](#removing-ssbl-upgrade-region)
4545

@@ -233,7 +233,7 @@ pycryptodome 3.9.8
233233
234234
The resulting output file can be found in out/debug/chip-k32w0x-contact-example.
235235
236-
## Known issues
236+
### Known issues building
237237
238238
- When using Secure element and cross-compiling on Linux, log messages from
239239
the Plug&Trust middleware stack may not echo to the console.
@@ -325,7 +325,7 @@ detokenizer script to see logs of a contact-sensor app:
325325
python3 ../../../../../examples/platform/nxp/k32w/k32w0/scripts/detokenizer.py serial -i /dev/ttyACM0 -d out/debug/chip-k32w0x-contact-example-database.bin -o device.txt
326326
```
327327
328-
### Known issues
328+
### Known issues tokenizer
329329
330330
The building process will not update the token database if it already exists. In
331331
case that new strings are added and the database already exists in the output
@@ -531,7 +531,7 @@ Start the OTA process:
531531
user@computer1:~/connectedhomeip$ : ./out/chip-tool-app/chip-tool otasoftwareupdaterequestor announce-ota-provider 1 0 0 0 2 0
532532
```
533533
534-
## Known issues
534+
### Known issues ota
535535
536536
- SRP cache on the openthread border router needs to flushed each time a new
537537
commissioning process is attempted. For this, factory reset the device, then
@@ -595,7 +595,7 @@ below:
595595
Please note that that the Power Measurement Tool is not very accurate and
596596
professional tools must be used if exact power consumption needs to be known.
597597
598-
## Known issues
598+
### Known issues low power
599599
600600
- Power Measurement Tool may not work correctly in MCUXpresso versions greater
601601
that 11.0.1.

examples/light-switch-app/nrfconnect/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,13 @@ platform image.
319319

320320
- If pressed for less than 0.5 seconds, it changes the light state to the
321321
opposite one on the bound lighting device
322-
([lighting-app](../../lighting-app/nrfconnect/README.md))
322+
[lighting-app](../../lighting-app/nrfconnect/README.md)
323323

324324
- If pressed for more than 0.5 seconds, it changes the brightness of the
325325
light on the bound lighting bulb device
326-
([lighting-app](../../lighting-app/nrfconnect/README.md)). The
327-
brightness is changing from 0% to 100% with 1% increments every 300
328-
milliseconds as long as **Button 2** is pressed.
326+
[lighting-app](../../lighting-app/nrfconnect/README.md). The brightness
327+
is changing from 0% to 100% with 1% increments every 300 milliseconds as
328+
long as **Button 2** is pressed.
329329

330330
- On nRF7002 DK:
331331

@@ -665,7 +665,7 @@ communicate with each other.
665665

666666
To perform binding, you need a controller that can write the binding table to
667667
the light switch device and write proper ACL to the endpoint light bulb on the
668-
[Lighting Example application](../../lighting-app/nrfconnect/README.md)). For
668+
[Lighting Example application](../../lighting-app/nrfconnect/README.md). For
669669
example, you can use the
670670
[CHIP Tool for Windows or Linux](../../chip-tool/README.md) as the controller.
671671
The ACL should contain information about all clusters that can be called by the

examples/lighting-app/nxp/k32w/k32w0/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ network.
2222
- [Bluetooth LE Rendezvous](#bluetooth-le-rendezvous)
2323
- [Device UI](#device-ui)
2424
- [Building](#building)
25-
- [Known issues](#known-issues)
25+
- [Known issues](#known-issues-building)
2626
- [Manufacturing data](#manufacturing-data)
2727
- [Flashing and debugging](#flashing-and-debugging)
2828
- [Pigweed Tokenizer](#pigweed-tokenizer)
2929
- [Detokenizer script](#detokenizer-script)
3030
- [Notes](#notes)
31-
- [Known issues](#known-issues-1)
31+
- [Known issues](#known-issues-tokenizer)
3232
- [NXP Ultrafast P256 ECC Library](#nxp-ultrafast-p256-ecc-library)
3333
- [Building steps](#building-steps)
3434
- [Tinycrypt ECC library](#tinycrypt-ecc-library)
@@ -38,7 +38,7 @@ network.
3838
- [Writing the PSECT](#writing-the-psect)
3939
- [Writing the application](#writing-the-application)
4040
- [OTA Testing](#ota-testing)
41-
- [Known issues](#known-issues-2)
41+
- [Known issues](#known-issues-ota)
4242
</hr>
4343

4444
## Introduction
@@ -246,7 +246,7 @@ pycryptodome 3.9.8
246246

247247
The resulting output file can be found in out/debug/chip-k32w0x-light-example.
248248

249-
## Known issues
249+
## Known issues building
250250

251251
- When using Secure element and cross-compiling on Linux, log messages from
252252
the Plug&Trust middleware stack may not echo to the console.
@@ -338,7 +338,7 @@ detokenizer script to see logs of a lighting app:
338338
python3 ../../../../../examples/platform/nxp/k32w/k32w0/scripts/detokenizer.py serial -i /dev/ttyACM0 -d out/debug/chip-k32w0x-light-example-database.bin -o device.txt
339339
```
340340

341-
### Known issues
341+
### Known issues tokenizer
342342

343343
The building process will not update the token database if it already exists. In
344344
case that new strings are added and the database already exists in the output
@@ -544,7 +544,7 @@ Start the OTA process:
544544
user@computer1:~/connectedhomeip$ : ./out/chip-tool-app/chip-tool otasoftwareupdaterequestor announce-ota-provider 1 0 0 0 2 0
545545
```
546546

547-
## Known issues
547+
## Known issues ota
548548

549549
- SRP cache on the openthread border router needs to flushed each time a new
550550
commissioning process is attempted. For this, factory reset the device, then

examples/lock-app/nxp/k32w/k32w0/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ network.
2222
- [Bluetooth LE Rendezvous](#bluetooth-le-rendezvous)
2323
- [Device UI](#device-ui)
2424
- [Building](#building)
25-
- [Known issues](#known-issues)
25+
- [Known issues](#known-issues-building)
2626
- [Manufacturing data](#manufacturing-data)
2727
- [Flashing and debugging](#flashing-and-debugging)
2828
- [Pigweed Tokenizer](#pigweed-tokenizer)
2929
- [Detokenizer script](#detokenizer-script)
3030
- [Notes](#notes)
31-
- [Known issues](#known-issues-1)
31+
- [Known issues](#known-issues-tokenizer)
3232
- [NXP Ultrafast P256 ECC Library](#nxp-ultrafast-p256-ecc-library)
3333
- [Building steps](#building-steps)
3434
- [Tinycrypt ECC library](#tinycrypt-ecc-library)
3535
- [Building steps](#building-steps-1)
3636
- [Low power](#low-power)
3737

38-
- [Known issues](#known-issues-2)
38+
- [Known issues](#known-issues-low-power)
3939

4040
</hr>
4141

@@ -219,7 +219,7 @@ pycryptodome 3.9.8
219219

220220
The resulting output file can be found in out/debug/chip-k32w0x-lock-example.
221221

222-
## Known issues
222+
## Known issues building
223223

224224
- When using Secure element and cross-compiling on Linux, log messages from
225225
the Plug&Trust middleware stack may not echo to the console.
@@ -311,7 +311,7 @@ detokenizer script to see logs of a lock app:
311311
python3 ../../../../../examples/platform/nxp/k32w/k32w0/scripts/detokenizer.py serial -i /dev/ttyACM0 -d out/debug/chip-k32w0x-lock-example-database.bin -o device.txt
312312
```
313313

314-
### Known issues
314+
### Known issues tokenizer
315315

316316
The building process will not update the token database if it already exists. In
317317
case that new strings are added and the database already exists in the output
@@ -382,7 +382,7 @@ below:
382382
Please note that that the Power Measurement Tool is not very accurate and
383383
professional tools must be used if exact power consumption needs to be known.
384384

385-
## Known issues
385+
## Known issues low power
386386

387387
- Power Measurement Tool may not work correctly in MCUXpresso versions greater
388388
that 11.0.1.

0 commit comments

Comments
 (0)