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

[K32W0] SDK 2.6.9 platform updates #24691

Merged
merged 19 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,7 @@ ug
ui
uint
ULA
Ultrafast
UNBLUR
uncommissioned
Unencrypted
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
k32w:
name: K32W
timeout-minutes: 60
timeout-minutes: 90

env:
BUILD_TYPE: gn_k32w
Expand All @@ -37,7 +37,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-k32w:0.6.35
image: connectedhomeip/chip-build-k32w:0.6.36
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
steps:
Expand Down Expand Up @@ -75,10 +75,12 @@ jobs:
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target k32w-light-no-ble-se05x \
--target k32w-light-no-ota \
--target k32w-lock-low-power-nologs \
--target k32w-contact-low-power-nologs \
--target k32w-shell \
--target k32w-light-crypto-platform-tokenizer \
--target k32w-lock-crypto-platform-tokenizer \
--target k32w-lock-crypto-platform-low-power-nologs \
--target k32w-contact-crypto-platform-tokenizer \
--target k32w-contact-crypto-platform-low-power-nologs \
--target k32w-shell-crypto-platform \
build \
--copy-artifacts-to out/artifacts \
"
Expand All @@ -87,21 +89,21 @@ jobs:
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release light \
out/artifacts/k32w-light-no-ota/chip-k32w0x-light-example \
out/artifacts/k32w-light-crypto-platform-tokenizer/chip-k32w0x-light-example \
/tmp/bloat_reports/
- name: Get lock size stats
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release lock \
out/artifacts/k32w-lock-low-power-nologs/chip-k32w0x-lock-example \
out/artifacts/k32w-lock-crypto-platform-tokenizer/chip-k32w0x-lock-example \
/tmp/bloat_reports/
- name: Get contact size stats
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release contact \
out/artifacts/k32w-contact-low-power-nologs/chip-k32w0x-contact-example \
out/artifacts/k32w-contact-crypto-platform-tokenizer/chip-k32w0x-contact-example \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
Expand Down
5 changes: 0 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,6 @@
path = third_party/nxp/mw320_sdk/repo
url = https://github.com/nxptest/mw320_sdk
platforms = mw320
[submodule "third_party/nxp/libs/mbedtls/repo"]
path = third_party/nxp/libs/mbedtls/repo
url = https://github.com/NXPmicro/mbedtls.git
branch = tinycrypt-mbedtls-2.28
platforms = k32w0
[submodule "third_party/silabs/matter_support"]
path = third_party/silabs/matter_support
url = https://github.com/SiliconLabs/sdk_support.git
Expand Down
50 changes: 42 additions & 8 deletions examples/contact-sensor-app/nxp/k32w/k32w0/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import("${chip_root}/src/crypto/crypto.gni")
import("${chip_root}/src/lib/core/core.gni")
import("${chip_root}/src/platform/device.gni")

declare_args() {
chip_software_version = 0
}

if (chip_pw_tokenizer_logging) {
import("//build_overrides/pigweed.gni")
import("$dir_pw_tokenizer/database.gni")
Expand Down Expand Up @@ -50,6 +54,7 @@ k32w0_sdk("sdk") {
"${k32w0_platform_dir}/app/project_include",
"${k32w0_platform_dir}/app/support",
"${k32w0_platform_dir}/util/include",
"${k32w0_platform_dir}/common",
]

if (chip_with_se05x == 1) {
Expand All @@ -62,6 +67,12 @@ k32w0_sdk("sdk") {
} else {
defines += [ "BUILD_RELEASE=1" ]
}

if (chip_software_version != 0) {
defines += [
"CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION=${chip_software_version}",
]
}
}

k32w0_executable("contact_sensor_app") {
Expand All @@ -79,6 +90,18 @@ k32w0_executable("contact_sensor_app") {
"main/main.cpp",
]

if (chip_with_factory_data == 1 && use_custom_factory_provider == 1) {
sources += [
"${k32w0_platform_dir}/common/CustomFactoryDataProvider.cpp",
"${k32w0_platform_dir}/common/CustomFactoryDataProvider.h",
]

defines = [
"CHIP_DEVICE_CONFIG_USE_CUSTOM_PROVIDER=1",
"CHIP_DEVICE_CONFIG_CUSTOM_PROVIDER_NUMBER_IDS=3",
]
}

deps = [
":sdk",
"${chip_root}/examples/common/QRCode",
Expand Down Expand Up @@ -109,16 +132,27 @@ k32w0_executable("contact_sensor_app") {

inputs = [ ldscript ]

ldflags = [ "-T" + rebase_path(ldscript, root_build_dir) ]
ldflags = [
"-T" + rebase_path(ldscript, root_build_dir),
"-Wl,-print-memory-usage",
]

if (chip_enable_ota_requestor) {
ldflags += [
"-Wl,--defsym",
"-Wl,__app_load_address__=0x4000",
"-Wl,--defsym",
"-Wl,__app_stated_size__=0x99200",
"-Wl,-print-memory-usage",
]
if (chip_reduce_ssbl_size) {
ldflags += [
"-Wl,--defsym",
"-Wl,__app_load_address__=0x2000",
"-Wl,--defsym",
"-Wl,__app_stated_size__=0x9B200",
]
} else {
ldflags += [
"-Wl,--defsym",
"-Wl,__app_load_address__=0x4000",
"-Wl,--defsym",
"-Wl,__app_stated_size__=0x99200",
]
}
}
}

Expand Down
Loading