Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NXP : Add support of RT1060 and RT1170 boards #35842

Merged
merged 25 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
44b2557
[NXP][rt1170] Matter enablement on RT1170
chapongatien Jul 19, 2024
cc19742
[NXP][rt1060] Adding RT1060 Matter support
chapongatien Jul 19, 2024
8376194
[NXP][rt1060][doc] Update WiFi build instructions
mihai-ignat Sep 9, 2024
0612ffe
[NXP][border router][rt1060] Platform updates to support TBR cluster …
marius-preda Jul 26, 2024
5626b68
[NXP][border router][rt1170] Platform updates to support TBR cluster …
marius-preda Jul 26, 2024
5a25239
[NXP] Add targets RT1060 and RT1170 to NXP builds
jby-nxp Sep 23, 2024
cbb19af
[NXP][OTA][doc] update OTA doc for RTs boards
jby-nxp Sep 24, 2024
d409ebd
[NXP][border router][rt1060] fix compilation issue
jby-nxp Sep 27, 2024
eb8e86e
[NXP][border router][rt1170] fix compilation issue
jby-nxp Sep 27, 2024
8b99909
[NXP][doc][rt1060] minor changes
jby-nxp Sep 27, 2024
a0fdfcb
[NXP] [rt1060] OTA requestor enablement on RT1060-EVKC+Firecrest
jby-nxp Aug 23, 2024
0647068
[NXP] Add OTA variant to RT1060 and RT1170 builds
jby-nxp Sep 30, 2024
229bf2c
[NXP][doc][rt] changes since workflow feedback
jby-nxp Oct 3, 2024
8b09b01
[NXP][examples][rt1060] Update empty button registration path
marius-alex-tache Sep 20, 2024
765211a
[NXP][examples][rt1170] Update empty button registration path
marius-alex-tache Sep 20, 2024
e3c3265
[NXP] [gn] Restyle gn files
restyled-commits Oct 3, 2024
5b98902
[NXP][doc] Restyle md files
restyled-commits Oct 3, 2024
4f672fc
[NXP] Restyle build scripts
restyled-commits Oct 3, 2024
f45e55d
[NXP][RT] fix OTBR compile issue
jby-nxp Oct 7, 2024
5819db1
[NXP][RT][doc] rework documentation
jby-nxp Oct 7, 2024
424fdd7
[NXP] Reduce and collapse NXP targets list
jby-nxp Oct 8, 2024
93ad36f
[NXP] filter which target to be build on PR
jby-nxp Oct 11, 2024
1e916b1
[NXP] [rt1170] remove useless flag
jby-nxp Oct 15, 2024
cb0e955
[NXP] [rt1060] remove useless flag
jby-nxp Oct 15, 2024
c46df6c
[NXP] [doc] fix path to referenced docs since NXP documentation moved
jby-nxp Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ isUpperCase
itemName
iterable
itsfoss
IW
JDK
jinja
JLink
Expand Down Expand Up @@ -893,6 +894,7 @@ microcontroller
microcontrollers
MicroSD
middleware
MIMXRT
minApplicableSoftwareVersion
Minicom
MinInterval
Expand Down Expand Up @@ -924,6 +926,7 @@ Multicast
multilib
Multiprotocol
multithreaded
Murata
mutex
mutexes
mv
Expand Down
241 changes: 104 additions & 137 deletions .github/workflows/examples-nxp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ env:
CHIP_NO_LOG_TIMESTAMPS: true

jobs:
k32w0:
name: K32W0
FreeRTOS:
name: FREERTOS

env:
BUILD_TYPE: gn_k32w
BUILD_TYPE: gn_FreeRTOS

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

container:
image: ghcr.io/project-chip/chip-build-nxp:80
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
Expand All @@ -50,229 +50,189 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Detect changed paths
uses: dorny/paths-filter@v3
id: changed_paths
with:
filters: |
nxp:
- '**/nxp/**'

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
- name: Build K32W0 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-k32w0-freertos-lighting \
--target nxp-k32w0-freertos-lighting-factory \
--target nxp-k32w0-freertos-lighting-rotating-id \
--target nxp-k32w0-freertos-contact-sensor \
--target nxp-k32w0-freertos-contact-sensor-low-power \
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
- name: Get K32W0 lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w0+release light \
out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
out/artifacts/nxp-k32w0-freertos-lighting-factory/chip-k32w0x-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
- name: Get K32W0 contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w0+release contact \
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power-factory/chip-k32w0x-contact-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: K32W0
k32w1:
name: K32W1

env:
BUILD_TYPE: gn_k32w

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

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: clean build
run: rm -rf ./out

- name: Build examples
- name: Build K32W1 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-k32w1-freertos-lighting \
--target nxp-k32w1-freertos-contact-sensor-low-power \
--target nxp-k32w1-freertos-lock-app \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
- name: Get K32W1 lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release light \
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release contact \
out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
/tmp/bloat_reports/
- name: Get lock app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp k32w1+release lock \
out/artifacts/nxp-k32w1-freertos-lock-app/chip-k32w1-lock-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: K32W1
mcxw71:
name: MCXW71

env:
BUILD_TYPE: gn_k32w
- name: clean build
run: rm -rf ./out

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

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
- name: Build MCXW71 examples
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-mcxw71-freertos-lighting \
--target nxp-mcxw71-freertos-contact-sensor-low-power \
--target nxp-mcxw71-freertos-lock-app \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lighting app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release light \
out/artifacts/nxp-mcxw71-freertos-lighting/chip-mcxw71-light-example.elf \
/tmp/bloat_reports/
- name: Get contact sensor size stats
- name: Get MCXW71 contact sensor size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release contact \
out/artifacts/nxp-mcxw71-freertos-contact-sensor-low-power/chip-mcxw71-contact-example.elf \
/tmp/bloat_reports/
- name: Get lock app size stats
- name: Get MCXW71 lock app size stats
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
nxp mcxw71+release lock \
out/artifacts/nxp-mcxw71-freertos-lock-app/chip-mcxw71-lock-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: MCXW71
rw61x:
name: RW61X

env:
BUILD_TYPE: gn_rw61x
- name: clean build
run: rm -rf ./out

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
- name: Build RT1060 all clusters example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-all-clusters-wifi-iw416 \
--target nxp-rt1060-freertos-all-clusters-wifi-w8801 \
--target nxp-rt1060-freertos-all-clusters-wifi-ota-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1060 thermostat example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-thermostat-thread-wifi-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1060 laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1060-freertos-laundry-washer-wifi-evkc-iwx12 \
--target nxp-rt1060-freertos-laundry-washer-thread-evkc-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"

container:
image: ghcr.io/project-chip/chip-build-nxp:81
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp
extra-submodule-parameters: --recursive
- name: clean build
run: rm -rf ./out

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
with:
gh-context: ${{ toJson(github) }}
- name: Build RT1170 all clusters example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-all-clusters-wifi-iwx12 \
--target nxp-rt1170-freertos-all-clusters-wifi-ota-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1170 thermostat example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-thermostat-thread-wifi-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"
- name: Build RT1170 laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rt1170-freertos-laundry-washer-thread-iwx12 \
build \
--copy-artifacts-to out/artifacts \
"

- name: clean build
run: rm -rf ./out

- name: Build RW61X all clusters example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-all-clusters-wifi \
--target nxp-rw61x-freertos-all-clusters-thread \
--target nxp-rw61x-freertos-all-clusters-wifi-ota-cmake \
build \
--copy-artifacts-to out/artifacts \
"

- name: Build RW61X thermostat example app
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-thermostat-wifi \
--target nxp-rw61x-freertos-thermostat-thread \
--target nxp-rw61x-freertos-thermostat-thread-wifi \
build \
--copy-artifacts-to out/artifacts \
"

- name: Build RW61X laundry-washer example app
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target nxp-rw61x-freertos-laundry-washer-wifi \
--target nxp-rw61x-freertos-laundry-washer-thread \
build \
--copy-artifacts-to out/artifacts \
"

- name: clean build
run: rm -rf ./out

- name: Uploading Size Reports
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
platform-name: RW61X
platform-name: NXP-FREERTOS
zephyr:
name: ZEPHYR

Expand All @@ -289,8 +249,15 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: nxp

- name: Detect changed paths
uses: dorny/paths-filter@v3
id: changed_paths
with:
filters: |
nxp:
- '**/nxp/**'
- name: Build NXP Zephyr examples
if: github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/nxp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
- [NXP - Android Commissioning](nxp_k32w_android_commissioning.md)
- [NXP - Linux Examples](nxp_imx8m_linux_examples.md)
- [NXP - Manufacturing Data](nxp_manufacturing_flow.md)
- [NXP - RW61x OTA Software Update Guide](nxp_rw61x_ota_software_update.md)
- [NXP - RTs OTA Software Update Guide](nxp_RTs_ota_software_update.md)
- [NXP - Zephyr OTA Software Update Guide](nxp_zephyr_ota_software_update.md)
Loading
Loading