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

Fix UNSUPPORTED_ENDPOINT of TC-BR-4's step 1h #34499

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

yhoyoon
Copy link
Contributor

@yhoyoon yhoyoon commented Jul 25, 2024

When testing step 1h of TC-BR-4 with bridge-app on the latest TH, an UNSUPPORTED_ENDPOINT error occurs. This is because ComposedDevice and ComposedPowerSource are local variables in the ApplicationInit function, so they are not valid when the bridge-app runs. This change moves ComposedDevice and ComposedPowerSource to global scope.

Error logs:

./chip-tool powersource read bat-charge-level 1 6
[DMG] ReportDataMessage =
[DMG] {
[DMG]  AttributeReportIBs =
[DMG]  [
[DMG]          AttributeReportIB =
[DMG]          {
[DMG]                  AttributeStatusIB =
[DMG]                  {
[DMG]                          AttributePathIB =
[DMG]                          {
[DMG]                                  Endpoint = 0x6,
[DMG]                                  Cluster = 0x2f,
[DMG]                                  Attribute = 0x0000_000E,
[DMG]                          }
[DMG]
[DMG]                          StatusIB =
[DMG]                          {
[DMG]                                  status = 0x7f (UNSUPPORTED_ENDPOINT),
[DMG]                          },
[DMG]
[DMG]                  },
[DMG]
[DMG]          },
[DMG]
[DMG]  ],
[DMG]
[DMG]  SuppressResponse = true,
[DMG]  InteractionModelRevision = 11
[DMG] }

Fixed bridge-app's logs:

./chip-tool powersource read bat-charge-level 1 6
[DMG] ReportDataMessage =
[DMG] {
[DMG]  AttributeReportIBs =
[DMG]  [
[DMG]          AttributeReportIB =
[DMG]          {
[DMG]                  AttributeDataIB =
[DMG]                  {
[DMG]                          DataVersion = 0x441a4dc7,
[DMG]                          AttributePathIB =
[DMG]                          {
[DMG]                                  Endpoint = 0x6,
[DMG]                                  Cluster = 0x2f,
[DMG]                                  Attribute = 0x0000_000E,
[DMG]                          }
[DMG]
[DMG]                          Data = 58 (unsigned),
[DMG]                  },
[DMG]
[DMG]          },
[DMG]
[DMG]  ],
[DMG]
[DMG]  SuppressResponse = true,
[DMG]  InteractionModelRevision = 11
[DMG] }

Copy link

github-actions bot commented Jul 25, 2024

PR #34499: Size comparison from 34462f1 to 8d79c14

Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 34462f1 8d79c14 change % change
bl602 lighting-app bl602 FLASH 1271964 1271964 0 0.0
RAM 95384 95384 0 0.0
bl602+mfd FLASH 1286222 1286222 0 0.0
RAM 95528 95528 0 0.0
bl602+rpc FLASH 1311188 1311188 0 0.0
RAM 103808 103808 0 0.0
bl702 lighting-app bl702 FLASH 1092858 1092858 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1103808 1103808 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1182924 1182924 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876158 876158 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128598 1128598 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1080012 1080012 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091274 1091274 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798972 798972 0 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808516 808516 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761132 761132 0 0.0
RAM 105408 105408 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746916 746916 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606494 606494 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652026 652026 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668081 668081 0 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687933 687933 0 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687933 687933 0 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644869 644869 0 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609585 609585 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625289 625289 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593517 593517 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613369 613369 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613369 613369 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 926152 926152 0 0.0
RAM 134528 134528 0 0.0
lock-app BRD4338a FLASH 734524 734516 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014604 1014604 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 90948 90948 0 0.0
FLASH 1471128 1471128 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117428 117428 0 0.0
FLASH 1540255 1540255 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710279 2710279 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5400 5400 0 0.0
FLASH 5838962 5838962 0 0.0
RAM 494560 494560 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5298760 5298760 0 0.0
RAM 235728 235728 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4699178 4698850 -328 -0.0
RAM 212992 213376 384 0.2
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12279384 12279384 0 0.0
RAM 548050 548050 0 0.0
chip-tool-ipv6only arm64 unknown 20128 20128 0 0.0
FLASH 10987004 10987004 0 0.0
RAM 597680 597680 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11299943 11299943 0 0.0
RAM 544890 544890 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4453464 4453464 0 0.0
RAM 199024 199024 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5623585 5623585 0 0.0
RAM 224272 224272 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757630 4757630 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402124 4402124 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540272 4540272 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2983165 2983165 0 0.0
RAM 153704 153704 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259572 4259572 0 0.0
RAM 236360 236360 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5974781 5974781 0 0.0
RAM 573184 573184 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10490877 10490877 0 0.0
RAM 633352 633352 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226720 226720 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591672 591672 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610464 610464 0 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675248 675248 0 0.0
RAM 82872 82872 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611588 1611588 0 0.0
RAM 209728 209728 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531940 1531940 0 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458956 1458956 0 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459500 1459500 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 651780 651780 0 0.0
RAM 104636 104636 0 0.0
lock-app qpg6105+debug FLASH 612136 612136 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 474176 474176 0 0.0
RAM 144260 144260 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633112 633112 0 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658826 658826 0 0.0
RAM 148480 148480 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779052 779052 0 0.0
RAM 113260 113260 0 0.0
bridge-app tlsr9258a FLASH 676032 676032 0 0.0
RAM 95344 95344 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634696 634696 0 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720568 720568 0 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614100 614100 0 0.0
RAM 144684 144684 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801904 801904 0 0.0
RAM 103088 103088 0 0.0
lock-app-dfu tlsr9528a FLASH 666524 666524 0 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695428 695428 0 0.0
RAM 95068 95068 0 0.0
pump-app tlsr9518adk80d FLASH 616960 616960 0 0.0
RAM 57000 57000 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607370 607370 0 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641314 641314 0 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651192 651192 0 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626084 626084 0 0.0
RAM 57124 57124 0 0.0
window-covering tlsr9118bdk40d FLASH 519462 519462 0 0.0
RAM 97856 97856 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1640836 1640836 0 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16291318 16291318 0 0.0
RAM 7153452 7153452 0 0.0

yhoyoon and others added 2 commits July 25, 2024 18:51
When testing step 1h of TC-BR-4 with bridge-app on the latest TH, an
UNSUPPORTED_ENDPOINT error occurs. This is because ComposedDevice and
ComposedPowerSource are local variables in the ApplicationInit function,
so they are not valid when the bridge-app runs. This change moves
ComposedDevice and ComposedPowerSource to global scope.

Co-authored-by: Charles Kim <[email protected]>
Co-authored-by: Sanghee Kim <[email protected]>
Co-authored-by: Hunsup Jung <[email protected]>
Co-authored-by: sanghyukko <[email protected]>
Co-authored-by: Jaehoon You <[email protected]>
Co-authored-by: Kyu-Wook Lim <[email protected]>
Signed-off-by: Youngho Yoon <[email protected]>
ComposedDevice has the same type and variable name, so an ambiguous
build error occurs as shown below. This change renames the variable to
gComposeDevice.

../../main.cpp: In function ‘void ApplicationInit()’:
../../main.cpp:924:5: error: reference to ‘ComposedDevice’ is ambiguous
  924 |     ComposedDevice.SetReachable(true);
      |     ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:954:24: error: reference to ‘ComposedDevice’ is ambiguous
  954 |     AddDeviceEndpoint(&ComposedDevice, &bridgedComposedDeviceEndpoint, Span<const EmberAfDeviceType>(gBridgedComposedDeviceTypes),
      |                        ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:958:76: error: reference to ‘ComposedDevice’ is ambiguous
  958 |                       Span<DataVersion>(gComposedTempSensor1DataVersions), ComposedDevice.GetEndpointId());
      |                                                                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:961:76: error: reference to ‘ComposedDevice’ is ambiguous
  961 |                       Span<DataVersion>(gComposedTempSensor2DataVersions), ComposedDevice.GetEndpointId());
      |                                                                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:977:28: error: reference to ‘ComposedDevice’ is ambiguous
  977 |     endpointList.push_back(ComposedDevice.GetEndpointId());
      |                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:981:39: error: reference to ‘ComposedDevice’ is ambiguous
  981 |     ComposedPowerSource.SetEndpointId(ComposedDevice.GetEndpointId());
      |                                       ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Signed-off-by: Youngho Yoon <[email protected]>
@yhoyoon yhoyoon force-pushed the feature/contribution-certificate branch from 8d79c14 to c2b1090 Compare July 25, 2024 09:51
Copy link

github-actions bot commented Jul 25, 2024

PR #34499: Size comparison from 34462f1 to c2b1090

Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 34462f1 c2b1090d change % change
bl602 lighting-app bl602 FLASH 1271964 1271964 0 0.0
RAM 95384 95384 0 0.0
bl602+mfd FLASH 1286222 1286222 0 0.0
RAM 95528 95528 0 0.0
bl602+rpc FLASH 1311188 1311188 0 0.0
RAM 103808 103808 0 0.0
bl702 lighting-app bl702 FLASH 1092858 1092858 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1103808 1103808 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1182924 1182924 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876158 876158 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128598 1128598 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1080012 1080012 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091274 1091274 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798972 798972 0 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808516 808516 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761132 761132 0 0.0
RAM 105408 105408 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746916 746916 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606494 606494 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652026 652026 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668081 668081 0 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687933 687933 0 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687933 687933 0 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644869 644869 0 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609585 609585 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625289 625289 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593517 593517 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613369 613369 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613369 613369 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 926152 926152 0 0.0
RAM 134528 134528 0 0.0
lock-app BRD4338a FLASH 734524 734516 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014604 1014604 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 90948 90948 0 0.0
FLASH 1471128 1471128 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117428 117428 0 0.0
FLASH 1540255 1540255 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710279 2710279 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5400 5400 0 0.0
FLASH 5838962 5838962 0 0.0
RAM 494560 494560 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5298760 5298760 0 0.0
RAM 235728 235728 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4699178 4698850 -328 -0.0
RAM 212992 213376 384 0.2
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12279384 12279384 0 0.0
RAM 548050 548050 0 0.0
chip-tool-ipv6only arm64 unknown 20128 20128 0 0.0
FLASH 10987004 10987004 0 0.0
RAM 597680 597680 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11299943 11299943 0 0.0
RAM 544890 544890 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4453464 4453464 0 0.0
RAM 199024 199024 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5623585 5623585 0 0.0
RAM 224272 224272 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757630 4757630 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402124 4402124 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540272 4540272 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2983165 2983165 0 0.0
RAM 153704 153704 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259572 4259572 0 0.0
RAM 236360 236360 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5974781 5974781 0 0.0
RAM 573184 573184 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10490877 10490877 0 0.0
RAM 633352 633352 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226720 226720 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591672 591672 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610464 610464 0 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675248 675248 0 0.0
RAM 82872 82872 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611588 1611588 0 0.0
RAM 209728 209728 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531940 1531940 0 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458956 1458956 0 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459500 1459500 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 651780 651780 0 0.0
RAM 104636 104636 0 0.0
lock-app qpg6105+debug FLASH 612136 612136 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 474176 474176 0 0.0
RAM 144260 144260 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633112 633112 0 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658826 658826 0 0.0
RAM 148480 148480 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779052 779052 0 0.0
RAM 113260 113260 0 0.0
bridge-app tlsr9258a FLASH 676032 676032 0 0.0
RAM 95344 95344 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634696 634696 0 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720568 720568 0 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614100 614100 0 0.0
RAM 144684 144684 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801904 801904 0 0.0
RAM 103088 103088 0 0.0
lock-app-dfu tlsr9528a FLASH 666524 666524 0 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695428 695428 0 0.0
RAM 95068 95068 0 0.0
pump-app tlsr9518adk80d FLASH 616960 616960 0 0.0
RAM 57000 57000 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607370 607370 0 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641314 641314 0 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651192 651192 0 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626084 626084 0 0.0
RAM 57124 57124 0 0.0
window-covering tlsr9118bdk40d FLASH 519462 519462 0 0.0
RAM 97856 97856 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1640836 1640836 0 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16291318 16291318 0 0.0
RAM 7153452 7153452 0 0.0

Copy link

github-actions bot commented Jul 25, 2024

PR #34499: Size comparison from ba949bf to 3044cd0

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 ba949bf 3044cd0 change % change
bl602 lighting-app bl602 FLASH 1274146 1274146 0 0.0
RAM 95424 95424 0 0.0
bl602+mfd FLASH 1288404 1288404 0 0.0
RAM 95568 95568 0 0.0
bl602+rpc FLASH 1313114 1313114 0 0.0
RAM 103848 103848 0 0.0
bl702 lighting-app bl702 FLASH 1095040 1095040 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1105734 1105734 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1185106 1185106 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 878084 878084 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1130780 1130780 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1081938 1081938 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1093200 1093200 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 800260 800260 0 0.0
RAM 109276 109276 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808652 808652 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 762416 762416 0 0.0
RAM 105448 105448 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747068 747068 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606670 606670 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652210 652210 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 669329 669329 0 0.0
RAM 77740 77740 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 689189 689189 0 0.0
RAM 80380 80380 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 689189 689189 0 0.0
RAM 80380 80380 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 646125 646125 0 0.0
RAM 72808 72808 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609737 609737 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629365 629365 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629365 629365 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625433 625433 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 645141 645141 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 645141 645141 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593661 593661 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613513 613513 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613513 613513 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 927312 927304 -8 -0.0
RAM 134568 134568 0 0.0
lock-app BRD4338a FLASH 734684 734676 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014772 1014772 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 90988 90988 0 0.0
FLASH 1472594 1472594 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117468 117468 0 0.0
FLASH 1541975 1541975 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710565 2710565 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 5858050 5858050 0 0.0
RAM 494784 494784 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5306984 5306984 0 0.0
RAM 235920 235920 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4707482 4707154 -328 -0.0
RAM 213664 214048 384 0.2
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12279672 12279672 0 0.0
RAM 548050 548050 0 0.0
chip-tool-ipv6only arm64 unknown 20128 20128 0 0.0
FLASH 10987228 10987228 0 0.0
RAM 597680 597680 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11300231 11300231 0 0.0
RAM 544890 544890 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4453750 4453750 0 0.0
RAM 199024 199024 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5631569 5631569 0 0.0
RAM 224464 224464 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757948 4757948 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402410 4402410 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4540558 4540558 0 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 2991629 2991629 0 0.0
RAM 153896 153896 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259812 4259812 0 0.0
RAM 236360 236360 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5983085 5983085 0 0.0
RAM 573856 573856 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10491197 10491197 0 0.0
RAM 633352 633352 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503444 1503444 0 0.0
RAM 226720 226720 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 889076 889076 0 0.0
RAM 141596 141596 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 957296 957296 0 0.0
RAM 140700 140700 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 832696 832696 0 0.0
RAM 140464 140464 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591808 591808 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 611696 611696 0 0.0
RAM 69608 69608 0 0.0
k32w1+release FLASH 676528 676528 0 0.0
RAM 82912 82912 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613124 1613124 0 0.0
RAM 209768 209768 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1533476 1533476 0 0.0
RAM 206584 206584 0 0.0
light cy8ckit_062s2_43012 FLASH 1460500 1460500 0 0.0
RAM 199848 199848 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459668 1459668 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 653084 653084 0 0.0
RAM 104680 104680 0 0.0
lock-app qpg6105+debug FLASH 612288 612288 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 475456 475456 0 0.0
RAM 144300 144300 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633182 633182 0 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 660244 660244 0 0.0
RAM 148520 148520 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 780470 780470 0 0.0
RAM 113300 113300 0 0.0
bridge-app tlsr9258a FLASH 677462 677462 0 0.0
RAM 95384 95384 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634766 634766 0 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720638 720638 0 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 615524 615524 0 0.0
RAM 144724 144724 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 803328 803328 0 0.0
RAM 103128 103128 0 0.0
lock-app-dfu tlsr9528a FLASH 666594 666594 0 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695498 695498 0 0.0
RAM 95068 95068 0 0.0
pump-app tlsr9518adk80d FLASH 618410 618410 0 0.0
RAM 57040 57040 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607440 607440 0 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641384 641384 0 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651262 651262 0 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626148 626148 0 0.0
RAM 57124 57124 0 0.0
window-covering tlsr9118bdk40d FLASH 519532 519532 0 0.0
RAM 97856 97856 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1645992 1645992 0 0.0
RAM 48908 48908 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16291606 16291606 0 0.0
RAM 7153512 7153512 0 0.0

@mergify mergify bot merged commit ade5285 into project-chip:master Jul 26, 2024
69 checks passed
@yhoyoon yhoyoon deleted the feature/contribution-certificate branch July 29, 2024 02:05
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
* Fix UNSUPPORTED_ENDPOINT of TC-BR-4's step 1h

When testing step 1h of TC-BR-4 with bridge-app on the latest TH, an
UNSUPPORTED_ENDPOINT error occurs. This is because ComposedDevice and
ComposedPowerSource are local variables in the ApplicationInit function,
so they are not valid when the bridge-app runs. This change moves
ComposedDevice and ComposedPowerSource to global scope.

Co-authored-by: Charles Kim <[email protected]>
Co-authored-by: Sanghee Kim <[email protected]>
Co-authored-by: Hunsup Jung <[email protected]>
Co-authored-by: sanghyukko <[email protected]>
Co-authored-by: Jaehoon You <[email protected]>
Co-authored-by: Kyu-Wook Lim <[email protected]>
Signed-off-by: Youngho Yoon <[email protected]>

* Fix ambiguous build error of bridge app

ComposedDevice has the same type and variable name, so an ambiguous
build error occurs as shown below. This change renames the variable to
gComposeDevice.

../../main.cpp: In function ‘void ApplicationInit()’:
../../main.cpp:924:5: error: reference to ‘ComposedDevice’ is ambiguous
  924 |     ComposedDevice.SetReachable(true);
      |     ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:954:24: error: reference to ‘ComposedDevice’ is ambiguous
  954 |     AddDeviceEndpoint(&ComposedDevice, &bridgedComposedDeviceEndpoint, Span<const EmberAfDeviceType>(gBridgedComposedDeviceTypes),
      |                        ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:958:76: error: reference to ‘ComposedDevice’ is ambiguous
  958 |                       Span<DataVersion>(gComposedTempSensor1DataVersions), ComposedDevice.GetEndpointId());
      |                                                                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:961:76: error: reference to ‘ComposedDevice’ is ambiguous
  961 |                       Span<DataVersion>(gComposedTempSensor2DataVersions), ComposedDevice.GetEndpointId());
      |                                                                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:977:28: error: reference to ‘ComposedDevice’ is ambiguous
  977 |     endpointList.push_back(ComposedDevice.GetEndpointId());
      |                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:981:39: error: reference to ‘ComposedDevice’ is ambiguous
  981 |     ComposedPowerSource.SetEndpointId(ComposedDevice.GetEndpointId());
      |                                       ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Signed-off-by: Youngho Yoon <[email protected]>

---------

Signed-off-by: Youngho Yoon <[email protected]>
Co-authored-by: Charles Kim <[email protected]>
Co-authored-by: Sanghee Kim <[email protected]>
Co-authored-by: Hunsup Jung <[email protected]>
Co-authored-by: sanghyukko <[email protected]>
Co-authored-by: Jaehoon You <[email protected]>
Co-authored-by: Kyu-Wook Lim <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
* Fix UNSUPPORTED_ENDPOINT of TC-BR-4's step 1h

When testing step 1h of TC-BR-4 with bridge-app on the latest TH, an
UNSUPPORTED_ENDPOINT error occurs. This is because ComposedDevice and
ComposedPowerSource are local variables in the ApplicationInit function,
so they are not valid when the bridge-app runs. This change moves
ComposedDevice and ComposedPowerSource to global scope.

Co-authored-by: Charles Kim <[email protected]>
Co-authored-by: Sanghee Kim <[email protected]>
Co-authored-by: Hunsup Jung <[email protected]>
Co-authored-by: sanghyukko <[email protected]>
Co-authored-by: Jaehoon You <[email protected]>
Co-authored-by: Kyu-Wook Lim <[email protected]>
Signed-off-by: Youngho Yoon <[email protected]>

* Fix ambiguous build error of bridge app

ComposedDevice has the same type and variable name, so an ambiguous
build error occurs as shown below. This change renames the variable to
gComposeDevice.

../../main.cpp: In function ‘void ApplicationInit()’:
../../main.cpp:924:5: error: reference to ‘ComposedDevice’ is ambiguous
  924 |     ComposedDevice.SetReachable(true);
      |     ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:954:24: error: reference to ‘ComposedDevice’ is ambiguous
  954 |     AddDeviceEndpoint(&ComposedDevice, &bridgedComposedDeviceEndpoint, Span<const EmberAfDeviceType>(gBridgedComposedDeviceTypes),
      |                        ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:958:76: error: reference to ‘ComposedDevice’ is ambiguous
  958 |                       Span<DataVersion>(gComposedTempSensor1DataVersions), ComposedDevice.GetEndpointId());
      |                                                                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:961:76: error: reference to ‘ComposedDevice’ is ambiguous
  961 |                       Span<DataVersion>(gComposedTempSensor2DataVersions), ComposedDevice.GetEndpointId());
      |                                                                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:977:28: error: reference to ‘ComposedDevice’ is ambiguous
  977 |     endpointList.push_back(ComposedDevice.GetEndpointId());
      |                            ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
../../main.cpp:981:39: error: reference to ‘ComposedDevice’ is ambiguous
  981 |     ComposedPowerSource.SetEndpointId(ComposedDevice.GetEndpointId());
      |                                       ^~~~~~~~~~~~~~
../../main.cpp:174:16: note: candidates are: ‘ComposedDevice {anonymous}::ComposedDevice’
  174 | ComposedDevice ComposedDevice("Composed Device", "Bedroom");
      |                ^~~~~~~~~~~~~~
In file included from ../../main.cpp:46:
../../include/Device.h:158:7: note:                 ‘class ComposedDevice’
  158 | class ComposedDevice : public Device
      |       ^~~~~~~~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Signed-off-by: Youngho Yoon <[email protected]>

---------

Signed-off-by: Youngho Yoon <[email protected]>
Co-authored-by: Charles Kim <[email protected]>
Co-authored-by: Sanghee Kim <[email protected]>
Co-authored-by: Hunsup Jung <[email protected]>
Co-authored-by: sanghyukko <[email protected]>
Co-authored-by: Jaehoon You <[email protected]>
Co-authored-by: Kyu-Wook Lim <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
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.

3 participants