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

Thermostat Cluster Init Function Enabled #12863

Merged

Conversation

chrisbeach59
Copy link
Contributor

@chrisbeach59 chrisbeach59 commented Dec 10, 2021

Problem:
emberAfThermostatClusterServerInitCallback was not enabled in the helper.js file for code gen.
FeatureMap usage involves Conditional compiles and repeated code

Changes:
Enabled Init for thermostat
Eliminated #ifndefs
Used Feature Map accessor function now available in SDK, in place of deprecated read.

Tested:
Manual testing with thermostat-app (Linux) and chip-tool

@github-actions
Copy link

github-actions bot commented Dec 10, 2021

PR #12863: Size comparison from 55b7aba to 38d3567

Increases above 0.2%:

platform target config section 55b7aba 38d3567 change % change
linux thermostat-no-ble arm64 .got 3592 3624 32 0.9
Increases (5 builds for esp32, linux, mbed, p6)
platform target config section 55b7aba 38d3567 change % change
esp32 all-clusters-app c3devkit (read only) 862634 862778 144 0.0
(read/write) 1305930 1305946 16 0.0
.dram0.bss 65704 65712 8 0.0
.dram0.data 14124 14132 8 0.1
.flash.text 862634 862778 144 0.0
m5stack (read only) 965887 966011 124 0.0
(read/write) 451616 451624 8 0.0
.dram0.bss 75000 75008 8 0.0
.flash.text 960503 960627 124 0.0
linux thermostat-no-ble arm64 (read only) 1947348 1947924 576 0.0
(read/write) 137041 137105 64 0.0
.bss 59441 59457 16 0.0
.data.rel.ro 70304 70312 8 0.0
.got 3592 3624 32 0.9
.text 1614336 1614768 432 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2324264 2324400 136 0.0
.bss 184980 184988 8 0.0
.text 1286840 1286976 136 0.0
p6 all-clusters-app default (read/write) 2361664 2361800 136 0.0
.bss 113116 113124 8 0.0
.text 1319928 1320064 136 0.0
Decreases (2 builds for mbed, p6)
platform target config section 55b7aba 38d3567 change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 846224 846216 -8 -0.0
p6 all-clusters-app default .heap 917704 917696 -8 -0.0
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 55b7aba 38d3567 change % change
efr32 lighting-app BRD4161A (read only) 808964 808964 0 0.0
(read/write) 123020 123020 0 0.0
.bss 121160 121160 0 0.0
.data 1860 1860 0 0.0
.text 808956 808956 0 0.0
BRD4161A+rpc (read only) 796600 796600 0 0.0
(read/write) 139696 139696 0 0.0
.bss 137736 137736 0 0.0
.data 1960 1960 0 0.0
.text 796592 796592 0 0.0
window-app BRD4161A (read only) 785940 785940 0 0.0
(read/write) 121152 121152 0 0.0
.bss 119328 119328 0 0.0
.data 1824 1824 0 0.0
.text 785932 785932 0 0.0
esp32 all-clusters-app c3devkit (read only) 862634 862778 144 0.0
(read/write) 1305930 1305946 16 0.0
.dram0.bss 65704 65712 8 0.0
.dram0.data 14124 14132 8 0.1
.flash.rodata 173064 173064 0 0.0
.flash.text 862634 862778 144 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 965887 966011 124 0.0
(read/write) 451616 451624 8 0.0
.dram0.bss 75000 75008 8 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 210772 210772 0 0.0
.flash.text 960503 960627 124 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 669336 669336 0 0.0
.bss 73744 73744 0 0.0
.data 1892 1892 0 0.0
.text 587900 587900 0 0.0
lock-app k32w061+debug (read/write) 619284 619284 0 0.0
.bss 71896 71896 0 0.0
.data 1852 1852 0 0.0
.text 539736 539736 0 0.0
shell k32w061+debug (read/write) 624384 624384 0 0.0
.bss 74124 74124 0 0.0
.data 1832 1832 0 0.0
.text 542628 542628 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6856796 6856796 0 0.0
(read/write) 318225 318225 0 0.0
.bss 51713 51713 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208696 208696 0 0.0
.dynamic 560 560 0 0.0
.got 53024 53024 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 363836 363836 0 0.0
.text 5814164 5814164 0 0.0
thermostat-no-ble arm64 (read only) 1947348 1947924 576 0.0
(read/write) 137041 137105 64 0.0
.bss 59441 59457 16 0.0
.data 832 832 0 0.0
.data.rel.ro 70304 70312 8 0.0
.dynamic 560 560 0 0.0
.got 3592 3624 32 0.9
.init 24 24 0 0.0
.init_array 272 272 0 0.0
.rodata 125508 125508 0 0.0
.text 1614336 1614768 432 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2324264 2324400 136 0.0
.bss 184980 184988 8 0.0
.data 5240 5240 0 0.0
.heap 846224 846216 -8 -0.0
.text 1286840 1286976 136 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2308880 2308880 0 0.0
.bss 175696 175696 0 0.0
.data 5528 5528 0 0.0
.heap 855224 855224 0 0.0
.text 1271480 1271480 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2282000 2282000 0 0.0
.bss 174736 174736 0 0.0
.data 5520 5520 0 0.0
.heap 856192 856192 0 0.0
.text 1244600 1244600 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053336 2053336 0 0.0
.bss 156900 156900 0 0.0
.data 4864 4864 0 0.0
.heap 874680 874680 0 0.0
.text 1015936 1015936 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 906523 906523 0 0.0
bss 116168 116168 0 0.0
rodata 101980 101980 0 0.0
text 612780 612780 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 869571 869571 0 0.0
bss 112516 112516 0 0.0
rodata 93276 93276 0 0.0
text 587508 587508 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 832538 832538 0 0.0
bss 117544 117544 0 0.0
rodata 97236 97236 0 0.0
text 543208 543208 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 879151 879151 0 0.0
bss 113432 113432 0 0.0
rodata 98096 98096 0 0.0
text 592224 592224 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 805410 805410 0 0.0
bss 114840 114840 0 0.0
rodata 93388 93388 0 0.0
text 522744 522744 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 884091 884091 0 0.0
bss 113344 113344 0 0.0
rodata 99452 99452 0 0.0
text 595816 595816 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 877331 877331 0 0.0
bss 113220 113220 0 0.0
rodata 97588 97588 0 0.0
text 591012 591012 0 0.0
shell nrf52840dk_nrf52840 (read/write) 781927 781927 0 0.0
bss 109544 109544 0 0.0
rodata 74276 74276 0 0.0
text 523588 523588 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 696974 696974 0 0.0
bss 110524 110524 0 0.0
rodata 68920 68920 0 0.0
text 444228 444228 0 0.0
p6 all-clusters-app default (read/write) 2361664 2361800 136 0.0
.bss 113116 113124 8 0.0
.data 2520 2520 0 0.0
.heap 917704 917696 -8 -0.0
.text 1319928 1320064 136 0.0
light-app default (read/write) 2294480 2294480 0 0.0
.bss 100888 100888 0 0.0
.data 2360 2360 0 0.0
.heap 930096 930096 0 0.0
.text 1252744 1252744 0 0.0
lock-app default (read/write) 2270544 2270544 0 0.0
.bss 99768 99768 0 0.0
.data 2328 2328 0 0.0
.heap 931248 931248 0 0.0
.text 1228808 1228808 0 0.0
qpg lighting-app qpg6100+debug (read only) 521224 521224 0 0.0
(read/write) 122336 122336 0 0.0
.bss 82616 82616 0 0.0
.data 992 992 0 0.0
.text 515904 515904 0 0.0
lock-app qpg6100+debug (read only) 495592 495592 0 0.0
(read/write) 122332 122332 0 0.0
.bss 81752 81752 0 0.0
.data 948 948 0 0.0
.text 490272 490272 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 810690 810690 0 0.0
bss 82736 82736 0 0.0
noinit 37160 37160 0 0.0
text 565866 565866 0 0.0

@chrisbeach59 chrisbeach59 reopened this Dec 10, 2021
@chrisbeach59 chrisbeach59 force-pushed the Thermostat-FeatureMapToInit branch 2 times, most recently from 5a5aa51 to d1f98d3 Compare December 10, 2021 14:08
@github-actions
Copy link

github-actions bot commented Dec 10, 2021

PR #12863: Size comparison from de0af9a to d1f98d3

Increases (4 builds for esp32, linux, p6)
platform target config section de0af9a d1f98d3 change % change
esp32 all-clusters-app c3devkit (read only) 856018 856024 6 0.0
(read/write) 1305050 1305066 16 0.0
.dram0.data 14124 14132 8 0.1
.flash.text 856018 856024 6 0.0
m5stack (read only) 959935 959943 8 0.0
.flash.text 954551 954559 8 0.0
linux thermostat-no-ble arm64 (read only) 1947044 1947348 304 0.0
(read/write) 137201 137217 16 0.0
.data.rel.ro 70304 70312 8 0.0
.text 1614096 1614352 256 0.0
p6 all-clusters-app default (read/write) 2354544 2354552 8 0.0
.text 1312808 1312816 8 0.0
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section de0af9a d1f98d3 change % change
efr32 lighting-app BRD4161A (read only) 809188 809188 0 0.0
(read/write) 123148 123148 0 0.0
.bss 121288 121288 0 0.0
.data 1860 1860 0 0.0
.text 809180 809180 0 0.0
BRD4161A+rpc (read only) 796824 796824 0 0.0
(read/write) 139824 139824 0 0.0
.bss 137864 137864 0 0.0
.data 1960 1960 0 0.0
.text 796816 796816 0 0.0
window-app BRD4161A (read only) 786164 786164 0 0.0
(read/write) 121280 121280 0 0.0
.bss 119456 119456 0 0.0
.data 1824 1824 0 0.0
.text 786156 786156 0 0.0
esp32 all-clusters-app c3devkit (read only) 856018 856024 6 0.0
(read/write) 1305050 1305066 16 0.0
.dram0.bss 65032 65032 0 0.0
.dram0.data 14124 14132 8 0.1
.flash.rodata 172856 172856 0 0.0
.flash.text 856018 856024 6 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 959935 959943 8 0.0
(read/write) 450776 450776 0 0.0
.dram0.bss 74320 74320 0 0.0
.dram0.data 34048 34048 0 0.0
.flash.rodata 210620 210620 0 0.0
.flash.text 954551 954559 8 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 669576 669576 0 0.0
.bss 73872 73872 0 0.0
.data 1892 1892 0 0.0
.text 588012 588012 0 0.0
lock-app k32w061+debug (read/write) 619524 619524 0 0.0
.bss 72024 72024 0 0.0
.data 1852 1852 0 0.0
.text 539848 539848 0 0.0
shell k32w061+debug (read/write) 624624 624624 0 0.0
.bss 74252 74252 0 0.0
.data 1832 1832 0 0.0
.text 542740 542740 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6848196 6848196 0 0.0
(read/write) 318945 318945 0 0.0
.bss 51985 51985 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 208656 208656 0 0.0
.dynamic 560 560 0 0.0
.got 53384 53384 0 0.0
.init 24 24 0 0.0
.init_array 176 176 0 0.0
.rodata 364116 364116 0 0.0
.text 5803380 5803380 0 0.0
thermostat-no-ble arm64 (read only) 1947044 1947348 304 0.0
(read/write) 137201 137217 16 0.0
.bss 59601 59601 0 0.0
.data 832 832 0 0.0
.data.rel.ro 70304 70312 8 0.0
.dynamic 560 560 0 0.0
.got 3592 3592 0 0.0
.init 24 24 0 0.0
.init_array 272 272 0 0.0
.rodata 125444 125444 0 0.0
.text 1614096 1614352 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2313768 2313768 0 0.0
.bss 184300 184300 0 0.0
.data 5232 5232 0 0.0
.heap 846912 846912 0 0.0
.text 1276344 1276344 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2308944 2308944 0 0.0
.bss 175824 175824 0 0.0
.data 5528 5528 0 0.0
.heap 855096 855096 0 0.0
.text 1271544 1271544 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2282064 2282064 0 0.0
.bss 174864 174864 0 0.0
.data 5520 5520 0 0.0
.heap 856064 856064 0 0.0
.text 1244664 1244664 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053336 2053336 0 0.0
.bss 156900 156900 0 0.0
.data 4864 4864 0 0.0
.heap 874680 874680 0 0.0
.text 1015936 1015936 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 906795 906795 0 0.0
bss 116296 116296 0 0.0
rodata 101980 101980 0 0.0
text 612912 612912 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 869827 869827 0 0.0
bss 112644 112644 0 0.0
rodata 93276 93276 0 0.0
text 587640 587640 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 832794 832794 0 0.0
bss 117672 117672 0 0.0
rodata 97236 97236 0 0.0
text 543340 543340 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 879407 879407 0 0.0
bss 113560 113560 0 0.0
rodata 98096 98096 0 0.0
text 592356 592356 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 805666 805666 0 0.0
bss 114968 114968 0 0.0
rodata 93388 93388 0 0.0
text 522876 522876 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 884347 884347 0 0.0
bss 113472 113472 0 0.0
rodata 99452 99452 0 0.0
text 595948 595948 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 877587 877587 0 0.0
bss 113348 113348 0 0.0
rodata 97588 97588 0 0.0
text 591144 591144 0 0.0
shell nrf52840dk_nrf52840 (read/write) 781927 781927 0 0.0
bss 109544 109544 0 0.0
rodata 74276 74276 0 0.0
text 523588 523588 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 696974 696974 0 0.0
bss 110524 110524 0 0.0
rodata 68920 68920 0 0.0
text 444228 444228 0 0.0
p6 all-clusters-app default (read/write) 2354544 2354552 8 0.0
.bss 112436 112436 0 0.0
.data 2520 2520 0 0.0
.heap 918384 918384 0 0.0
.text 1312808 1312816 8 0.0
light-app default (read/write) 2294720 2294720 0 0.0
.bss 101016 101016 0 0.0
.data 2360 2360 0 0.0
.heap 929968 929968 0 0.0
.text 1252984 1252984 0 0.0
lock-app default (read/write) 2270784 2270784 0 0.0
.bss 99896 99896 0 0.0
.data 2328 2328 0 0.0
.heap 931120 931120 0 0.0
.text 1229048 1229048 0 0.0
qpg lighting-app qpg6100+debug (read only) 521328 521328 0 0.0
(read/write) 122336 122336 0 0.0
.bss 82712 82712 0 0.0
.data 992 992 0 0.0
.text 516008 516008 0 0.0
lock-app qpg6100+debug (read only) 495696 495696 0 0.0
(read/write) 122332 122332 0 0.0
.bss 81848 81848 0 0.0
.data 948 948 0 0.0
.text 490376 490376 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 810978 810978 0 0.0
bss 82864 82864 0 0.0
noinit 37160 37160 0 0.0
text 566032 566032 0 0.0

emberAfThermostatClusterServerInitCallback via helper.js

Eliminated #ifdefs
FeatureMap new accessors

Feature map in functions to allow for more than one thermostat endpoint within a device.
@chrisbeach59 chrisbeach59 force-pushed the Thermostat-FeatureMapToInit branch from d1f98d3 to 3188509 Compare December 12, 2021 22:45
@github-actions
Copy link

github-actions bot commented Dec 12, 2021

PR #12863: Size comparison from d3322e3 to 3188509

Increases (5 builds for esp32, linux, mbed, p6)
platform target config section d3322e3 3188509 change % change
esp32 all-clusters-app c3devkit (read only) 857268 857274 6 0.0
(read/write) 1304378 1304394 16 0.0
.dram0.data 14124 14132 8 0.1
.flash.text 857268 857274 6 0.0
m5stack (read only) 960819 960827 8 0.0
(read/write) 450092 450100 8 0.0
.flash.rodata 210280 210288 8 0.0
.flash.text 955435 955443 8 0.0
linux thermostat-no-ble arm64 (read only) 1954356 1954660 304 0.0
(read/write) 137425 137441 16 0.0
.data.rel.ro 70528 70536 8 0.0
.text 1620464 1620720 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2314104 2314112 8 0.0
.text 1276680 1276688 8 0.0
p6 all-clusters-app default (read/write) 2361000 2361008 8 0.0
.text 1319264 1319272 8 0.0
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section d3322e3 3188509 change % change
efr32 lighting-app BRD4161A (read only) 815980 815980 0 0.0
(read/write) 123152 123152 0 0.0
.bss 121288 121288 0 0.0
.data 1864 1864 0 0.0
.text 815972 815972 0 0.0
BRD4161A+rpc (read only) 803612 803612 0 0.0
(read/write) 139828 139828 0 0.0
.bss 137864 137864 0 0.0
.data 1964 1964 0 0.0
.text 803604 803604 0 0.0
window-app BRD4161A (read only) 793056 793056 0 0.0
(read/write) 122104 122104 0 0.0
.bss 120272 120272 0 0.0
.data 1828 1828 0 0.0
.text 793048 793048 0 0.0
esp32 all-clusters-app c3devkit (read only) 857268 857274 6 0.0
(read/write) 1304378 1304394 16 0.0
.dram0.bss 64696 64696 0 0.0
.dram0.data 14124 14132 8 0.1
.flash.rodata 172520 172520 0 0.0
.flash.text 857268 857274 6 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 960819 960827 8 0.0
(read/write) 450092 450100 8 0.0
.dram0.bss 73976 73976 0 0.0
.dram0.data 34048 34048 0 0.0
.flash.rodata 210280 210288 8 0.0
.flash.text 955435 955443 8 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 670436 670436 0 0.0
.bss 73872 73872 0 0.0
.data 1896 1896 0 0.0
.text 588868 588868 0 0.0
lock-app k32w061+debug (read/write) 620372 620372 0 0.0
.bss 72024 72024 0 0.0
.data 1856 1856 0 0.0
.text 540692 540692 0 0.0
shell k32w061+debug (read/write) 625740 625740 0 0.0
.bss 74332 74332 0 0.0
.data 1836 1836 0 0.0
.text 543772 543772 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6863180 6863180 0 0.0
(read/write) 318737 318737 0 0.0
.bss 51889 51889 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 208416 208416 0 0.0
.dynamic 560 560 0 0.0
.got 53512 53512 0 0.0
.init 24 24 0 0.0
.init_array 176 176 0 0.0
.rodata 364988 364988 0 0.0
.text 5817828 5817828 0 0.0
thermostat-no-ble arm64 (read only) 1954356 1954660 304 0.0
(read/write) 137425 137441 16 0.0
.bss 59537 59537 0 0.0
.data 832 832 0 0.0
.data.rel.ro 70528 70536 8 0.0
.dynamic 560 560 0 0.0
.got 3648 3648 0 0.0
.init 24 24 0 0.0
.init_array 280 280 0 0.0
.rodata 125780 125780 0 0.0
.text 1620464 1620720 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2314104 2314112 8 0.0
.bss 183964 183964 0 0.0
.data 5240 5240 0 0.0
.heap 847240 847240 0 0.0
.text 1276680 1276688 8 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2309960 2309960 0 0.0
.bss 175824 175824 0 0.0
.data 5536 5536 0 0.0
.heap 855088 855088 0 0.0
.text 1272560 1272560 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2283072 2283072 0 0.0
.bss 174864 174864 0 0.0
.data 5528 5528 0 0.0
.heap 856056 856056 0 0.0
.text 1245672 1245672 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053944 2053944 0 0.0
.bss 156980 156980 0 0.0
.data 4864 4864 0 0.0
.heap 874600 874600 0 0.0
.text 1016544 1016544 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 907735 907735 0 0.0
bss 116300 116300 0 0.0
rodata 102008 102008 0 0.0
text 613828 613828 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 870803 870803 0 0.0
bss 112648 112648 0 0.0
rodata 93308 93308 0 0.0
text 588572 588572 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 833738 833738 0 0.0
bss 117672 117672 0 0.0
rodata 97268 97268 0 0.0
text 544256 544256 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 880351 880351 0 0.0
bss 113560 113560 0 0.0
rodata 98128 98128 0 0.0
text 593264 593264 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 806606 806606 0 0.0
bss 114972 114972 0 0.0
rodata 93416 93416 0 0.0
text 523784 523784 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 885303 885303 0 0.0
bss 113472 113472 0 0.0
rodata 99480 99480 0 0.0
text 596868 596868 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 878543 878543 0 0.0
bss 113352 113352 0 0.0
rodata 97616 97616 0 0.0
text 592064 592064 0 0.0
shell nrf52840dk_nrf52840 (read/write) 782427 782427 0 0.0
bss 109624 109624 0 0.0
rodata 74296 74296 0 0.0
text 523996 523996 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 697506 697506 0 0.0
bss 110604 110604 0 0.0
rodata 68940 68940 0 0.0
text 444636 444636 0 0.0
p6 all-clusters-app default (read/write) 2361000 2361008 8 0.0
.bss 112164 112164 0 0.0
.data 2528 2528 0 0.0
.heap 918648 918648 0 0.0
.text 1319264 1319272 8 0.0
light-app default (read/write) 2301600 2301600 0 0.0
.bss 101080 101080 0 0.0
.data 2368 2368 0 0.0
.heap 929896 929896 0 0.0
.text 1259864 1259864 0 0.0
lock-app default (read/write) 2277672 2277672 0 0.0
.bss 99960 99960 0 0.0
.data 2328 2328 0 0.0
.heap 931056 931056 0 0.0
.text 1235936 1235936 0 0.0
qpg lighting-app qpg6100+debug (read only) 522184 522184 0 0.0
(read/write) 122332 122332 0 0.0
.bss 82712 82712 0 0.0
.data 996 996 0 0.0
.text 516864 516864 0 0.0
lock-app qpg6100+debug (read only) 496564 496564 0 0.0
(read/write) 122336 122336 0 0.0
.bss 81848 81848 0 0.0
.data 952 952 0 0.0
.text 491244 491244 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 812282 812282 0 0.0
bss 82864 82864 0 0.0
noinit 37160 37160 0 0.0
text 567284 567284 0 0.0

@woody-apple
Copy link
Contributor

Fast tracking given this has been in review for > 3 days.

@woody-apple woody-apple merged commit ece58c8 into project-chip:master Dec 13, 2021

if (FeatureMap & 1 << 5) // Bit 5 is Auto Mode supported
{
if (OurFeatureMap & 1 << 5) // Bit 5 is Auto Mode supported
Copy link
Contributor

@andy31415 andy31415 Dec 13, 2021

Choose a reason for hiding this comment

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

we should have constants for these. Would be much easier to read:

constexpr uint16_t kFeatureMap_AutoModeBit = 1 << 5;
// ....

const bool AutoSupported = (OurFeatureMap & kFeatureMap_AutoModeBit) != 0;

CoolSupported = true;

if (FeatureMap & 1 << 2)
OccupancySupported = true;
if (OurFeatureMap & 1 << 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Previous code I could read "OccupancySupported = true;" to figure out what this bit 2 is.

new code is totally opaque. At least a comment should be here or ideally constants that are readable.

@chrisbeach59 chrisbeach59 deleted the Thermostat-FeatureMapToInit branch December 13, 2021 16:54
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.

4 participants