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

[Silabs] Add support for factory and commissionable data provisioning with the use… #34087

Merged

Conversation

jmartinez-silabs
Copy link
Member

@jmartinez-silabs jmartinez-silabs commented Jun 26, 2024

… of libraries

  • Source files in examples/platform/silabs/provision are more flexible and can be modified by users. Mostly ProvisionStorageCustom.cpp
  • provisioning Libs are taken from our matter_support submodule
  • All headers to link the libs are in src/platform/silabs/provision

On-host tool to execute the factory provisioning is not yet available on csa - comming soon TM

Copy link

github-actions bot commented Jun 26, 2024

PR #34087: Size comparison from b63c271 to 5039c17

Full report (51 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
platform target config section b63c271 5039c17 change % change
bl602 lighting-app bl602 FLASH 1270644 1270644 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284902 1284902 0 0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1309860 1309860 0 0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1091540 1091540 0 0.0
RAM 15161 15161 0 0.0
bl702+mfd FLASH 1102234 1102234 0 0.0
RAM 15313 15313 0 0.0
bl702+rpc FLASH 1181350 1181350 0 0.0
RAM 24181 24181 0 0.0
bl706-eth FLASH 874884 874884 0 0.0
RAM 27272 27272 0 0.0
bl706-wifi FLASH 1127216 1127216 0 0.0
RAM 14605 14605 0 0.0
bl702l lighting-app bl702l FLASH 1078426 1078426 0 0.0
RAM 21732 21732 0 0.0
bl702l+mfd FLASH 1089688 1089688 0 0.0
RAM 21892 21892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798072 798072 0 0.0
RAM 103096 103096 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813836 813836 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803344 803344 0 0.0
RAM 107696 107696 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756136 756136 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741816 741816 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605842 605842 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650870 650870 0 0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 665857 665857 0 0.0
RAM 75100 75100 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 685701 685701 0 0.0
RAM 77732 77732 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 685701 685701 0 0.0
RAM 77732 77732 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 642637 642637 0 0.0
RAM 70168 70168 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 608401 608401 0 0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 628037 628037 0 0.0
RAM 73356 73356 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 628037 628037 0 0.0
RAM 73356 73356 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623897 623897 0 0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643621 643621 0 0.0
RAM 76372 76372 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643621 643621 0 0.0
RAM 76372 76372 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 592469 592469 0 0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 612321 612321 0 0.0
RAM 70420 70420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 612321 612321 0 0.0
RAM 70420 70420 0 0.0
esp32 all-clusters-app c3devkit DRAM 88332 88332 0 0.0
FLASH 1468740 1468740 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114796 114796 0 0.0
FLASH 1537939 1537939 0 0.0
IRAM 125403 125403 0 0.0
linux chip-tool-ipv6only arm64 unknown 19944 19944 0 0.0
FLASH 10796004 10796004 0 0.0
RAM 590464 590464 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4167324 4167324 0 0.0
RAM 235864 235864 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502116 1502116 0 0.0
RAM 226656 226656 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 880876 880876 0 0.0
RAM 139693 139693 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 951688 951688 0 0.0
RAM 138121 138121 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 826432 826432 0 0.0
RAM 138591 138591 0 0.0
nxp contact k32w0+release FLASH 575668 575668 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590816 590816 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609744 609744 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674320 674320 0 0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613436 1613436 0 0.0
RAM 207148 207148 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534204 1534204 0 0.0
RAM 204052 204052 0 0.0
light cy8ckit_062s2_43012 FLASH 1461076 1461076 0 0.0
RAM 197332 197332 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462932 1462932 0 0.0
RAM 224396 224396 0 0.0
qpg lighting-app qpg6105+debug FLASH 650676 650676 0 0.0
RAM 104564 104564 0 0.0
lock-app qpg6105+debug FLASH 610784 610784 0 0.0
RAM 99240 99240 0 0.0
stm32 light STM32WB5MM-DK FLASH 472120 472120 0 0.0
RAM 141652 141652 0 0.0
tizen all-clusters-app arm unknown 1568 1568 0 0.0
FLASH 1633052 1633052 0 0.0
RAM 46012 46012 0 0.0
chip-tool-ubsan arm unknown 2368 2368 0 0.0
FLASH 16081646 16081646 0 0.0
RAM 7065380 7065380 0 0.0

@jmartinez-silabs jmartinez-silabs force-pushed the feature/provisioning_support branch from 5039c17 to bc70534 Compare June 26, 2024 18:57
Copy link

github-actions bot commented Jun 26, 2024

PR #34087: Size comparison from dd0c49b to bc70534

Full report (6 builds for cc32xx, mbed, stm32, tizen)
platform target config section dd0c49b bc70534 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605842 605842 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650870 650870 0 0.0
RAM 204780 204780 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502116 1502116 0 0.0
RAM 226656 226656 0 0.0
stm32 light STM32WB5MM-DK FLASH 472120 472120 0 0.0
RAM 141652 141652 0 0.0
tizen all-clusters-app arm unknown 1568 1568 0 0.0
FLASH 1633052 1633052 0 0.0
RAM 46012 46012 0 0.0
chip-tool-ubsan arm unknown 2368 2368 0 0.0
FLASH 16081646 16081646 0 0.0
RAM 7065380 7065380 0 0.0

Copy link

github-actions bot commented Jun 26, 2024

PR #34087: Size comparison from dd0c49b to dfff15e

Increases above 0.2%:

platform target config section dd0c49b dfff15e change % change
efr32 lighting-app BRD4187C FLASH 908728 923020 14292 1.6
RAM 132492 134996 2504 1.9
lock-app BRD4338a FLASH 745424 762156 16732 2.2
RAM 172300 174552 2252 1.3
window-app BRD4187C FLASH 995820 1011804 15984 1.6
RAM 127108 129616 2508 2.0
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section dd0c49b dfff15e change % change
bl602 lighting-app bl602 FLASH 1270644 1270644 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284902 1284902 0 0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1309860 1309860 0 0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1091540 1091540 0 0.0
RAM 15161 15161 0 0.0
bl702+mfd FLASH 1102234 1102234 0 0.0
RAM 15313 15313 0 0.0
bl702+rpc FLASH 1181350 1181350 0 0.0
RAM 24181 24181 0 0.0
bl706-eth FLASH 874884 874884 0 0.0
RAM 27272 27272 0 0.0
bl706-wifi FLASH 1127216 1127216 0 0.0
RAM 14605 14605 0 0.0
bl702l lighting-app bl702l FLASH 1078426 1078426 0 0.0
RAM 21732 21732 0 0.0
bl702l+mfd FLASH 1089688 1089688 0 0.0
RAM 21892 21892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798072 798072 0 0.0
RAM 103096 103096 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813836 813836 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803344 803344 0 0.0
RAM 107696 107696 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756136 756136 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741816 741816 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605842 605842 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650870 650870 0 0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 665857 665857 0 0.0
RAM 75100 75100 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 685701 685701 0 0.0
RAM 77732 77732 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 685701 685701 0 0.0
RAM 77732 77732 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 642637 642637 0 0.0
RAM 70168 70168 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 608401 608401 0 0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 628037 628037 0 0.0
RAM 73356 73356 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 628037 628037 0 0.0
RAM 73356 73356 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623897 623897 0 0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643621 643621 0 0.0
RAM 76372 76372 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643621 643621 0 0.0
RAM 76372 76372 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 592469 592469 0 0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 612321 612321 0 0.0
RAM 70420 70420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 612321 612321 0 0.0
RAM 70420 70420 0 0.0
efr32 lighting-app BRD4187C FLASH 908728 923020 14292 1.6
RAM 132492 134996 2504 1.9
lock-app BRD4338a FLASH 745424 762156 16732 2.2
RAM 172300 174552 2252 1.3
window-app BRD4187C FLASH 995820 1011804 15984 1.6
RAM 127108 129616 2508 2.0
esp32 all-clusters-app c3devkit DRAM 88332 88332 0 0.0
FLASH 1468740 1468740 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114796 114796 0 0.0
FLASH 1537939 1537939 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4560 4560 0 0.0
FLASH 2528864 2528864 0 0.0
RAM 125112 125112 0 0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5580894 5580894 0 0.0
RAM 487384 487384 0 0.0
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5051080 5051080 0 0.0
RAM 232936 232936 0 0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4477112 4477112 0 0.0
RAM 212832 212832 0 0.0
chip-tool debug unknown 5696 5696 0 0.0
FLASH 11675495 11675495 0 0.0
RAM 541578 541578 0 0.0
chip-tool-ipv6only arm64 unknown 19944 19944 0 0.0
FLASH 10796004 10796004 0 0.0
RAM 590464 590464 0 0.0
fabric-admin debug unknown 5576 5576 0 0.0
FLASH 10642007 10642007 0 0.0
RAM 535610 535610 0 0.0
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4347656 4347656 0 0.0
RAM 204960 204960 0 0.0
lighting-app debug+rpc+ui unknown 5904 5904 0 0.0
FLASH 5372706 5372706 0 0.0
RAM 221640 221640 0 0.0
lock-app debug unknown 5168 5168 0 0.0
FLASH 4540648 4540648 0 0.0
RAM 200248 200248 0 0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4196552 4196552 0 0.0
RAM 194544 194544 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4321912 4321912 0 0.0
RAM 199168 199168 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2794525 2794525 0 0.0
RAM 150480 150480 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4167324 4167324 0 0.0
RAM 235864 235864 0 0.0
tv-app debug unknown 5448 5448 0 0.0
FLASH 5593944 5593944 0 0.0
RAM 341768 341768 0 0.0
tv-casting-app debug unknown 5056 5056 0 0.0
FLASH 9859326 9859326 0 0.0
RAM 400024 400024 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502116 1502116 0 0.0
RAM 226656 226656 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 880876 880876 0 0.0
RAM 139693 139693 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 951688 951688 0 0.0
RAM 138121 138121 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 826432 826432 0 0.0
RAM 138591 138591 0 0.0
nxp contact k32w0+release FLASH 575668 575668 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590816 590816 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609744 609744 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674320 674320 0 0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613436 1613436 0 0.0
RAM 207148 207148 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534204 1534204 0 0.0
RAM 204052 204052 0 0.0
light cy8ckit_062s2_43012 FLASH 1461076 1461076 0 0.0
RAM 197332 197332 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462932 1462932 0 0.0
RAM 224396 224396 0 0.0
qpg lighting-app qpg6105+debug FLASH 650676 650676 0 0.0
RAM 104564 104564 0 0.0
lock-app qpg6105+debug FLASH 610784 610784 0 0.0
RAM 99240 99240 0 0.0
stm32 light STM32WB5MM-DK FLASH 472120 472120 0 0.0
RAM 141652 141652 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 632160 632160 0 0.0
RAM 50528 50528 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 657052 657052 0 0.0
RAM 145872 145872 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 777126 777126 0 0.0
RAM 110684 110684 0 0.0
bridge-app tlsr9258a FLASH 675144 675144 0 0.0
RAM 95304 95304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 633744 633744 0 0.0
RAM 50572 50572 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 719538 719538 0 0.0
RAM 77148 77148 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 612186 612186 0 0.0
RAM 142104 142104 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 799746 799746 0 0.0
RAM 100508 100508 0 0.0
lock-app-dfu tlsr9528a FLASH 665308 665308 0 0.0
RAM 69860 69860 0 0.0
ota-requestor-app tlsr9258a FLASH 694474 694474 0 0.0
RAM 95028 95028 0 0.0
pump-app tlsr9518adk80d FLASH 616008 616008 0 0.0
RAM 56952 56952 0 0.0
pump-controller-app tlsr9518adk80d FLASH 606392 606392 0 0.0
RAM 56752 56752 0 0.0
shell tlsr9518adk80d FLASH 466192 466192 0 0.0
RAM 72484 72484 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 640104 640104 0 0.0
RAM 52200 52200 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 650218 650218 0 0.0
RAM 60388 60388 0 0.0
thermostat tlsr9518adk80d FLASH 625282 625282 0 0.0
RAM 57084 57084 0 0.0
window-covering tlsr9118bdk40d FLASH 518734 518734 0 0.0
RAM 97800 97800 0 0.0
tizen all-clusters-app arm unknown 1568 1568 0 0.0
FLASH 1633052 1633052 0 0.0
RAM 46012 46012 0 0.0
chip-tool-ubsan arm unknown 2368 2368 0 0.0
FLASH 16081646 16081646 0 0.0
RAM 7065380 7065380 0 0.0

Copy link
Contributor

@bzbarsky-apple bzbarsky-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rubber-stamping platform-specific change with platform owner review.

@mergify mergify bot merged commit 2908685 into project-chip:master Jun 26, 2024
69 checks passed
austina-csa pushed a commit to austina-csa/connectedhomeip that referenced this pull request Jul 10, 2024
… with the use… (project-chip#34087)

* Add support factory and commissionable data provisioning with the use of librairies

* Restyled by clang-format

* remove files that are now used

* fix for wifi ncp build

* address comments

* fixup include path

---------

Co-authored-by: Restyled.io <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changing-submodules-on-purpose Marker that this PR is changing submodules (and it is not a "commit all" typo/mistake) examples platform review - approved silabs test driver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants