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

chef: Fix FanControl mode/speed interdependence behavior #36256

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

Conversation

soares-sergio
Copy link
Contributor

This PR implements the FanControl logic to ensure the interdependent behavior between Mode/Speed/Percent is coherent.

This is based on what was done in the AirPurifier examples.

Changes:

  • Removed Custom Write/Read
  • Updated Zap file SpeedMax default to 10 instead of 100
  • Forward MatterPostAttributeChangeCallback FanControl-related changes to ChefFanControlManager
  • Implements Mode/Speed/Percent interdependency logic based on the AirPurifier example

Test:

  • Verified that Mode, Speed and SpeedPercent change accordingly when any of those attributes change and cross a boundary.

This PR implements the FanControl logic to ensure the interdependent
behavior between Mode/Speed/Percent is coherent.

This is based on what was done in the AirPurifier examples.

Changes:
* Removed Custom Write/Read
* Updated Zap file `SpeedMax` default to 10 instead of 100
* Forward `MatterPostAttributeChangeCallback` FanControl-related changes
  to `ChefFanControlManager`
* Implements Mode/Speed/Percent interdependency logic based on the
  AirPurifier example

Test:
* Verified that Mode, Speed and SpeedPercent change accordingly when any
  of those attributes change and cross a boundary.
Copy link

semanticdiff-com bot commented Oct 25, 2024

Review changes with  SemanticDiff

@mergify mergify bot removed the conflict label Oct 25, 2024
Copy link

github-actions bot commented Oct 25, 2024

PR #36256: Size comparison from e2ffa2d to 51788c2

Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section e2ffa2d 51788c2 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350120 1350120 0 0.0
RAM 104120 104120 0 0.0
bl702 lighting-app bl702+eth FLASH 647856 647856 0 0.0
RAM 25233 25233 0 0.0
bl702+wifi FLASH 825164 825164 0 0.0
RAM 13965 13965 0 0.0
bl706+mfd+rpc+littlefs FLASH 1054154 1054154 0 0.0
RAM 23821 23821 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 974938 974938 0 0.0
RAM 16468 16468 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 836660 836660 0 0.0
RAM 123676 123676 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 821960 821960 0 0.0
RAM 125556 125556 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 768532 768532 0 0.0
RAM 114048 114048 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 752792 752792 0 0.0
RAM 114240 114240 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627466 627466 0 0.0
RAM 206132 206132 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667458 667458 0 0.0
RAM 206284 206284 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 678621 678621 0 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 698465 698465 0 0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 698465 698465 0 0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 655401 655401 0 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615037 615037 0 0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634665 634665 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634665 634665 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 634309 634309 0 0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 654017 654017 0 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 654017 654017 0 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609669 609669 0 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629521 629521 0 0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629521 629521 0 0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 925644 925644 0 0.0
RAM 159920 159920 0 0.0
BRD4338a FLASH 742216 742216 0 0.0
RAM 232580 232580 0 0.0
window-app BRD4187C FLASH 1018568 1018568 0 0.0
RAM 128264 128264 0 0.0
esp32 all-clusters-app c3devkit DRAM 95256 95256 0 0.0
FLASH 1540020 1540020 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 116192 116192 0 0.0
FLASH 1550198 1550198 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4688 0 0.0
FLASH 2743551 2743551 0 0.0
RAM 129520 129520 0 0.0
all-clusters-app debug unknown 5528 5528 0 0.0
FLASH 6058996 6058996 0 0.0
RAM 523840 523840 0 0.0
all-clusters-minimal-app debug unknown 5424 5424 0 0.0
FLASH 5387580 5387580 0 0.0
RAM 242416 242416 0 0.0
bridge-app debug unknown 5408 5408 0 0.0
FLASH 4711492 4711492 0 0.0
RAM 218384 218384 0 0.0
chip-tool debug unknown 5960 5960 0 0.0
FLASH 13067000 13067000 0 0.0
RAM 584402 584402 0 0.0
chip-tool-ipv6only arm64 unknown 21408 21408 0 0.0
FLASH 11176888 11176888 0 0.0
RAM 635344 635344 0 0.0
fabric-admin debug unknown 5792 5792 0 0.0
FLASH 11315089 11315089 0 0.0
RAM 584890 584890 0 0.0
fabric-bridge-app debug unknown 4632 4632 0 0.0
FLASH 4537340 4537340 0 0.0
RAM 205336 205336 0 0.0
fabric-sync debug unknown 4816 4816 0 0.0
FLASH 5250741 5250741 0 0.0
RAM 465416 465416 0 0.0
lighting-app debug+rpc+ui unknown 6056 6056 0 0.0
FLASH 5655537 5655537 0 0.0
RAM 228488 228488 0 0.0
lock-app debug unknown 5344 5344 0 0.0
FLASH 4760920 4760920 0 0.0
RAM 204472 204472 0 0.0
ota-provider-app debug unknown 4720 4720 0 0.0
FLASH 4387630 4387630 0 0.0
RAM 198192 198192 0 0.0
ota-requestor-app debug unknown 4656 4656 0 0.0
FLASH 4527438 4527438 0 0.0
RAM 202760 202760 0 0.0
shell debug unknown 4216 4216 0 0.0
FLASH 3082493 3082493 0 0.0
RAM 160368 160368 0 0.0
thermostat-no-ble arm64 unknown 9448 9448 0 0.0
FLASH 4130784 4130784 0 0.0
RAM 242896 242896 0 0.0
tv-app debug unknown 5624 5624 0 0.0
FLASH 5994373 5994373 0 0.0
RAM 596256 596256 0 0.0
tv-casting-app debug unknown 5208 5208 0 0.0
FLASH 11274733 11274733 0 0.0
RAM 694536 694536 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 915564 915564 0 0.0
RAM 143357 143357 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 886032 886032 0 0.0
RAM 141496 141496 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 848972 848972 0 0.0
RAM 142265 142265 0 0.0
nxp contact k32w0+release FLASH 582424 582424 0 0.0
RAM 71092 71092 0 0.0
mcxw71+release FLASH 596896 596896 0 0.0
RAM 63184 63184 0 0.0
light k32w0+release FLASH 619044 619044 0 0.0
RAM 70556 70556 0 0.0
k32w1+release FLASH 683144 683144 0 0.0
RAM 48816 48816 0 0.0
lock mcxw71+release FLASH 746704 746704 0 0.0
RAM 67340 67340 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1647668 1647668 0 0.0
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1553740 1553740 0 0.0
RAM 209208 209208 0 0.0
light cy8ckit_062s2_43012 FLASH 1468004 1468004 0 0.0
RAM 201200 201200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464964 1464964 0 0.0
RAM 225560 225560 0 0.0
qpg lighting-app qpg6105+debug FLASH 660536 660536 0 0.0
RAM 105420 105420 0 0.0
lock-app qpg6105+debug FLASH 618628 618628 0 0.0
RAM 99880 99880 0 0.0
stm32 light STM32WB5MM-DK FLASH 481920 481920 0 0.0
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 681136 681136 0 0.0
RAM 91304 91304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620782 620782 0 0.0
RAM 50600 50600 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 708762 708762 0 0.0
RAM 73940 73940 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625736 625736 0 0.0
RAM 144468 144468 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811746 811746 0 0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 4912 4912 0 0.0
FLASH 1729952 1729952 0 0.0
RAM 90108 90108 0 0.0
chip-tool-ubsan arm unknown 10792 10792 0 0.0
FLASH 18269094 18269094 0 0.0
RAM 7960448 7960448 0 0.0

// Ensure new speed is in bounds
case FanControl::Attributes::PercentSetting::Id: {
ChipLogProgress(NotSpecified, "ChefFanControlManager::HandleFanControlAttributeChange PercentSetting");
DataModel::Nullable<Percent> percentSetting = static_cast<DataModel::Nullable<uint8_t>>(*value);
Copy link
Contributor

Choose a reason for hiding this comment

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

This cast is wrong. That is not the binary layout of something that would get passed to MatterPostAttributeChangeCallback. Was this tested at all?

This sort of type-confusion thing is how one gets exploitable security bugs.

Copy link
Contributor Author

@soares-sergio soares-sergio Oct 28, 2024

Choose a reason for hiding this comment

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

I'm sorry, I'm new to the codebase and not familiar with all of the types yet. I followed what's currently done in the air-purifier-app, which is likely wrong as well: https://github.com/project-chip/connectedhomeip/blob/master/examples/air-purifier-app/air-purifier-common/src/air-purifier-manager.cpp#L157

Was this tested at all?
Yes, it was tested and it seems to have coherent values.

I would appreciate if you could point me to a good example and I can update both of the incorrect apps. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, that air purifier code is definitely wrong too....

When this was tested, was it tested with an actual null value?

What I would is that the actual type at the callsite of value here is uint8_t, with null represented as 0xFF.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the PR, let me know if it looks better now. I needed a little lesson from Andrei on how ember encodes null. Thanks for catching this, I'll fix the other app in a separate PR.

case FanControl::Attributes::SpeedSetting::Id: {
ChipLogProgress(NotSpecified, "ChefFanControlManager::HandleFanControlAttributeChange SpeedSetting");

DataModel::Nullable<uint8_t> speedSetting = static_cast<DataModel::Nullable<uint8_t>>(*value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, this is wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed now.

}
}

void ChefFanControlManager::PercentSettingWriteCallback(uint8_t aNewPercentSetting)
Copy link
Contributor

Choose a reason for hiding this comment

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

So why was null turned into 0, exactly?

Looking at the spec, none of this code should be reached if null is written (cluster should ignore the write and return with an error per spec), no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the spec, none of this code should be reached if null is written (cluster should ignore the write and return with an error per spec), no?

It seems this is only true when the client is trying to write to null.
The cluster code can still set this to null and we use the post attribute change callback to detect the change in PercentSetting so we can update PercentCurrent.

See: https://github.com/project-chip/connectedhomeip/blob/master/src/app/clusters/fan-control-server/fan-control-server.cpp#L232

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, true. But then why are we turning null into 0? And why are we touching any other state if the application itself is writing null here? We should just start returning null on reads, I would think, and not change anything else.

It does not help that the spec does not define what null means for this field, of course.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the spec doesn't specify what to do with PercentCurrent when PercentSetting goes to null (a.k.a when the FanMode goes to kAuto).
We're deciding to set this to 0 in the app (as PercentCurrent can't be null as well).

Comment on lines +257 to +258
case FanControl::FanModeEnum::kUnknownEnumValue: {
ChipLogProgress(NotSpecified, "ChefFanControlManager::FanModeWriteCallback: Unknown");
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be handled by the cluster in a pre-write callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm new to this code but it looks like the cluster code only handles kSmart and kOn on pre-callback. Everything else it just passes down: https://github.com/project-chip/connectedhomeip/blob/master/src/app/clusters/fan-control-server/fan-control-server.cpp#L183

Are you suggesting I go ahead and update the cluster code to check if it's kUnknownValue and return Status::ConstraintError instead of passing down?
I could do that. But searching the codebase, I don't see other clusters handling this on pre-callback, so I'm not sure what's the rationale here. Was the intention to just let the app/products handle this, maybe?

Copy link
Contributor

@bzbarsky-apple bzbarsky-apple Oct 28, 2024

Choose a reason for hiding this comment

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

I'm new to this code but it looks like the cluster code only handles kSmart and kOn on pre-callback.

That sounds like a bug in the cluster code; it should deal with invalid input in the way the spec specifies, so that applications do not have to.

I don't see other clusters handling this on pre-callback

Some clusters handle this in other ways. Others are being bad. ;)

Copy link

github-actions bot commented Oct 28, 2024

PR #36256: Size comparison from e2ffa2d to f119c9a

Increases above 0.2%:

platform target config section e2ffa2d f119c9a change % change
linux fabric-sync debug unknown 4816 4840 24 0.5
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section e2ffa2d f119c9a change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350120 1349958 -162 -0.0
RAM 104120 104120 0 0.0
bl702 lighting-app bl702+eth FLASH 647856 647354 -502 -0.1
RAM 25233 25233 0 0.0
bl702+wifi FLASH 825164 824918 -246 -0.0
RAM 13965 13965 0 0.0
bl706+mfd+rpc+littlefs FLASH 1054154 1053908 -246 -0.0
RAM 23821 23821 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 974938 974692 -246 -0.0
RAM 16468 16468 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 836660 836428 -232 -0.0
RAM 123676 123676 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 821960 821824 -136 -0.0
RAM 125556 125556 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 768532 768412 -120 -0.0
RAM 114048 114048 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 752792 752672 -120 -0.0
RAM 114240 114240 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 627466 626506 -960 -0.2
RAM 206132 206132 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667458 666482 -976 -0.1
RAM 206284 206284 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 678621 678389 -232 -0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 698465 698233 -232 -0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 698465 698233 -232 -0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 655401 655169 -232 -0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615037 614837 -200 -0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634665 634465 -200 -0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634665 634465 -200 -0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 634309 634189 -120 -0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 654017 653897 -120 -0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 654017 653897 -120 -0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609669 609445 -224 -0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629521 629297 -224 -0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629521 629297 -224 -0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 925644 925516 -128 -0.0
RAM 159920 159920 0 0.0
BRD4338a FLASH 742216 741256 -960 -0.1
RAM 232580 232580 0 0.0
window-app BRD4187C FLASH 1018568 1017480 -1088 -0.1
RAM 128264 128264 0 0.0
esp32 all-clusters-app c3devkit DRAM 95256 95256 0 0.0
FLASH 1540020 1538746 -1274 -0.1
IRAM 82538 82538 0 0.0
m5stack DRAM 116192 116192 0 0.0
FLASH 1550198 1548958 -1240 -0.1
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4688 0 0.0
FLASH 2743551 2736597 -6954 -0.3
RAM 129520 129520 0 0.0
all-clusters-app debug unknown 5528 5528 0 0.0
FLASH 6058996 6038902 -20094 -0.3
RAM 523840 523840 0 0.0
all-clusters-minimal-app debug unknown 5424 5424 0 0.0
FLASH 5387580 5371494 -16086 -0.3
RAM 242416 242416 0 0.0
bridge-app debug unknown 5408 5408 0 0.0
FLASH 4711492 4705056 -6436 -0.1
RAM 218384 218384 0 0.0
chip-tool debug unknown 5960 5960 0 0.0
FLASH 13067000 12980390 -86610 -0.7
RAM 584402 584466 64 0.0
chip-tool-ipv6only arm64 unknown 21408 21416 8 0.0
FLASH 11176888 11115672 -61216 -0.5
RAM 635344 635408 64 0.0
fabric-admin debug unknown 5792 5792 0 0.0
FLASH 11315089 11310181 -4908 -0.0
RAM 584890 584954 64 0.0
fabric-bridge-app debug unknown 4632 4632 0 0.0
FLASH 4537340 4531488 -5852 -0.1
RAM 205336 205336 0 0.0
fabric-sync debug unknown 4816 4840 24 0.5
FLASH 5250741 5243973 -6768 -0.1
RAM 465416 465416 0 0.0
lighting-app debug+rpc+ui unknown 6056 6056 0 0.0
FLASH 5655537 5646113 -9424 -0.2
RAM 228488 228488 0 0.0
lock-app debug unknown 5344 5344 0 0.0
FLASH 4760920 4753934 -6986 -0.1
RAM 204472 204472 0 0.0
ota-provider-app debug unknown 4720 4720 0 0.0
FLASH 4387630 4380642 -6988 -0.2
RAM 198192 198192 0 0.0
ota-requestor-app debug unknown 4656 4656 0 0.0
FLASH 4527438 4519746 -7692 -0.2
RAM 202760 202760 0 0.0
shell debug unknown 4216 4216 0 0.0
FLASH 3082493 3065101 -17392 -0.6
RAM 160368 160368 0 0.0
thermostat-no-ble arm64 unknown 9448 9456 8 0.1
FLASH 4130784 4123816 -6968 -0.2
RAM 242896 242896 0 0.0
tv-app debug unknown 5624 5624 0 0.0
FLASH 5994373 5980405 -13968 -0.2
RAM 596256 596256 0 0.0
tv-casting-app debug unknown 5208 5208 0 0.0
FLASH 11274733 11187373 -87360 -0.8
RAM 694536 694536 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 915564 914360 -1204 -0.1
RAM 143357 143357 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 886032 885896 -136 -0.0
RAM 141496 141496 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 848972 847928 -1044 -0.1
RAM 142265 142265 0 0.0
nxp contact k32w0+release FLASH 582424 582296 -128 -0.0
RAM 71092 71092 0 0.0
mcxw71+release FLASH 596896 596776 -120 -0.0
RAM 63184 63184 0 0.0
light k32w0+release FLASH 619044 618900 -144 -0.0
RAM 70556 70556 0 0.0
k32w1+release FLASH 683144 682992 -152 -0.0
RAM 48816 48816 0 0.0
lock mcxw71+release FLASH 746704 746568 -136 -0.0
RAM 67340 67340 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1647668 1643620 -4048 -0.2
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1553740 1550588 -3152 -0.2
RAM 209208 209208 0 0.0
light cy8ckit_062s2_43012 FLASH 1468004 1466564 -1440 -0.1
RAM 201200 201200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464964 1464004 -960 -0.1
RAM 225560 225560 0 0.0
qpg lighting-app qpg6105+debug FLASH 660536 660392 -144 -0.0
RAM 105420 105420 0 0.0
lock-app qpg6105+debug FLASH 618628 618460 -168 -0.0
RAM 99880 99880 0 0.0
stm32 light STM32WB5MM-DK FLASH 481920 481680 -240 -0.0
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 681136 680902 -234 -0.0
RAM 91304 91304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620782 620500 -282 -0.0
RAM 50600 50600 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 708762 708438 -324 -0.0
RAM 73940 73940 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625736 625344 -392 -0.1
RAM 144468 144468 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811746 811354 -392 -0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 4912 4912 0 0.0
FLASH 1729952 1720944 -9008 -0.5
RAM 90108 90108 0 0.0
chip-tool-ubsan arm unknown 10792 10792 0 0.0
FLASH 18269094 18157806 -111288 -0.6
RAM 7960448 7915456 -44992 -0.6

Copy link

github-actions bot commented Oct 28, 2024

PR #36256: Size comparison from 928efd7 to 5ac4256

Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 928efd7 5ac4256 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1349958 1349958 0 0.0
RAM 104120 104120 0 0.0
bl702 lighting-app bl702+eth FLASH 647354 647354 0 0.0
RAM 25233 25233 0 0.0
bl702+wifi FLASH 824918 824918 0 0.0
RAM 13965 13965 0 0.0
bl706+mfd+rpc+littlefs FLASH 1053908 1053908 0 0.0
RAM 23821 23821 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 974692 974692 0 0.0
RAM 16468 16468 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 836428 836428 0 0.0
RAM 123676 123676 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 821824 821824 0 0.0
RAM 125556 125556 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 768412 768412 0 0.0
RAM 114048 114048 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 752672 752672 0 0.0
RAM 114240 114240 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 626506 626506 0 0.0
RAM 206132 206132 0 0.0
lock CC3235SF_LAUNCHXL FLASH 666482 666482 0 0.0
RAM 206284 206284 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 678389 678389 0 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 698233 698233 0 0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 698233 698233 0 0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 655169 655169 0 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 614837 614837 0 0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634465 634465 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634465 634465 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 634189 634189 0 0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 653897 653897 0 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 653897 653897 0 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609445 609445 0 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629297 629297 0 0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629297 629297 0 0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 925516 925516 0 0.0
RAM 159920 159920 0 0.0
BRD4338a FLASH 741256 741256 0 0.0
RAM 232580 232580 0 0.0
window-app BRD4187C FLASH 1017480 1017480 0 0.0
RAM 128264 128264 0 0.0
esp32 all-clusters-app c3devkit DRAM 95256 95256 0 0.0
FLASH 1538746 1538746 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 116192 116192 0 0.0
FLASH 1548958 1548958 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4688 0 0.0
FLASH 2736597 2736597 0 0.0
RAM 129520 129520 0 0.0
all-clusters-app debug unknown 5528 5528 0 0.0
FLASH 6038902 6038902 0 0.0
RAM 523840 523840 0 0.0
all-clusters-minimal-app debug unknown 5424 5424 0 0.0
FLASH 5371494 5371494 0 0.0
RAM 242416 242416 0 0.0
bridge-app debug unknown 5408 5408 0 0.0
FLASH 4705056 4705056 0 0.0
RAM 218384 218384 0 0.0
chip-tool debug unknown 5960 5960 0 0.0
FLASH 12980390 12980390 0 0.0
RAM 584466 584466 0 0.0
chip-tool-ipv6only arm64 unknown 21416 21416 0 0.0
FLASH 11115672 11115672 0 0.0
RAM 635408 635408 0 0.0
fabric-admin debug unknown 5792 5792 0 0.0
FLASH 11310181 11310181 0 0.0
RAM 584954 584954 0 0.0
fabric-bridge-app debug unknown 4632 4632 0 0.0
FLASH 4531488 4531488 0 0.0
RAM 205336 205336 0 0.0
fabric-sync debug unknown 4840 4840 0 0.0
FLASH 5243973 5243973 0 0.0
RAM 465416 465416 0 0.0
lighting-app debug+rpc+ui unknown 6056 6056 0 0.0
FLASH 5646113 5646113 0 0.0
RAM 228488 228488 0 0.0
lock-app debug unknown 5344 5344 0 0.0
FLASH 4753934 4753934 0 0.0
RAM 204472 204472 0 0.0
ota-provider-app debug unknown 4720 4720 0 0.0
FLASH 4380642 4380642 0 0.0
RAM 198192 198192 0 0.0
ota-requestor-app debug unknown 4656 4656 0 0.0
FLASH 4519746 4519746 0 0.0
RAM 202760 202760 0 0.0
shell debug unknown 4216 4216 0 0.0
FLASH 3065101 3065101 0 0.0
RAM 160368 160368 0 0.0
thermostat-no-ble arm64 unknown 9456 9456 0 0.0
FLASH 4123816 4123816 0 0.0
RAM 242896 242896 0 0.0
tv-app debug unknown 5624 5624 0 0.0
FLASH 5980405 5980405 0 0.0
RAM 596256 596256 0 0.0
tv-casting-app debug unknown 5208 5208 0 0.0
FLASH 11187373 11187373 0 0.0
RAM 694536 694536 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 914360 914360 0 0.0
RAM 143357 143357 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 885896 885896 0 0.0
RAM 141496 141496 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 847928 847928 0 0.0
RAM 142265 142265 0 0.0
nxp contact k32w0+release FLASH 582296 582296 0 0.0
RAM 71092 71092 0 0.0
mcxw71+release FLASH 596776 596776 0 0.0
RAM 63184 63184 0 0.0
light k32w0+release FLASH 618900 618900 0 0.0
RAM 70556 70556 0 0.0
k32w1+release FLASH 682992 682992 0 0.0
RAM 48816 48816 0 0.0
lock mcxw71+release FLASH 746568 746568 0 0.0
RAM 67340 67340 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1643620 1643620 0 0.0
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1550588 1550588 0 0.0
RAM 209208 209208 0 0.0
light cy8ckit_062s2_43012 FLASH 1466564 1466564 0 0.0
RAM 201200 201200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464004 1464004 0 0.0
RAM 225560 225560 0 0.0
qpg lighting-app qpg6105+debug FLASH 660392 660392 0 0.0
RAM 105420 105420 0 0.0
lock-app qpg6105+debug FLASH 618460 618460 0 0.0
RAM 99880 99880 0 0.0
stm32 light STM32WB5MM-DK FLASH 481680 481680 0 0.0
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 680902 680902 0 0.0
RAM 91304 91304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620500 620500 0 0.0
RAM 50600 50600 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 708438 708438 0 0.0
RAM 73940 73940 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625344 625344 0 0.0
RAM 144468 144468 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811354 811354 0 0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 4912 4912 0 0.0
FLASH 1720944 1720944 0 0.0
RAM 90108 90108 0 0.0
chip-tool-ubsan arm unknown 10792 10792 0 0.0
FLASH 18157806 18157806 0 0.0
RAM 7915456 7915456 0 0.0

Copy link

github-actions bot commented Oct 29, 2024

PR #36256: Size comparison from 928efd7 to e15ae5a

Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 928efd7 e15ae5a change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1349958 1349306 -652 -0.0
RAM 104120 104120 0 0.0
bl702 lighting-app bl702+eth FLASH 647354 647028 -326 -0.1
RAM 25233 25233 0 0.0
bl702+wifi FLASH 824918 824592 -326 -0.0
RAM 13965 13965 0 0.0
bl706+mfd+rpc+littlefs FLASH 1053908 1053582 -326 -0.0
RAM 23821 23821 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 974692 974366 -326 -0.0
RAM 16468 16468 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 836428 836124 -304 -0.0
RAM 123676 123676 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 821824 821768 -56 -0.0
RAM 125556 125556 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 768412 768476 64 0.0
RAM 114048 114048 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 752672 752720 48 0.0
RAM 114240 114240 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 626506 625798 -708 -0.1
RAM 206132 206132 0 0.0
lock CC3235SF_LAUNCHXL FLASH 666482 665774 -708 -0.1
RAM 206284 206284 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 678389 678085 -304 -0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 698233 697937 -296 -0.0
RAM 81324 81324 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 698233 697937 -296 -0.0
RAM 81324 81324 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 655169 654873 -296 -0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 614837 614637 -200 -0.0
RAM 71644 71644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634465 634273 -192 -0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634465 634273 -192 -0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 634189 634149 -40 -0.0
RAM 74692 74692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 653897 653857 -40 -0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 653897 653857 -40 -0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609445 609429 -16 -0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629297 629281 -16 -0.0
RAM 71412 71412 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629297 629281 -16 -0.0
RAM 71412 71412 0 0.0
efr32 lock-app BRD4187C FLASH 925516 926068 552 0.1
RAM 159920 159920 0 0.0
BRD4338a FLASH 741256 740568 -688 -0.1
RAM 232580 232580 0 0.0
window-app BRD4187C FLASH 1017480 1017272 -208 -0.0
RAM 128264 128264 0 0.0
esp32 all-clusters-app c3devkit DRAM 95256 95256 0 0.0
FLASH 1538746 1537464 -1282 -0.1
IRAM 82538 82538 0 0.0
m5stack DRAM 116192 116192 0 0.0
FLASH 1548958 1548126 -832 -0.1
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4688 0 0.0
FLASH 2736597 2731595 -5002 -0.2
RAM 129520 129616 96 0.1
all-clusters-app debug unknown 5528 5528 0 0.0
FLASH 6038902 6021350 -17552 -0.3
RAM 523840 523872 32 0.0
all-clusters-minimal-app debug unknown 5424 5424 0 0.0
FLASH 5371494 5358592 -12902 -0.2
RAM 242416 242448 32 0.0
bridge-app debug unknown 5408 5408 0 0.0
FLASH 4705056 4700450 -4606 -0.1
RAM 218384 218400 16 0.0
chip-tool debug unknown 5960 5960 0 0.0
FLASH 12980390 12901220 -79170 -0.6
RAM 584466 584466 0 0.0
chip-tool-ipv6only arm64 unknown 21416 21416 0 0.0
FLASH 11115672 11029376 -86296 -0.8
RAM 635408 635400 -8 -0.0
fabric-admin debug unknown 5792 5792 0 0.0
FLASH 11310181 11308753 -1428 -0.0
RAM 584954 584922 -32 -0.0
fabric-bridge-app debug unknown 4632 4632 0 0.0
FLASH 4531488 4527502 -3986 -0.1
RAM 205336 205368 32 0.0
fabric-sync debug unknown 4840 4840 0 0.0
FLASH 5243973 5239621 -4352 -0.1
RAM 465416 465432 16 0.0
lighting-app debug+rpc+ui unknown 6056 6056 0 0.0
FLASH 5646113 5638961 -7152 -0.1
RAM 228488 228520 32 0.0
lock-app debug unknown 5344 5344 0 0.0
FLASH 4753934 4748870 -5064 -0.1
RAM 204472 204520 48 0.0
ota-provider-app debug unknown 4720 4720 0 0.0
FLASH 4380642 4375630 -5012 -0.1
RAM 198192 198240 48 0.0
ota-requestor-app debug unknown 4656 4656 0 0.0
FLASH 4519746 4513870 -5876 -0.1
RAM 202760 202808 48 0.0
shell debug unknown 4216 4216 0 0.0
FLASH 3065101 3048605 -16496 -0.5
RAM 160368 160336 -32 -0.0
thermostat-no-ble arm64 unknown 9456 9456 0 0.0
FLASH 4123816 4117192 -6624 -0.2
RAM 242896 242936 40 0.0
tv-app debug unknown 5624 5624 0 0.0
FLASH 5980405 5971893 -8512 -0.1
RAM 596256 596304 48 0.0
tv-casting-app debug unknown 5208 5208 0 0.0
FLASH 11187373 11108589 -78784 -0.7
RAM 694536 694552 16 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 914360 913336 -1024 -0.1
RAM 143357 143357 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 885896 884780 -1116 -0.1
RAM 141496 141496 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 847928 847396 -532 -0.1
RAM 142265 142265 0 0.0
nxp contact k32w0+release FLASH 582296 582296 0 0.0
RAM 71092 71092 0 0.0
mcxw71+release FLASH 596776 596784 8 0.0
RAM 63184 63184 0 0.0
light k32w0+release FLASH 618900 618852 -48 -0.0
RAM 70556 70556 0 0.0
k32w1+release FLASH 682992 682936 -56 -0.0
RAM 48816 48816 0 0.0
lock mcxw71+release FLASH 746568 746560 -8 -0.0
RAM 67340 67340 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1643620 1641508 -2112 -0.1
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1550588 1549052 -1536 -0.1
RAM 209208 209208 0 0.0
light cy8ckit_062s2_43012 FLASH 1466564 1465636 -928 -0.1
RAM 201200 201200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464004 1463300 -704 -0.0
RAM 225560 225560 0 0.0
qpg lighting-app qpg6105+debug FLASH 660392 660304 -88 -0.0
RAM 105420 105420 0 0.0
lock-app qpg6105+debug FLASH 618460 618380 -80 -0.0
RAM 99880 99880 0 0.0
stm32 light STM32WB5MM-DK FLASH 481680 481392 -288 -0.1
RAM 144844 144844 0 0.0
telink bridge-app tlsr9258a FLASH 680902 680800 -102 -0.0
RAM 91304 91304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620500 620426 -74 -0.0
RAM 50600 50600 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 708438 708260 -178 -0.0
RAM 73940 73940 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625344 625062 -282 -0.0
RAM 144468 144468 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811354 811072 -282 -0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 4912 4912 0 0.0
FLASH 1720944 1712792 -8152 -0.5
RAM 90108 90140 32 0.0
chip-tool-ubsan arm unknown 10792 10792 0 0.0
FLASH 18157806 1794227 -215536 -1.2
RAM 7915456 7811564 -103892 -1.3

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