Skip to content

Commit 4018428

Browse files
jby-nxpchapongatienmihai-ignatmarius-predamarius-alex-tache
authored andcommitted
NXP : Add support of RT1060 and RT1170 boards (project-chip#35842)
* [NXP][rt1170] Matter enablement on RT1170 It includes: - Matter port files for RT1170 - example files for Laundry-washer, thermostat and all-cluster-app - documentations Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com> [border router][rt1170] RT1170 platform and README updates to support OTBR with new OT stack version (cherry picked from commit f97d5c58c866774c787ec4417bca075ce45eece0) [platform][rt1170] Enable lwip and ephemeral key CLI addons (cherry picked from commit fb3320eabd3c3f6c8c75c4094d6426fcc0cfed57) [2.16][rt1170] SDK 2.16 rt1170 API name changed Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com> (cherry picked from commit 67f183263466267bc1c7da6fd3a05743fd268ea2) Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com> [examples][rt1170] Enable Disgnostic log for thermostat app Signed-off-by: Martin Girardot <martin.girardot@nxp.com> (cherry picked from commit cce6267446d035e7966c7f5f17d112fb5f1557c5) [platform][rt1170] Rename rt_nvm_component to nxp_nvm_component Signed-off-by: Dina Benamar <dina.benamarelmaaroufi@nxp.com> (cherry picked from commit f5fb5f4e8b2be45fc97c2a7c7a2d5a453adf9b34) [doc][rt1170] update OTA guidelines to generate mcuboot binary (cherry picked from commit 27f58810a07343234d0d884f385eb407998a9220) * [NXP][rt1060] Adding RT1060 Matter support It includes following changes: - Matter port files for RT1060 - examples support for Laundry-washer, thermostat and all-cluster-app - Support for configurations: RT1060 evkb+8801, RT1060 evkb+IW416, RT1060 evkc+IW612 and RT1060 evkb+k32w0 Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com> [platform][rt1060] Rename rt_nvm_component to nxp_nvm_component Signed-off-by: Dina Benamar <dina.benamarelmaaroufi@nxp.com> (cherry picked from commit 316450da02b365aa61bcb53a0dc6b50512fb6435) [border router][rt1060] RT1060 platform and README updates to support OTBR with new OT stack version (cherry picked from commit 231a4c15c4abca40d5759194fb61b9636c8f67e8) [platform][rt1060] Enable lwip and ephemeral key CLI addons (cherry picked from commit 463749a12abcc68fc5f6569f98c27b574b3516bd) [2.16][rt1060] SDK 2.16 rt1060 API name changed Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com> (cherry picked from commit 42f7d8771329172aaeedfde1b2bab86b1799f6d9) [examples][rt1060] Enable Diagnostic log for thermostat app Signed-off-by: Martin Girardot <martin.girardot@nxp.com> (cherry picked from commit 7c4cbeb41d3a00ec90525bb084f7bc278d5ecb8e) * [NXP][rt1060][doc] Update WiFi build instructions * [NXP][border router][rt1060] Platform updates to support TBR cluster and secondary nwk if A new gn variable was created, chip_enable_secondary_nwk_if, to enable or disable Thread as secondary network commissioning interface when building with BR support. * [NXP][border router][rt1170] Platform updates to support TBR cluster and secondary nwk if A new gn variable was created, chip_enable_secondary_nwk_if, to enable or disable Thread as secondary network commissioning interface when building with BR support. * [NXP] Add targets RT1060 and RT1170 to NXP builds * [NXP][OTA][doc] update OTA doc for RTs boards * [NXP][border router][rt1060] fix compilation issue * [NXP][border router][rt1170] fix compilation issue * [NXP][doc][rt1060] minor changes * [NXP] [rt1060] OTA requestor enablement on RT1060-EVKC+Firecrest * [NXP] Add OTA variant to RT1060 and RT1170 builds * [NXP][doc][rt] changes since workflow feedback * [NXP][examples][rt1060] Update empty button registration path Signed-off-by: marius-alex-tache <marius.tache@nxp.com> * [NXP][examples][rt1170] Update empty button registration path Signed-off-by: marius-alex-tache <marius.tache@nxp.com> * [NXP] [gn] Restyle gn files * [NXP][doc] Restyle md files * [NXP] Restyle build scripts * [NXP][RT] fix OTBR compile issue * [NXP][RT][doc] rework documentation * [NXP] Reduce and collapse NXP targets list * [NXP] filter which target to be build on PR * [NXP] [rt1170] remove useless flag * [NXP] [rt1060] remove useless flag * [NXP] [doc] fix path to referenced docs since NXP documentation moved --------- Signed-off-by: marius-alex-tache <marius.tache@nxp.com> Co-authored-by: Gatien Chapon <gatien.chapon@nxp.com> Co-authored-by: Mihai Ignat <mihai.ignat@nxp.com> Co-authored-by: Marius Preda <marius.preda@nxp.com> Co-authored-by: marius-alex-tache <marius.tache@nxp.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 505797b commit 4018428

File tree

99 files changed

+7602
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+7602
-192
lines changed

.github/.wordlist.txt

+3
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ isUpperCase
735735
itemName
736736
iterable
737737
itsfoss
738+
IW
738739
JDK
739740
jinja
740741
JLink
@@ -893,6 +894,7 @@ microcontroller
893894
microcontrollers
894895
MicroSD
895896
middleware
897+
MIMXRT
896898
minApplicableSoftwareVersion
897899
Minicom
898900
MinInterval
@@ -924,6 +926,7 @@ Multicast
924926
multilib
925927
Multiprotocol
926928
multithreaded
929+
Murata
927930
mutex
928931
mutexes
929932
mv

.github/workflows/examples-nxp.yaml

+104-137
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ env:
3030
CHIP_NO_LOG_TIMESTAMPS: true
3131

3232
jobs:
33-
k32w0:
34-
name: K32W0
33+
FreeRTOS:
34+
name: FREERTOS
3535

3636
env:
37-
BUILD_TYPE: gn_k32w
37+
BUILD_TYPE: gn_FreeRTOS
3838

3939
runs-on: ubuntu-latest
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build-nxp:80
43+
image: ghcr.io/project-chip/chip-build-nxp:81
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646
steps:
@@ -50,229 +50,189 @@ jobs:
5050
uses: ./.github/actions/checkout-submodules-and-bootstrap
5151
with:
5252
platform: nxp
53+
extra-submodule-parameters: --recursive
54+
55+
- name: Detect changed paths
56+
uses: dorny/paths-filter@v3
57+
id: changed_paths
58+
with:
59+
filters: |
60+
nxp:
61+
- '**/nxp/**'
5362
5463
- name: Set up environment for size reports
5564
uses: ./.github/actions/setup-size-reports
5665
if: ${{ !env.ACT }}
5766
with:
5867
gh-context: ${{ toJson(github) }}
5968

60-
- name: Build examples
69+
- name: Build K32W0 examples
6170
run: |
6271
scripts/run_in_build_env.sh "\
6372
./scripts/build/build_examples.py \
64-
--target nxp-k32w0-freertos-lighting \
6573
--target nxp-k32w0-freertos-lighting-factory \
66-
--target nxp-k32w0-freertos-lighting-rotating-id \
67-
--target nxp-k32w0-freertos-contact-sensor \
68-
--target nxp-k32w0-freertos-contact-sensor-low-power \
6974
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
7075
build \
7176
--copy-artifacts-to out/artifacts \
7277
"
73-
- name: Get lighting app size stats
78+
- name: Get K32W0 lighting app size stats
7479
run: |
7580
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
7681
nxp k32w0+release light \
77-
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
82+
out/artifacts/nxp-k32w0-freertos-lighting-factory/chip-k32w0x-light-example.elf \
7883
/tmp/bloat_reports/
79-
- name: Get contact sensor size stats
84+
- name: Get K32W0 contact sensor size stats
8085
run: |
8186
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
8287
nxp k32w0+release contact \
83-
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
88+
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power-factory/chip-k32w0x-contact-example.elf \
8489
/tmp/bloat_reports/
85-
- name: Uploading Size Reports
86-
uses: ./.github/actions/upload-size-reports
87-
if: ${{ !env.ACT }}
88-
with:
89-
platform-name: K32W0
90-
k32w1:
91-
name: K32W1
92-
93-
env:
94-
BUILD_TYPE: gn_k32w
95-
96-
runs-on: ubuntu-latest
97-
if: github.actor != 'restyled-io[bot]'
98-
99-
container:
100-
image: ghcr.io/project-chip/chip-build-nxp:81
101-
volumes:
102-
- "/tmp/bloat_reports:/tmp/bloat_reports"
103-
steps:
104-
- name: Checkout
105-
uses: actions/checkout@v4
106-
- name: Checkout submodules & Bootstrap
107-
uses: ./.github/actions/checkout-submodules-and-bootstrap
108-
with:
109-
platform: nxp
110-
extra-submodule-parameters: --recursive
11190
112-
- name: Set up environment for size reports
113-
uses: ./.github/actions/setup-size-reports
114-
if: ${{ !env.ACT }}
115-
with:
116-
gh-context: ${{ toJson(github) }}
91+
- name: clean build
92+
run: rm -rf ./out
11793

118-
- name: Build examples
94+
- name: Build K32W1 examples
11995
run: |
12096
scripts/run_in_build_env.sh "\
12197
./scripts/build/build_examples.py \
12298
--target nxp-k32w1-freertos-lighting \
123-
--target nxp-k32w1-freertos-contact-sensor-low-power \
124-
--target nxp-k32w1-freertos-lock-app \
12599
build \
126100
--copy-artifacts-to out/artifacts \
127101
"
128-
- name: Get lighting app size stats
102+
- name: Get K32W1 lighting app size stats
129103
run: |
130104
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
131105
nxp k32w1+release light \
132106
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
133107
/tmp/bloat_reports/
134-
- name: Get contact sensor size stats
135-
run: |
136-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
137-
nxp k32w1+release contact \
138-
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
139-
/tmp/bloat_reports/
140-
- name: Get lock app size stats
141-
run: |
142-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
143-
nxp k32w1+release lock \
144-
out/artifacts/nxp-k32w1-freertos-lock-app/chip-k32w1-lock-example.elf \
145-
/tmp/bloat_reports/
146-
- name: Uploading Size Reports
147-
uses: ./.github/actions/upload-size-reports
148-
if: ${{ !env.ACT }}
149-
with:
150-
platform-name: K32W1
151-
mcxw71:
152-
name: MCXW71
153108
154-
env:
155-
BUILD_TYPE: gn_k32w
109+
- name: clean build
110+
run: rm -rf ./out
156111

157-
runs-on: ubuntu-latest
158-
if: github.actor != 'restyled-io[bot]'
159-
160-
container:
161-
image: ghcr.io/project-chip/chip-build-nxp:81
162-
volumes:
163-
- "/tmp/bloat_reports:/tmp/bloat_reports"
164-
steps:
165-
- name: Checkout
166-
uses: actions/checkout@v4
167-
- name: Checkout submodules & Bootstrap
168-
uses: ./.github/actions/checkout-submodules-and-bootstrap
169-
with:
170-
platform: nxp
171-
extra-submodule-parameters: --recursive
172-
173-
- name: Set up environment for size reports
174-
uses: ./.github/actions/setup-size-reports
175-
if: ${{ !env.ACT }}
176-
with:
177-
gh-context: ${{ toJson(github) }}
178-
179-
- name: Build examples
112+
- name: Build MCXW71 examples
180113
run: |
181114
scripts/run_in_build_env.sh "\
182115
./scripts/build/build_examples.py \
183-
--target nxp-mcxw71-freertos-lighting \
184116
--target nxp-mcxw71-freertos-contact-sensor-low-power \
185117
--target nxp-mcxw71-freertos-lock-app \
186118
build \
187119
--copy-artifacts-to out/artifacts \
188120
"
189-
- name: Get lighting app size stats
190-
run: |
191-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
192-
nxp mcxw71+release light \
193-
out/artifacts/nxp-mcxw71-freertos-lighting/chip-mcxw71-light-example.elf \
194-
/tmp/bloat_reports/
195-
- name: Get contact sensor size stats
121+
- name: Get MCXW71 contact sensor size stats
196122
run: |
197123
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
198124
nxp mcxw71+release contact \
199125
out/artifacts/nxp-mcxw71-freertos-contact-sensor-low-power/chip-mcxw71-contact-example.elf \
200126
/tmp/bloat_reports/
201-
- name: Get lock app size stats
127+
- name: Get MCXW71 lock app size stats
202128
run: |
203129
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
204130
nxp mcxw71+release lock \
205131
out/artifacts/nxp-mcxw71-freertos-lock-app/chip-mcxw71-lock-example.elf \
206132
/tmp/bloat_reports/
207-
- name: Uploading Size Reports
208-
uses: ./.github/actions/upload-size-reports
209-
if: ${{ !env.ACT }}
210-
with:
211-
platform-name: MCXW71
212-
rw61x:
213-
name: RW61X
214133
215-
env:
216-
BUILD_TYPE: gn_rw61x
134+
- name: clean build
135+
run: rm -rf ./out
217136

218-
runs-on: ubuntu-latest
219-
if: github.actor != 'restyled-io[bot]'
137+
- name: Build RT1060 all clusters example app
138+
run: |
139+
scripts/run_in_build_env.sh "\
140+
./scripts/build/build_examples.py \
141+
--target nxp-rt1060-freertos-all-clusters-wifi-iw416 \
142+
--target nxp-rt1060-freertos-all-clusters-wifi-w8801 \
143+
--target nxp-rt1060-freertos-all-clusters-wifi-ota-evkc-iwx12 \
144+
build \
145+
--copy-artifacts-to out/artifacts \
146+
"
147+
- name: Build RT1060 thermostat example app
148+
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
149+
run: |
150+
scripts/run_in_build_env.sh "\
151+
./scripts/build/build_examples.py \
152+
--target nxp-rt1060-freertos-thermostat-thread-wifi-evkc-iwx12 \
153+
build \
154+
--copy-artifacts-to out/artifacts \
155+
"
156+
- name: Build RT1060 laundry-washer example app
157+
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
158+
run: |
159+
scripts/run_in_build_env.sh "\
160+
./scripts/build/build_examples.py \
161+
--target nxp-rt1060-freertos-laundry-washer-wifi-evkc-iwx12 \
162+
--target nxp-rt1060-freertos-laundry-washer-thread-evkc-iwx12 \
163+
build \
164+
--copy-artifacts-to out/artifacts \
165+
"
220166
221-
container:
222-
image: ghcr.io/project-chip/chip-build-nxp:81
223-
volumes:
224-
- "/tmp/bloat_reports:/tmp/bloat_reports"
225-
steps:
226-
- name: Checkout
227-
uses: actions/checkout@v4
228-
- name: Checkout submodules & Bootstrap
229-
uses: ./.github/actions/checkout-submodules-and-bootstrap
230-
with:
231-
platform: nxp
232-
extra-submodule-parameters: --recursive
167+
- name: clean build
168+
run: rm -rf ./out
233169

234-
- name: Set up environment for size reports
235-
uses: ./.github/actions/setup-size-reports
236-
if: ${{ !env.ACT }}
237-
with:
238-
gh-context: ${{ toJson(github) }}
170+
- name: Build RT1170 all clusters example app
171+
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
172+
run: |
173+
scripts/run_in_build_env.sh "\
174+
./scripts/build/build_examples.py \
175+
--target nxp-rt1170-freertos-all-clusters-wifi-iwx12 \
176+
--target nxp-rt1170-freertos-all-clusters-wifi-ota-iwx12 \
177+
build \
178+
--copy-artifacts-to out/artifacts \
179+
"
180+
- name: Build RT1170 thermostat example app
181+
run: |
182+
scripts/run_in_build_env.sh "\
183+
./scripts/build/build_examples.py \
184+
--target nxp-rt1170-freertos-thermostat-thread-wifi-iwx12 \
185+
build \
186+
--copy-artifacts-to out/artifacts \
187+
"
188+
- name: Build RT1170 laundry-washer example app
189+
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
190+
run: |
191+
scripts/run_in_build_env.sh "\
192+
./scripts/build/build_examples.py \
193+
--target nxp-rt1170-freertos-laundry-washer-thread-iwx12 \
194+
build \
195+
--copy-artifacts-to out/artifacts \
196+
"
197+
198+
- name: clean build
199+
run: rm -rf ./out
239200

240201
- name: Build RW61X all clusters example app
241202
run: |
242203
scripts/run_in_build_env.sh "\
243204
./scripts/build/build_examples.py \
244205
--target nxp-rw61x-freertos-all-clusters-wifi \
245-
--target nxp-rw61x-freertos-all-clusters-thread \
246206
--target nxp-rw61x-freertos-all-clusters-wifi-ota-cmake \
247207
build \
248208
--copy-artifacts-to out/artifacts \
249209
"
250-
251210
- name: Build RW61X thermostat example app
252211
run: |
253212
scripts/run_in_build_env.sh "\
254213
./scripts/build/build_examples.py \
255-
--target nxp-rw61x-freertos-thermostat-wifi \
256-
--target nxp-rw61x-freertos-thermostat-thread \
257214
--target nxp-rw61x-freertos-thermostat-thread-wifi \
258215
build \
259216
--copy-artifacts-to out/artifacts \
260217
"
261-
262218
- name: Build RW61X laundry-washer example app
219+
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
263220
run: |
264221
scripts/run_in_build_env.sh "\
265222
./scripts/build/build_examples.py \
266223
--target nxp-rw61x-freertos-laundry-washer-wifi \
267-
--target nxp-rw61x-freertos-laundry-washer-thread \
268224
build \
269225
--copy-artifacts-to out/artifacts \
270226
"
227+
228+
- name: clean build
229+
run: rm -rf ./out
230+
271231
- name: Uploading Size Reports
272232
uses: ./.github/actions/upload-size-reports
273233
if: ${{ !env.ACT }}
274234
with:
275-
platform-name: RW61X
235+
platform-name: NXP-FREERTOS
276236
zephyr:
277237
name: ZEPHYR
278238

@@ -289,8 +249,15 @@ jobs:
289249
uses: ./.github/actions/checkout-submodules-and-bootstrap
290250
with:
291251
platform: nxp
292-
252+
- name: Detect changed paths
253+
uses: dorny/paths-filter@v3
254+
id: changed_paths
255+
with:
256+
filters: |
257+
nxp:
258+
- '**/nxp/**'
293259
- name: Build NXP Zephyr examples
260+
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
294261
run: |
295262
scripts/run_in_build_env.sh "\
296263
./scripts/build/build_examples.py \

docs/platforms/nxp/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
- [NXP - Android Commissioning](nxp_k32w_android_commissioning.md)
1111
- [NXP - Linux Examples](nxp_imx8m_linux_examples.md)
1212
- [NXP - Manufacturing Data](nxp_manufacturing_flow.md)
13-
- [NXP - RW61x OTA Software Update Guide](nxp_rw61x_ota_software_update.md)
13+
- [NXP - RTs OTA Software Update Guide](nxp_RTs_ota_software_update.md)
1414
- [NXP - Zephyr OTA Software Update Guide](nxp_zephyr_ota_software_update.md)

0 commit comments

Comments
 (0)