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] Refactor RCP WiFi initialization to remove platform-specific dependencies and unify initialization function #37135

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rosahay-silabs
Copy link
Contributor

@rosahay-silabs rosahay-silabs commented Jan 21, 2025

Changelog

Refactor WiFi initialization to remove platform-specific dependencies and unify initialization function

Testing

Manually build the RCP combinations for RS9116, RCP 917, RCP WF200 with EFR32MG24.
Tested commissioning flow with RCP 917, RCP WF200 with EFR32MG24.

Copy link

Review changes with  SemanticDiff

@rosahay-silabs rosahay-silabs changed the title Changes the WiFi initialization for RCP modules [Silabs] Changes the WiFi initialization for RCP modules Jan 21, 2025
Copy link

github-actions bot commented Jan 21, 2025

PR #37135: Size comparison from 8370039 to e489f7b

Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 8370039 e489f7b change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1092018 1092018 0 0.0
RAM 103258 103258 0 0.0
bl702 lighting-app bl702+eth FLASH 650236 650236 0 0.0
RAM 25265 25265 0 0.0
bl702+wifi FLASH 828106 828106 0 0.0
RAM 13981 13981 0 0.0
bl706+mfd+rpc+littlefs FLASH 1055136 1055136 0 0.0
RAM 23845 23845 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 888134 888134 0 0.0
RAM 18504 18504 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 971120 971120 0 0.0
RAM 16368 16368 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838024 838024 0 0.0
RAM 123448 123448 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823452 823452 0 0.0
RAM 125320 125320 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770636 770636 0 0.0
RAM 113804 113804 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754888 754888 0 0.0
RAM 114012 114012 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 538433 538433 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 572369 572369 0 0.0
RAM 205320 205320 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679473 679473 0 0.0
RAM 78508 78508 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699317 699317 0 0.0
RAM 81148 81148 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699317 699317 0 0.0
RAM 81148 81148 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656253 656253 0 0.0
RAM 73576 73576 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615833 615833 0 0.0
RAM 71492 71492 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635461 635461 0 0.0
RAM 74036 74036 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635461 635461 0 0.0
RAM 74036 74036 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635329 635329 0 0.0
RAM 74500 74500 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655045 655045 0 0.0
RAM 77044 77044 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655045 655045 0 0.0
RAM 77044 77044 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611773 611773 0 0.0
RAM 68588 68588 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631633 631633 0 0.0
RAM 71228 71228 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631633 631633 0 0.0
RAM 71228 71228 0 0.0
efr32 lock-app BRD4187C FLASH 934704 934704 0 0.0
RAM 159904 159904 0 0.0
BRD4338a FLASH 729580 729524 -56 -0.0
RAM 234748 234744 -4 -0.0
window-app BRD4187C FLASH 1029288 1029280 -8 -0.0
RAM 128008 128008 0 0.0
esp32 all-clusters-app c3devkit DRAM 95088 95088 0 0.0
FLASH 1536886 1536886 0 0.0
IRAM 82552 82552 0 0.0
m5stack DRAM 116076 116076 0 0.0
FLASH 1544970 1544970 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4752 4752 0 0.0
FLASH 2708845 2708845 0 0.0
RAM 132800 132800 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5974698 5974698 0 0.0
RAM 531520 531520 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5322484 5322484 0 0.0
RAM 242632 242632 0 0.0
bridge-app debug unknown 5472 5472 0 0.0
FLASH 4680640 4680640 0 0.0
RAM 221368 221368 0 0.0
chip-tool debug unknown 5984 5984 0 0.0
FLASH 13046528 13046528 0 0.0
RAM 596178 596178 0 0.0
chip-tool-ipv6only arm64 unknown 21776 21776 0 0.0
FLASH 1112372 1112372 0 0.0
RAM 647920 647920 0 0.0
fabric-admin debug unknown 5808 5808 0 0.0
FLASH 11393503 11393503 0 0.0
RAM 596522 596522 0 0.0
fabric-bridge-app debug unknown 4728 4728 0 0.0
FLASH 4506068 4506068 0 0.0
RAM 208552 208552 0 0.0
fabric-sync debug unknown 4968 4968 0 0.0
FLASH 5611141 5611141 0 0.0
RAM 483424 483424 0 0.0
lighting-app debug+rpc+ui unknown 6136 6136 0 0.0
FLASH 5615681 5615681 0 0.0
RAM 231648 231648 0 0.0
lock-app debug unknown 5408 5408 0 0.0
FLASH 4730586 4730586 0 0.0
RAM 207616 207616 0 0.0
ota-provider-app debug unknown 4768 4768 0 0.0
FLASH 4359432 4359432 0 0.0
RAM 201352 201352 0 0.0
ota-requestor-app debug unknown 4720 4720 0 0.0
FLASH 4496936 4496936 0 0.0
RAM 205936 205936 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3004781 3004781 0 0.0
RAM 160408 160408 0 0.0
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4098720 4098720 0 0.0
RAM 246064 246064 0 0.0
tv-app debug unknown 5736 5736 0 0.0
FLASH 5951077 5951077 0 0.0
RAM 606824 606824 0 0.0
tv-casting-app debug unknown 5312 5312 0 0.0
FLASH 11271213 11271213 0 0.0
RAM 710736 710736 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 913664 913664 0 0.0
RAM 143148 143148 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888544 888544 0 0.0
RAM 141335 141335 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 848552 848552 0 0.0
RAM 142060 142060 0 0.0
nxp contact k32w0+release FLASH 584288 584288 0 0.0
RAM 70860 70860 0 0.0
mcxw71+release FLASH 599632 599632 0 0.0
RAM 63080 63080 0 0.0
light k32w0+release FLASH 610716 610716 0 0.0
RAM 70252 70252 0 0.0
k32w1+release FLASH 685184 685184 0 0.0
RAM 48664 48664 0 0.0
lock mcxw71+release FLASH 761264 761264 0 0.0
RAM 70708 70708 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646340 1646340 0 0.0
RAM 211544 211544 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552892 1552892 0 0.0
RAM 208352 208352 0 0.0
light cy8ckit_062s2_43012 FLASH 1468780 1468780 0 0.0
RAM 200328 200328 0 0.0
lock cy8ckit_062s2_43012 FLASH 1466828 1466828 0 0.0
RAM 224672 224672 0 0.0
qpg lighting-app qpg6105+debug FLASH 661992 661992 0 0.0
RAM 105204 105204 0 0.0
lock-app qpg6105+debug FLASH 619772 619772 0 0.0
RAM 99648 99648 0 0.0
stm32 light STM32WB5MM-DK FLASH 482648 482648 0 0.0
RAM 144656 144656 0 0.0
telink bridge-app tlsr9258a FLASH 681396 681396 0 0.0
RAM 91064 91064 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621608 621608 0 0.0
RAM 31464 31464 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 770454 770454 0 0.0
RAM 49324 49324 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 774872 774872 0 0.0
RAM 99628 99628 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 708782 708782 0 0.0
RAM 73356 73356 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625882 625882 0 0.0
RAM 141996 141996 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811932 811932 0 0.0
RAM 99540 99540 0 0.0
tizen all-clusters-app arm unknown 5112 5112 0 0.0
FLASH 1751184 1751184 0 0.0
RAM 93468 93468 0 0.0
chip-tool-ubsan arm unknown 11024 11024 0 0.0
FLASH 18213494 18213494 0 0.0
RAM 7955128 7955128 0 0.0

Copy link

github-actions bot commented Jan 22, 2025

PR #37135: Size comparison from 8370039 to 43cd521

Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 8370039 43cd521 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1092018 1092312 294 0.0
RAM 103258 103282 24 0.0
bl702 lighting-app bl702+eth FLASH 650236 650236 0 0.0
RAM 25265 25265 0 0.0
bl702+wifi FLASH 828106 828400 294 0.0
RAM 13981 13981 0 0.0
bl706+mfd+rpc+littlefs FLASH 1055136 1055136 0 0.0
RAM 23845 23845 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 888134 888134 0 0.0
RAM 18504 18504 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 971120 971120 0 0.0
RAM 16368 16368 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838024 838000 -24 -0.0
RAM 123448 123464 16 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823452 823412 -40 -0.0
RAM 125320 125344 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770636 770636 0 0.0
RAM 113804 113804 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754888 754888 0 0.0
RAM 114012 114012 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 538433 538433 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 572369 572297 -72 -0.0
RAM 205320 205344 24 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679473 679401 -72 -0.0
RAM 78508 78532 24 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699317 699253 -64 -0.0
RAM 81148 81172 24 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699317 699253 -64 -0.0
RAM 81148 81172 24 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656253 656181 -72 -0.0
RAM 73576 73600 24 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615833 615793 -40 -0.0
RAM 71492 71516 24 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635461 635421 -40 -0.0
RAM 74036 74060 24 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635461 635421 -40 -0.0
RAM 74036 74060 24 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635329 635265 -64 -0.0
RAM 74500 74524 24 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655045 654973 -72 -0.0
RAM 77044 77068 24 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655045 654973 -72 -0.0
RAM 77044 77068 24 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611773 611701 -72 -0.0
RAM 68588 68612 24 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631633 631561 -72 -0.0
RAM 71228 71252 24 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631633 631561 -72 -0.0
RAM 71228 71252 24 0.0
efr32 lock-app BRD4187C FLASH 934704 934672 -32 -0.0
RAM 159904 159904 0 0.0
BRD4338a FLASH 729580 729620 40 0.0
RAM 234748 234764 16 0.0
window-app BRD4187C FLASH 1029288 1029344 56 0.0
RAM 128008 128040 32 0.0
esp32 all-clusters-app c3devkit DRAM 95088 95104 16 0.0
FLASH 1536886 1536860 -26 -0.0
IRAM 82552 82552 0 0.0
m5stack DRAM 116076 116092 16 0.0
FLASH 1544970 1544946 -24 -0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4752 4752 0 0.0
FLASH 2708845 2708845 0 0.0
RAM 132800 132800 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5974698 5974932 234 0.0
RAM 531520 531616 96 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5322484 5323618 1134 0.0
RAM 242632 242728 96 0.0
bridge-app debug unknown 5472 5472 0 0.0
FLASH 4680640 4681806 1166 0.0
RAM 221368 221464 96 0.0
chip-tool debug unknown 5984 5984 0 0.0
FLASH 13046528 13046874 346 0.0
RAM 596178 596178 0 0.0
chip-tool-ipv6only arm64 unknown 21776 21776 0 0.0
FLASH 1112372 11124048 320 0.0
RAM 647920 647920 0 0.0
fabric-admin debug unknown 5808 5808 0 0.0
FLASH 11393503 11393881 378 0.0
RAM 596522 596522 0 0.0
fabric-bridge-app debug unknown 4728 4728 0 0.0
FLASH 4506068 4507202 1134 0.0
RAM 208552 208648 96 0.0
fabric-sync debug unknown 4968 4968 0 0.0
FLASH 5611141 5612613 1472 0.0
RAM 483424 483520 96 0.0
lighting-app debug+rpc+ui unknown 6136 6136 0 0.0
FLASH 5615681 5615921 240 0.0
RAM 231648 231744 96 0.0
lock-app debug unknown 5408 5408 0 0.0
FLASH 4730586 4730856 270 0.0
RAM 207616 207712 96 0.0
ota-provider-app debug unknown 4768 4768 0 0.0
FLASH 4359432 4359432 0 0.0
RAM 201352 201352 0 0.0
ota-requestor-app debug unknown 4720 4720 0 0.0
FLASH 4496936 4496936 0 0.0
RAM 205936 205936 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3004781 3005021 240 0.0
RAM 160408 160504 96 0.1
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4098720 4098896 176 0.0
RAM 246064 246136 72 0.0
tv-app debug unknown 5736 5736 0 0.0
FLASH 5951077 5952245 1168 0.0
RAM 606824 606920 96 0.0
tv-casting-app debug unknown 5312 5312 0 0.0
FLASH 11271213 11272349 1136 0.0
RAM 710736 710864 128 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 913664 913652 -12 -0.0
RAM 143148 143168 20 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888544 888632 88 0.0
RAM 141335 141355 20 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 848552 848696 144 0.0
RAM 142060 142080 20 0.0
nxp contact k32w0+release FLASH 584288 584288 0 0.0
RAM 70860 70860 0 0.0
mcxw71+release FLASH 599632 599632 0 0.0
RAM 63080 63080 0 0.0
light k32w0+release FLASH 610716 610716 0 0.0
RAM 70252 70252 0 0.0
k32w1+release FLASH 685184 685184 0 0.0
RAM 48664 48664 0 0.0
lock mcxw71+release FLASH 761264 761264 0 0.0
RAM 70708 70708 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646340 1646420 80 0.0
RAM 211544 211560 16 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552892 1553212 320 0.0
RAM 208352 208376 24 0.0
light cy8ckit_062s2_43012 FLASH 1468780 1468876 96 0.0
RAM 200328 200352 24 0.0
lock cy8ckit_062s2_43012 FLASH 1466828 1466908 80 0.0
RAM 224672 224688 16 0.0
qpg lighting-app qpg6105+debug FLASH 661992 661992 0 0.0
RAM 105204 105204 0 0.0
lock-app qpg6105+debug FLASH 619772 619772 0 0.0
RAM 99648 99648 0 0.0
stm32 light STM32WB5MM-DK FLASH 482648 482608 -40 -0.0
RAM 144656 144672 16 0.0
telink bridge-app tlsr9258a FLASH 681396 681522 126 0.0
RAM 91064 91084 20 0.0
contact-sensor-app tlsr9528a_retention FLASH 621608 621556 -52 -0.0
RAM 31464 31484 20 0.1
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 770454 770426 -28 -0.0
RAM 49324 49344 20 0.0
light-app-ota-shell-factory-data tl7218x FLASH 774872 774822 -50 -0.0
RAM 99628 99648 20 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 708782 708724 -58 -0.0
RAM 73356 73376 20 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625882 625832 -50 -0.0
RAM 141996 142016 20 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811932 811882 -50 -0.0
RAM 99540 99560 20 0.0
tizen all-clusters-app arm unknown 5112 5112 0 0.0
FLASH 1751184 1751312 128 0.0
RAM 93468 93524 56 0.1
chip-tool-ubsan arm unknown 11024 11024 0 0.0
FLASH 18213494 18213990 496 0.0
RAM 7955128 7955248 120 0.0

Copy link
Contributor

@mkardous-silabs mkardous-silabs left a comment

Choose a reason for hiding this comment

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

These changes allows us to unify the wifi init in MatterConfig. The changes should be done in this PR.

examples/platform/silabs/MatterConfig.cpp Show resolved Hide resolved
examples/platform/silabs/MatterConfig.cpp Show resolved Hide resolved
@@ -646,15 +638,20 @@ void ProcessEvent(WifiPlatformEvent event)
}
}

void MatterWifiTask(void * arg)
sl_status_t InitSiWxWifi(void)
Copy link
Contributor

Choose a reason for hiding this comment

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

If this function is used by the rs911x WifiInterfaceImpl, the name needs to be updated.

@rosahay-silabs rosahay-silabs force-pushed the feature/realign-wifi-init-rs911x branch from 43cd521 to fdc6069 Compare January 27, 2025 05:33
Copy link

github-actions bot commented Jan 27, 2025

PR #37135: Size comparison from 22cd392 to fdc6069

Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 22cd392 fdc6069 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1093530 1093530 0 0.0
RAM 103298 103298 0 0.0
bl702 lighting-app bl702+eth FLASH 650142 650142 0 0.0
RAM 25265 25265 0 0.0
bl702+wifi FLASH 828050 828050 0 0.0
RAM 13981 13981 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056602 1056602 0 0.0
RAM 23861 23861 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 888036 888036 0 0.0
RAM 18504 18504 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 971022 971022 0 0.0
RAM 16368 16368 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837944 837944 0 0.0
RAM 123464 123464 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823364 823364 0 0.0
RAM 125344 125344 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770580 770580 0 0.0
RAM 113804 113804 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754824 754824 0 0.0
RAM 114012 114012 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 538405 538405 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 572269 572269 0 0.0
RAM 205344 205344 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679353 679353 0 0.0
RAM 78532 78532 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699205 699205 0 0.0
RAM 81172 81172 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699205 699205 0 0.0
RAM 81172 81172 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656133 656133 0 0.0
RAM 73600 73600 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615737 615737 0 0.0
RAM 71516 71516 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635365 635365 0 0.0
RAM 74060 74060 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635365 635365 0 0.0
RAM 74060 74060 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635209 635209 0 0.0
RAM 74524 74524 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 654917 654917 0 0.0
RAM 77068 77068 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 654917 654917 0 0.0
RAM 77068 77068 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611653 611653 0 0.0
RAM 68612 68612 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631513 631513 0 0.0
RAM 71252 71252 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631513 631513 0 0.0
RAM 71252 71252 0 0.0
esp32 all-clusters-app c3devkit DRAM 97296 97296 0 0.0
FLASH 1576974 1576974 0 0.0
IRAM 83820 83820 0 0.0
m5stack DRAM 116092 116092 0 0.0
FLASH 1544918 1544918 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4760 4760 0 0.0
FLASH 2707793 2707793 0 0.0
RAM 132800 132800 0 0.0
all-clusters-app debug unknown 5568 5568 0 0.0
FLASH 5973848 5973848 0 0.0
RAM 531616 531616 0 0.0
all-clusters-minimal-app debug unknown 5464 5464 0 0.0
FLASH 5322534 5322534 0 0.0
RAM 242728 242728 0 0.0
bridge-app debug unknown 5480 5480 0 0.0
FLASH 4680722 4680722 0 0.0
RAM 221464 221464 0 0.0
chip-tool debug unknown 5984 5984 0 0.0
FLASH 13041760 13041760 0 0.0
RAM 596178 596178 0 0.0
chip-tool-ipv6only arm64 unknown 21776 21776 0 0.0
FLASH 11118640 11118640 0 0.0
RAM 647920 647920 0 0.0
fabric-admin debug unknown 5808 5808 0 0.0
FLASH 11387841 11387841 0 0.0
RAM 596522 596522 0 0.0
fabric-bridge-app debug unknown 4736 4736 0 0.0
FLASH 4505320 4505320 0 0.0
RAM 208648 208648 0 0.0
fabric-sync debug unknown 4976 4976 0 0.0
FLASH 5611557 5611557 0 0.0
RAM 483520 483520 0 0.0
lighting-app debug+rpc+ui unknown 6144 6144 0 0.0
FLASH 5623505 5623505 0 0.0
RAM 231744 231744 0 0.0
lock-app debug unknown 5416 5416 0 0.0
FLASH 4729772 4729772 0 0.0
RAM 207712 207712 0 0.0
ota-provider-app debug unknown 4776 4776 0 0.0
FLASH 4358348 4358348 0 0.0
RAM 201352 201352 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4495852 4495852 0 0.0
RAM 205936 205936 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3003933 3003933 0 0.0
RAM 160504 160504 0 0.0
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4097952 4097952 0 0.0
RAM 246136 246136 0 0.0
tv-app debug unknown 5744 5744 0 0.0
FLASH 5951189 5951189 0 0.0
RAM 606920 606920 0 0.0
tv-casting-app debug unknown 5320 5320 0 0.0
FLASH 11268573 11268573 0 0.0
RAM 710864 710864 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 913600 913600 0 0.0
RAM 143168 143168 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888464 888464 0 0.0
RAM 141355 141355 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 848640 848640 0 0.0
RAM 142080 142080 0 0.0
nxp contact k32w0+release FLASH 584240 584240 0 0.0
RAM 70860 70860 0 0.0
mcxw71+release FLASH 599568 599568 0 0.0
RAM 63080 63080 0 0.0
light k32w0+release FLASH 610668 610668 0 0.0
RAM 70252 70252 0 0.0
k32w1+release FLASH 685136 685136 0 0.0
RAM 48664 48664 0 0.0
lock mcxw71+release FLASH 748600 748600 0 0.0
RAM 67476 67476 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646260 1646260 0 0.0
RAM 211560 211560 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1553036 1553036 0 0.0
RAM 208376 208376 0 0.0
light cy8ckit_062s2_43012 FLASH 1468700 1468700 0 0.0
RAM 200352 200352 0 0.0
lock cy8ckit_062s2_43012 FLASH 1466748 1466748 0 0.0
RAM 224688 224688 0 0.0
qpg lighting-app qpg6105+debug FLASH 661928 661928 0 0.0
RAM 105204 105204 0 0.0
lock-app qpg6105+debug FLASH 619724 619724 0 0.0
RAM 99648 99648 0 0.0
stm32 light STM32WB5MM-DK FLASH 482552 482552 0 0.0
RAM 144672 144672 0 0.0
telink bridge-app tlsr9258a FLASH 681300 681300 0 0.0
RAM 91084 91084 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621330 621330 0 0.0
RAM 31484 31484 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 770184 770184 0 0.0
RAM 49344 49344 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 774600 774600 0 0.0
RAM 99648 99648 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 708502 708502 0 0.0
RAM 73376 73376 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625610 625610 0 0.0
RAM 142016 142016 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812982 812982 0 0.0
RAM 99560 99560 0 0.0
tizen all-clusters-app arm unknown 5116 5116 0 0.0
FLASH 1751452 1751452 0 0.0
RAM 93524 93524 0 0.0
chip-tool-ubsan arm unknown 11024 11024 0 0.0
FLASH 18211390 18211390 0 0.0
RAM 7953724 7953724 0 0.0

@rosahay-silabs rosahay-silabs changed the title [Silabs] Changes the WiFi initialization for RCP modules [Silabs] Refactor RCP WiFi initialization to remove platform-specific dependencies and unify initialization function Jan 27, 2025
@rosahay-silabs rosahay-silabs marked this pull request as ready for review January 27, 2025 10:54
@rosahay-silabs rosahay-silabs requested a review from a team as a code owner January 27, 2025 10:54
Copy link

github-actions bot commented Jan 27, 2025

PR #37135: Size comparison from 22cd392 to 1fe4ed6

Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 22cd392 1fe4ed6 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1093530 1093530 0 0.0
RAM 103298 103298 0 0.0
bl702 lighting-app bl702+eth FLASH 650142 650142 0 0.0
RAM 25265 25265 0 0.0
bl702+wifi FLASH 828050 828050 0 0.0
RAM 13981 13981 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056602 1056602 0 0.0
RAM 23861 23861 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 888036 888036 0 0.0
RAM 18504 18504 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 971022 971022 0 0.0
RAM 16368 16368 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 837944 837944 0 0.0
RAM 123464 123464 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 823364 823364 0 0.0
RAM 125344 125344 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770580 770580 0 0.0
RAM 113804 113804 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 754824 754824 0 0.0
RAM 114012 114012 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 538405 538405 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 572269 572269 0 0.0
RAM 205344 205344 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679353 679353 0 0.0
RAM 78532 78532 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699205 699205 0 0.0
RAM 81172 81172 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699205 699205 0 0.0
RAM 81172 81172 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656133 656133 0 0.0
RAM 73600 73600 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615737 615737 0 0.0
RAM 71516 71516 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 635365 635365 0 0.0
RAM 74060 74060 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 635365 635365 0 0.0
RAM 74060 74060 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 635209 635209 0 0.0
RAM 74524 74524 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 654917 654917 0 0.0
RAM 77068 77068 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 654917 654917 0 0.0
RAM 77068 77068 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 611653 611653 0 0.0
RAM 68612 68612 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 631513 631513 0 0.0
RAM 71252 71252 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 631513 631513 0 0.0
RAM 71252 71252 0 0.0
esp32 all-clusters-app c3devkit DRAM 97296 97296 0 0.0
FLASH 1576974 1576974 0 0.0
IRAM 83820 83820 0 0.0
m5stack DRAM 116092 116092 0 0.0
FLASH 1544918 1544918 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4760 4760 0 0.0
FLASH 2707793 2707793 0 0.0
RAM 132800 132800 0 0.0
all-clusters-app debug unknown 5568 5568 0 0.0
FLASH 5973848 5973848 0 0.0
RAM 531616 531616 0 0.0
all-clusters-minimal-app debug unknown 5464 5464 0 0.0
FLASH 5322534 5322534 0 0.0
RAM 242728 242728 0 0.0
bridge-app debug unknown 5480 5480 0 0.0
FLASH 4680722 4680722 0 0.0
RAM 221464 221464 0 0.0
chip-tool debug unknown 5984 5984 0 0.0
FLASH 13041760 13041760 0 0.0
RAM 596178 596178 0 0.0
chip-tool-ipv6only arm64 unknown 21776 21776 0 0.0
FLASH 11118640 11118640 0 0.0
RAM 647920 647920 0 0.0
fabric-admin debug unknown 5808 5808 0 0.0
FLASH 11387841 11387841 0 0.0
RAM 596522 596522 0 0.0
fabric-bridge-app debug unknown 4736 4736 0 0.0
FLASH 4505320 4505320 0 0.0
RAM 208648 208648 0 0.0
fabric-sync debug unknown 4976 4976 0 0.0
FLASH 5611557 5611557 0 0.0
RAM 483520 483520 0 0.0
lighting-app debug+rpc+ui unknown 6144 6144 0 0.0
FLASH 5623505 5623505 0 0.0
RAM 231744 231744 0 0.0
lock-app debug unknown 5416 5416 0 0.0
FLASH 4729772 4729772 0 0.0
RAM 207712 207712 0 0.0
ota-provider-app debug unknown 4776 4776 0 0.0
FLASH 4358348 4358348 0 0.0
RAM 201352 201352 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4495852 4495852 0 0.0
RAM 205936 205936 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3003933 3003933 0 0.0
RAM 160504 160504 0 0.0
thermostat-no-ble arm64 unknown 9536 9536 0 0.0
FLASH 4097952 4097952 0 0.0
RAM 246136 246136 0 0.0
tv-app debug unknown 5744 5744 0 0.0
FLASH 5951189 5951189 0 0.0
RAM 606920 606920 0 0.0
tv-casting-app debug unknown 5320 5320 0 0.0
FLASH 11268573 11268573 0 0.0
RAM 710864 710864 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 913600 913600 0 0.0
RAM 143168 143168 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888464 888464 0 0.0
RAM 141355 141355 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 848640 848640 0 0.0
RAM 142080 142080 0 0.0
nxp contact k32w0+release FLASH 584240 584240 0 0.0
RAM 70860 70860 0 0.0
mcxw71+release FLASH 599568 599568 0 0.0
RAM 63080 63080 0 0.0
light k32w0+release FLASH 610668 610668 0 0.0
RAM 70252 70252 0 0.0
k32w1+release FLASH 685136 685136 0 0.0
RAM 48664 48664 0 0.0
lock mcxw71+release FLASH 748600 748600 0 0.0
RAM 67476 67476 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646260 1646260 0 0.0
RAM 211560 211560 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1553036 1553036 0 0.0
RAM 208376 208376 0 0.0
light cy8ckit_062s2_43012 FLASH 1468700 1468700 0 0.0
RAM 200352 200352 0 0.0
lock cy8ckit_062s2_43012 FLASH 1466748 1466748 0 0.0
RAM 224688 224688 0 0.0
qpg lighting-app qpg6105+debug FLASH 661928 661928 0 0.0
RAM 105204 105204 0 0.0
lock-app qpg6105+debug FLASH 619724 619724 0 0.0
RAM 99648 99648 0 0.0
stm32 light STM32WB5MM-DK FLASH 482552 482552 0 0.0
RAM 144672 144672 0 0.0
telink bridge-app tlsr9258a FLASH 681300 681300 0 0.0
RAM 91084 91084 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621330 621330 0 0.0
RAM 31484 31484 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 770184 770184 0 0.0
RAM 49344 49344 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 774600 774600 0 0.0
RAM 99648 99648 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 708502 708502 0 0.0
RAM 73376 73376 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625610 625610 0 0.0
RAM 142016 142016 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812982 812982 0 0.0
RAM 99560 99560 0 0.0
tizen all-clusters-app arm unknown 5116 5116 0 0.0
FLASH 1751452 1751452 0 0.0
RAM 93524 93524 0 0.0
chip-tool-ubsan arm unknown 11024 11024 0 0.0
FLASH 18211390 18211390 0 0.0
RAM 7953724 7953724 0 0.0

Comment on lines -49 to -51
#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
#include <platform/silabs/SiWx917/SiWxPlatformInterface.h>
#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1 )
Copy link
Contributor

Choose a reason for hiding this comment

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

This can't be removed for the time being. Can you re-add it with the same platform todo.

* SL_STATUS_ALLOCATION_FAILED, if there are a memory allocation failure,
* SL_STATUS_FAILURE, otherwise
******************************************************************************/
sl_status_t wfx_bus_start(void);
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't the correct comment format. We should stop using it entierly.

* @return None
******************************************************************************/
void wfx_bus_start()
sl_status_t wfx_bus_start(void)
{
wfx_bus_task_handle =
xTaskCreateStatic(wfx_bus_task, "wfxbus", BUS_TASK_STACK_SIZE, NULL, WFX_BUS_TASK_PRIORITY, busStack, &busTaskStruct);
if (wfx_bus_task_handle == NULL)
{
SILABS_LOG("*ERR*WFX BusTask");
Copy link
Contributor

Choose a reason for hiding this comment

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

We are deprecating out the SILABS_LOG macro - please delete it.

Comment on lines +46 to +48
* @return sl_status_t SL_STATUS_OK, if the initialization succeeded
* SL_STATUS_ALLOCATION_FAILED, if there are a memory allocation failure,
* SL_STATUS_FAILURE, otherwise
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment isn't exact. We never return SL_STATUS_FAILURE.

* SL_STATUS_FAILURE, otherwise
*/

sl_status_t InitWiFiStack(void);
Copy link
Contributor

Choose a reason for hiding this comment

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

Public APIs in the Wi-Fi interface should always return CHIP_ERROR. The error swap must be done inside the function.


sl_status_t InitWiFiStack(void)
{
// TODO: This function should include sl_wfx_hw_init() and sl_wfx_init() functions. Only done now to make MatterConfig platform
Copy link
Contributor

Choose a reason for hiding this comment

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

Please create a ticket to follow up on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants