@@ -14,36 +14,42 @@ network.
14
14
15
15
<hr >
16
16
17
- - [ CHIP K32W0 Contact Sensor Example Application] ( #chip-k32w061-contact-sensor-example-application )
18
- - [ Introduction] ( #introduction )
19
- - [ Bluetooth LE Advertising] ( #bluetooth-le-advertising )
20
- - [ Bluetooth LE Rendezvous] ( #bluetooth-le-rendezvous )
21
- - [ Device UI] ( #device-ui )
22
- - [ Building] ( #building )
23
- - [ Overwrite board config files] ( #overwrite-board-config-files )
24
- - [ Known issues building] ( #known-issues-building )
25
- - [ Long Idle Time ICD Support] ( #long-idle-time-icd-support )
26
- - [ Manufacturing data] ( #manufacturing-data )
27
- - [ Flashing and debugging] ( #flashing-and-debugging )
28
- - [ Pigweed Tokenizer] ( #pigweed-tokenizer )
29
- - [ Detokenizer script] ( #detokenizer-script )
30
- - [ Notes] ( #notes )
31
- - [ Known issues tokenizer] ( #known-issues-tokenizer )
32
- - [ NXP Ultrafast P256 ECC Library] ( #nxp-ultrafast-p256-ecc-library )
33
- - [ Building steps] ( #building-steps )
34
- - [ Tinycrypt ECC library] ( #tinycrypt-ecc-library )
35
- - [ Building steps] ( #building-steps-1 )
36
- - [ OTA] ( #ota )
37
- - [ Writing the SSBL] ( #writing-the-ssbl )
38
- - [ Writing the PSECT] ( #writing-the-psect )
39
- - [ Writing the application] ( #writing-the-application )
40
- - [ OTA Testing] ( #ota-testing )
41
- - [ Known issues ota] ( #known-issues-ota )
42
- - [ Low power] ( #low-power )
43
- - [ Known issues low power] ( #known-issues-low-power )
44
- - [ Removing SSBL Upgrade region] ( #removing-ssbl-upgrade-region )
45
-
46
- </hr >
17
+ - [ CHIP K32W061 Contact Sensor Example Application] ( #chip-k32w061-contact-sensor-example-application )
18
+ - [ Introduction] ( #introduction )
19
+ - [ SE051H Secure Element] ( #se051h-secure-element )
20
+ - [ Bluetooth LE Advertising] ( #bluetooth-le-advertising )
21
+ - [ LIT ICD Active Mode] ( #lit-icd-active-mode )
22
+ - [ Bluetooth LE Rendezvous] ( #bluetooth-le-rendezvous )
23
+ - [ Thread Provisioning] ( #thread-provisioning )
24
+ - [ Device UI] ( #device-ui )
25
+ - [ No expansion board] ( #no-expansion-board )
26
+ - [ Building] ( #building )
27
+ - [ Long Idle Time ICD Support] ( #long-idle-time-icd-support )
28
+ - [ Overwrite board config files] ( #overwrite-board-config-files )
29
+ - [ Known issues building] ( #known-issues-building )
30
+ - [ Rotating device id] ( #rotating-device-id )
31
+ - [ Manufacturing data] ( #manufacturing-data )
32
+ - [ Flashing and debugging] ( #flashing-and-debugging )
33
+ - [ Pigweed tokenizer] ( #pigweed-tokenizer )
34
+ - [ Detokenizer script] ( #detokenizer-script )
35
+ - [ Notes] ( #notes )
36
+ - [ Known issues tokenizer] ( #known-issues-tokenizer )
37
+ - [ NXP Ultrafast P256 ECC Library] ( #nxp-ultrafast-p256-ecc-library )
38
+ - [ Building steps] ( #building-steps )
39
+ - [ Tinycrypt ECC library] ( #tinycrypt-ecc-library )
40
+ - [ Building steps] ( #building-steps-1 )
41
+ - [ OTA] ( #ota )
42
+ - [ Writing the SSBL] ( #writing-the-ssbl )
43
+ - [ Features] ( #features )
44
+ - [ Multi image] ( #multi-image )
45
+ - [ Simple hash verification] ( #simple-hash-verification )
46
+ - [ Writing the PSECT] ( #writing-the-psect )
47
+ - [ Writing the application] ( #writing-the-application )
48
+ - [ OTA Testing] ( #ota-testing )
49
+ - [ Known issues ota] ( #known-issues-ota )
50
+ - [ Low power] ( #low-power )
51
+ - [ Known issues low power] ( #known-issues-low-power )
52
+ - [ Removing SSBL Upgrade Region] ( #removing-ssbl-upgrade-region )
47
53
48
54
## Introduction
49
55
@@ -179,44 +185,47 @@ contact status.
179
185
## Building
180
186
181
187
In order to build the Project CHIP example, we recommend using a Linux
182
- distribution (the demo-application was compiled on Ubuntu 20.04).
188
+ distribution (supported Operating Systems are listed in
189
+ [ BUILDING.md] (../../../../../docs/guides/BUILDING.md#tested-operating systems)).
183
190
184
- Activate the Matter environment:
191
+ - Make sure that below prerequisites are correctly installed (as described in
192
+ [ BUILDING.md] ( ../../../../../docs/guides/BUILDING.md#prerequisites ) ))
185
193
186
- ``` bash
187
- user@ubuntu:~ /Desktop/git/connectedhomeip$ source ./scripts/activate.sh
194
+ ```
195
+ sudo apt-get install git gcc g++ pkg-config libssl-dev libdbus-1-dev \
196
+ libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev \
197
+ python3-pip unzip libgirepository1.0-dev libcairo2-dev libreadline-dev
188
198
```
189
199
190
- To bring the SDK in the environment, the user can:
200
+ - Step 1: checkout NXP specific submodules only
191
201
192
- - download it with west tool, in which case it will be handled automatically
193
- by gn:
202
+ ```
203
+ user@ubuntu:~/Desktop/git/connectedhomeip$ scripts/checkout_submodules.py --shallow --platform nxp --recursive
204
+ ```
194
205
195
- ``` bash
196
- user@ubuntu:~ /Desktop/git/connectedhomeip$ cd third_party/nxp/k32w0_sdk/repo
197
- user@ubuntu:~ /Desktop/git/connectedhomeip/third_party/nxp/k32w0_sdk/repo$ west init -l manifest --mf west.yml
198
- user@ubuntu:~ /Desktop/git/connectedhomeip/third_party/nxp/k32w0_sdk/repo$ west update
199
- ```
206
+ - Step 2: activate local environment
200
207
201
- In case there are local modification to the already installed github NXP
202
- SDK, use the below ` west forall` command instead of the ` west init` command
203
- to reset the west workspace. Warning: all local changes will be lost after
204
- running this command.
208
+ ```
209
+ user@ubuntu:~/Desktop/git/connectedhomeip$ source scripts/activate.sh
210
+ ```
205
211
206
- ` ` ` bash
207
- user@ubuntu:~ /Desktop/git/connectedhomeip$ cd third_party/nxp/k32w0_sdk/repo
208
- user@ubuntu:~ /Desktop/git/connectedhomeip/third_party/nxp/k32w0_sdk/repo$ west forall -c " git reset --hard && git clean -xdf" -a
209
- ` ` `
212
+ If the script says the environment is out of date, you can update it by running
213
+ the following command:
210
214
211
- - set up a custom path to the SDK, in which case
212
- ` k32w0_sdk_root= \" ${NXP_K32W0_SDK_ROOT} \" ` must be added to the ` gn gen `
213
- command:
215
+ ```
216
+ user@ubuntu:~/Desktop/git/connectedhomeip$ source scripts/bootstrap.sh
217
+ ```
214
218
215
- ` ` `
216
- user@ubuntu:~ /Desktop/git/connectedhomeip$ export NXP_K32W0_SDK_ROOT=/custom/path/to/SDK
217
- ` ` `
219
+ - Step 3: Init NXP SDK(s)
220
+
221
+ ```
222
+ user@ubuntu:~/Desktop/git/connectedhomeip$ scripts/setup/nxp/update_nxp_sdk.py --platform k32w0
223
+ ```
224
+
225
+ Note: By default setup/nxp/update_nxp_sdk.py will try to initialize all NXP
226
+ SDKs. Arg "-- help" could be used to view all available options.
218
227
219
- Start building the application:
228
+ - Start building the application:
220
229
221
230
``` bash
222
231
user@ubuntu:~ /Desktop/git/connectedhomeip$ cd examples/contact-sensor-app/nxp/k32w/k32w0
0 commit comments