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

[chip-tool] Add force-write to allow writing to non-writable attributes #24788

Merged

Conversation

vivien-apple
Copy link
Contributor

Problem

chip-tool does not generates any write attribute-name method for attributes that are not writable. In some cases, we would like to check that the SDK returns UNSUPPORTED_WRITE. While it can be achieved with write-by-id attribute-id, this is much more complex since write-by-id is agnostic of the type and expects a "custom" type formatted as json.

This PR adds write-override command supports to chip-tool for attributes that are not supposed to be writable.

For the record, I need it for the python bridge, but I would expect some people from the certification process to find that useful too.

@vivien-apple vivien-apple force-pushed the ChipTool_AddWriteOverride branch from 25e0582 to 91b9a0d Compare February 1, 2023 19:36
@vivien-apple vivien-apple changed the title [chip-tool] Add write-override to allow writing to non-writable attributes [chip-tool] Add force-write to allow writing to non-writable attributes Feb 1, 2023
@github-actions
Copy link

github-actions bot commented Feb 1, 2023

PR #24788: Size comparison from 671d25c to 91b9a0d

Increases above 0.2%:

platform target config section 671d25c 91b9a0d change % change
linux chip-tool debug (read only) 11643017 12661849 1018832 8.8
(read/write) 655568 676144 20576 3.1
.data.rel.ro 619504 640080 20576 3.3
.text 9468484 10437236 968752 10.2
chip-tool-ipv6only arm64 (read only) 11040076 11941100 901024 8.2
(read/write) 704904 726600 21696 3.1
.data.rel.ro 648312 668888 20576 3.2
.got 14128 15248 1120 7.9
.rodata 577084 580924 3840 0.7
.text 8789764 9633572 843808 9.6
tv-casting-app debug (read only) 5700265 6718633 1018368 17.9
(read/write) 164568 185144 20576 12.5
.data.rel.ro 102520 123096 20576 20.1
.text 5049346 6017634 968288 19.2
Increases (10 builds for bl702, cc13x2_26x2, linux, psoc6, telink)
platform target config section 671d25c 91b9a0d change % change
bl702 lighting-app bl702+rpc .debug_info 44594116 44594117 1 0.0
.text 1028588 1028590 2 0.0
cc13x2_26x2 lock-mtd LP_CC2652R7 (read/write) 183672 183680 8 0.0
linux chip-tool debug (read only) 11643017 12661849 1018832 8.8
(read/write) 655568 676144 20576 3.1
.data.rel.ro 619504 640080 20576 3.3
.rodata 651301 651365 64 0.0
.text 9468484 10437236 968752 10.2
chip-tool-ipv6only arm64 (read only) 11040076 11941100 901024 8.2
(read/write) 704904 726600 21696 3.1
.data.rel.ro 648312 668888 20576 3.2
.got 14128 15248 1120 7.9
.rodata 577084 580924 3840 0.7
.text 8789764 9633572 843808 9.6
tv-casting-app debug (read only) 5700265 6718633 1018368 17.9
(read/write) 164568 185144 20576 12.5
.data.rel.ro 102520 123096 20576 20.1
.rodata 365300 365364 64 0.0
.text 5049346 6017634 968288 19.2
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 27506002 27506003 1 0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 27063754 27063755 1 0.0
lock cy8ckit_062s2_43012 .debug_info 22711596 22711598 2 0.0
telink all-clusters-minimal-app tlsr9518adk80d text 647798 647800 2 0.0
lighting-app tlsr9518adk80d (read/write) 950484 950492 8 0.0
text 658300 658302 2 0.0
Decreases (6 builds for bl602, cc13x2_26x2, psoc6, telink)
platform target config section 671d25c 91b9a0d change % change
bl602 lighting-app bl602 .text 1022524 1022522 -2 -0.0
cc13x2_26x2 all-clusters-minimal-app LP_CC2652R7 (read only) 640851 640843 -8 -0.0
.text 563064 563056 -8 -0.0
lock-mtd LP_CC2652R7 (read only) 660183 660175 -8 -0.0
.text 556928 556920 -8 -0.0
psoc6 light cy8ckit_062s2_43012 .debug_info 22491180 22491179 -1 -0.0
telink light-switch-app tlsr9518adk80d text 592906 592904 -2 -0.0
thermostat tlsr9518adk80d text 594482 594480 -2 -0.0
Full report (53 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 671d25c 91b9a0d change % change
bl602 lighting-app bl602 (read/write) 1345490 1345490 0 0.0
.bss 94858 94858 0 0.0
.data 9736 9736 0 0.0
.text 1022524 1022522 -2 -0.0
bl602+rpc (read/write) 1390930 1390930 0 0.0
.bss 102906 102906 0 0.0
.data 10128 10128 0 0.0
.text 1053456 1053456 0 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1183467 1183467 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 69969 69969 0 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4056 4056 0 0.0
.debug_abbrev 1549875 1549875 0 0.0
.debug_aranges 134056 134056 0 0.0
.debug_frame 490964 490964 0 0.0
.debug_info 40197533 40197533 0 0.0
.debug_line 5265819 5265819 0 0.0
.debug_loc 3400392 3400392 0 0.0
.debug_ranges 371624 371624 0 0.0
.debug_str 3534818 3534818 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106752 106752 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 571683 571683 0 0.0
.symtab 173184 173184 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
951564 951564 0 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1276159 1276159 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 78017 78017 0 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4608 4608 0 0.0
.debug_abbrev 1698271 1698271 0 0.0
.debug_aranges 142280 142280 0 0.0
.debug_frame 518668 518668 0 0.0
.debug_info 44594116 44594117 1 0.0
.debug_line 5664170 5664170 0 0.0
.debug_loc 3596502 3596502 0 0.0
.debug_ranges 395328 395328 0 0.0
.debug_str 3938127 3938127 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121296 121296 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 632280 632280 0 0.0
.symtab 191536 191536 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1028588 1028590 2 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 676771 676771 0 0.0
(read/write) 174476 174476 0 0.0
.bss 80940 80940 0 0.0
.data 3384 3384 0 0.0
.rodata 87515 87515 0 0.0
.text 588940 588940 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640851 640843 -8 -0.0
(read/write) 157632 157632 0 0.0
.bss 80132 80132 0 0.0
.data 3384 3384 0 0.0
.rodata 77467 77467 0 0.0
.text 563064 563056 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 673823 673823 0 0.0
(read/write) 174768 174768 0 0.0
.bss 78372 78372 0 0.0
.data 3312 3312 0 0.0
.rodata 76311 76311 0 0.0
.text 597032 597032 0 0.0
lock-mtd LP_CC2652R7 (read only) 660183 660175 -8 -0.0
(read/write) 183672 183680 8 0.0
.bss 73636 73636 0 0.0
.data 3312 3312 0 0.0
.rodata 102775 102775 0 0.0
.text 556928 556920 -8 -0.0
pump-app LP_CC2652R7 (read only) 686883 686883 0 0.0
(read/write) 162444 162444 0 0.0
.bss 78340 78340 0 0.0
.data 3276 3276 0 0.0
.rodata 90435 90435 0 0.0
.text 595968 595968 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672315 672315 0 0.0
(read/write) 177124 177124 0 0.0
.bss 78452 78452 0 0.0
.data 3300 3300 0 0.0
.rodata 86515 86515 0 0.0
.text 585320 585320 0 0.0
shell LP_CC2652R7 (read only) 668022 668022 0 0.0
(read/write) 185296 185296 0 0.0
.bss 83012 83012 0 0.0
.data 3380 3380 0 0.0
.rodata 84254 84254 0 0.0
.text 583456 583456 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 583898 583898 0 0.0
.app_xip_area 460652 460652 0 0.0
.bss 65696 65696 0 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 587614 587614 0 0.0
.app_xip_area 459072 459072 0 0.0
.bss 70984 70984 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 549358 549358 0 0.0
.app_xip_area 431592 431592 0 0.0
.bss 60256 60256 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs911x (read/write) 1037624 1037624 0 0.0
.bss 181624 181624 0 0.0
.data 2044 2044 0 0.0
.text 853932 853932 0 0.0
BRD4187C (read/write) 1150752 1150752 0 0.0
.bss 132920 132920 0 0.0
.data 2544 2544 0 0.0
.text 990692 990692 0 0.0
lock-app BRD4161A+wf200 (read/write) 1065296 1065296 0 0.0
.bss 153152 153152 0 0.0
.data 2052 2052 0 0.0
.text 910068 910068 0 0.0
window-app BRD4187C (read/write) 1145660 1145660 0 0.0
.bss 134424 134424 0 0.0
.data 2572 2572 0 0.0
.text 984068 984068 0 0.0
esp32 all-clusters-app c3devkit (read only) 1042100 1042100 0 0.0
(read/write) 1516178 1516178 0 0.0
.dram0.bss 76032 76032 0 0.0
.dram0.data 13792 13792 0 0.0
.flash.rodata 220136 220136 0 0.0
.flash.text 1042100 1042100 0 0.0
.iram0.text 72896 72896 0 0.0
m5stack (read only) 1094279 1094279 0 0.0
(read/write) 497827 497827 0 0.0
.dram0.bss 81080 81080 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 248904 248904 0 0.0
.flash.text 1088895 1088895 0 0.0
.iram0.text 124855 124855 0 0.0
k32w contact k32w0+release (read/write) 659420 659420 0 0.0
.bss 76624 76624 0 0.0
.data 2112 2112 0 0.0
.text 561572 561572 0 0.0
light k32w0+release (read/write) 671420 671420 0 0.0
.bss 74408 74408 0 0.0
.data 2064 2064 0 0.0
.text 592220 592220 0 0.0
lock k32w0+release (read/write) 630800 630800 0 0.0
.bss 75176 75176 0 0.0
.data 2084 2084 0 0.0
.text 550812 550812 0 0.0
linux all-clusters-app debug (read only) 3154937 3154937 0 0.0
(read/write) 154864 154864 0 0.0
.bss 63744 63744 0 0.0
.data 2272 2272 0 0.0
.data.rel.ro 82248 82248 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1192 1192 0 0.0
.rodata 283659 283659 0 0.0
.text 2685858 2685858 0 0.0
all-clusters-minimal-app debug (read only) 2971209 2971209 0 0.0
(read/write) 148080 148080 0 0.0
.bss 62880 62880 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 76472 76472 0 0.0
.dynamic 608 608 0 0.0
.got 4688 4688 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 282379 282379 0 0.0
.text 2506738 2506738 0 0.0
bridge-app debug (read only) 2524825 2524825 0 0.0
(read/write) 132320 132320 0 0.0
.bss 53632 53632 0 0.0
.data 3632 3632 0 0.0
.data.rel.ro 68952 68952 0 0.0
.dynamic 608 608 0 0.0
.got 4616 4616 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 213920 213920 0 0.0
.text 2138514 2138514 0 0.0
chip-tool debug (read only) 11643017 12661849 1018832 8.8
(read/write) 655568 676144 20576 3.1
.bss 26264 26264 0 0.0
.data 3042 3042 0 0.0
.data.rel.ro 619504 640080 20576 3.3
.dynamic 608 608 0 0.0
.got 5352 5352 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 651301 651365 64 0.0
.text 9468484 10437236 968752 10.2
chip-tool-ipv6only arm64 (read only) 11040076 11941100 901024 8.2
(read/write) 704904 726600 21696 3.1
.bss 34248 34248 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 648312 668888 20576 3.2
.dynamic 560 560 0 0.0
.got 14128 15248 1120 7.9
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 577084 580924 3840 0.7
.text 8789764 9633572 843808 9.6
lighting-app debug+rpc (read only) 2692257 2692257 0 0.0
(read/write) 131688 131688 0 0.0
.bss 51104 51104 0 0.0
.data 2288 2288 0 0.0
.data.rel.ro 72088 72088 0 0.0
.dynamic 608 608 0 0.0
.got 4648 4648 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 229856 229856 0 0.0
.text 2285042 2285042 0 0.0
lock-app debug (read only) 2655033 2655033 0 0.0
(read/write) 126736 126736 0 0.0
.bss 49536 49536 0 0.0
.data 1904 1904 0 0.0
.data.rel.ro 69064 69064 0 0.0
.dynamic 608 608 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 246088 246088 0 0.0
.text 2236434 2236434 0 0.0
ota-provider-app debug (read only) 2225057 2225057 0 0.0
(read/write) 106480 106480 0 0.0
.bss 47712 47712 0 0.0
.data 2080 2080 0 0.0
.data.rel.ro 51560 51560 0 0.0
.dynamic 608 608 0 0.0
.got 3744 3744 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 197416 197416 0 0.0
.text 1887122 1887122 0 0.0
ota-requestor-app debug (read only) 2386569 2386569 0 0.0
(read/write) 114208 114208 0 0.0
.bss 50176 50176 0 0.0
.data 2480 2480 0 0.0
.data.rel.ro 56328 56328 0 0.0
.dynamic 608 608 0 0.0
.got 3744 3744 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 204400 204400 0 0.0
.text 2032626 2032626 0 0.0
shell debug (read only) 2684385 2684385 0 0.0
(read/write) 139360 139360 0 0.0
.bss 59144 59144 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 73128 73128 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1040 1040 0 0.0
.rodata 241746 241746 0 0.0
.text 2282194 2282194 0 0.0
thermostat-no-ble arm64 (read only) 2506620 2506620 0 0.0
(read/write) 144680 144680 0 0.0
.bss 56456 56456 0 0.0
.data 1824 1824 0 0.0
.data.rel.ro 76968 76968 0 0.0
.dynamic 560 560 0 0.0
.got 5392 5392 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 150856 150856 0 0.0
.text 2093936 2093936 0 0.0
tv-app debug (read only) 3314737 3314737 0 0.0
(read/write) 259568 259568 0 0.0
.bss 170872 170872 0 0.0
.data 3904 3904 0 0.0
.data.rel.ro 78096 78096 0 0.0
.dynamic 608 608 0 0.0
.got 5008 5008 0 0.0
.init 27 27 0 0.0
.init_array 1072 1072 0 0.0
.rodata 270520 270520 0 0.0
.text 2849490 2849490 0 0.0
tv-casting-app debug (read only) 5700265 6718633 1018368 17.9
(read/write) 164568 185144 20576 12.5
.bss 53496 53496 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 102520 123096 20576 20.1
.dynamic 608 608 0 0.0
.got 4928 4928 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 365300 365364 64 0.0
.text 5049346 6017634 968288 19.2
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2463256 2463256 0 0.0
.bss 215956 215956 0 0.0
.data 5880 5880 0 0.0
.text 1425900 1425900 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1160672 1160672 0 0.0
bss 143595 143595 0 0.0
rodata 133436 133436 0 0.0
text 803808 803808 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1366012 1366012 0 0.0
bss 106054 106054 0 0.0
rodata 210876 210876 0 0.0
text 763564 763564 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1107048 1107048 0 0.0
bss 142751 142751 0 0.0
rodata 110580 110580 0 0.0
text 773880 773880 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840808 840808 0 0.0
(read/write) 1755764 1755764 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189864 189864 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2672 2672 0 0.0
.debug_abbrev 1251453 1251453 0 0.0
.debug_aranges 111280 111280 0 0.0
.debug_frame 373636 373636 0 0.0
.debug_info 27506002 27506003 1 0.0
.debug_line 3778996 3778996 0 0.0
.debug_loc 3673164 3673164 0 0.0
.debug_ranges 362248 362248 0 0.0
.debug_str 3485030 3485030 0 0.0
.heap 840808 840808 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 577246 577246 0 0.0
.symtab 424288 424288 0 0.0
.text 1554840 1554840 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841624 841624 0 0.0
(read/write) 1697644 1697644 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189056 189056 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1237164 1237164 0 0.0
.debug_aranges 110544 110544 0 0.0
.debug_frame 376080 376080 0 0.0
.debug_info 27063754 27063755 1 0.0
.debug_line 3787362 3787362 0 0.0
.debug_loc 3656895 3656895 0 0.0
.debug_ranges 360216 360216 0 0.0
.debug_str 3470783 3470783 0 0.0
.heap 841624 841624 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 538662 538662 0 0.0
.symtab 409728 409728 0 0.0
.text 1497536 1497536 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849944 849944 0 0.0
(read/write) 1611196 1611196 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180936 180936 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1072030 1072030 0 0.0
.debug_aranges 102800 102800 0 0.0
.debug_frame 346624 346624 0 0.0
.debug_info 22491180 22491179 -1 -0.0
.debug_line 3340167 3340167 0 0.0
.debug_loc 3336443 3336443 0 0.0
.debug_ranges 319440 319440 0 0.0
.debug_str 3274807 3274807 0 0.0
.heap 849944 849944 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474072 474072 0 0.0
.symtab 377632 377632 0 0.0
.text 1419408 1419408 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 844960 844960 0 0.0
(read/write) 1645188 1645188 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185912 185912 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1073262 1073262 0 0.0
.debug_aranges 103192 103192 0 0.0
.debug_frame 348448 348448 0 0.0
.debug_info 22711596 22711598 2 0.0
.debug_line 3341772 3341772 0 0.0
.debug_loc 3357821 3357821 0 0.0
.debug_ranges 321304 321304 0 0.0
.debug_str 3291255 3291255 0 0.0
.heap 844960 844960 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 477035 477035 0 0.0
.symtab 379504 379504 0 0.0
.text 1448416 1448416 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1147688 1147688 0 0.0
.bss 99940 99940 0 0.0
.data 848 848 0 0.0
.text 594788 594788 0 0.0
lock-app qpg6105+debug (read/write) 1115408 1115408 0 0.0
.bss 96460 96460 0 0.0
.data 860 860 0 0.0
.text 562504 562504 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1015272 1015272 0 0.0
bss 98044 98044 0 0.0
text 685416 685416 0 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 951940 951940 0 0.0
bss 97092 97092 0 0.0
text 647798 647800 2 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 857388 857388 0 0.0
bss 89216 89216 0 0.0
text 578778 578778 0 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 873168 873168 0 0.0
bss 89304 89304 0 0.0
text 592906 592904 -2 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 950484 950492 8 0.0
bss 97452 97452 0 0.0
text 658300 658302 2 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 887328 887328 0 0.0
bss 90252 90252 0 0.0
text 604272 604272 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 877376 877376 0 0.0
bss 90692 90692 0 0.0
text 594482 594480 -2 -0.0

@vivien-apple vivien-apple force-pushed the ChipTool_AddWriteOverride branch from 91b9a0d to 1bedd2b Compare February 2, 2023 08:28
@github-actions
Copy link

github-actions bot commented Feb 2, 2023

PR #24788: Size comparison from cd919db to 1bedd2b

Increases above 0.2%:

platform target config section cd919db 1bedd2b change % change
linux chip-tool-ipv6only arm64 (read only) 11040124 11937900 897776 8.1
(read/write) 704904 726600 21696 3.1
.data.rel.ro 648312 668888 20576 3.2
.got 14128 15248 1120 7.9
.rodata 577084 580924 3840 0.7
.text 8789812 9630372 840560 9.6
Increases (12 builds for bl602, bl702, linux, psoc6, telink)
platform target config section cd919db 1bedd2b change % change
bl602 lighting-app bl602 (read/write) 1345474 1345482 8 0.0
.text 1022544 1022548 4 0.0
bl602+rpc (read/write) 1390666 1390674 8 0.0
.text 1053222 1053226 4 0.0
bl702 lighting-app bl702 (read/write) 1183451 1183467 16 0.0
.debug_info 40198206 40198208 2 0.0
.text 951584 951588 4 0.0
bl702+rpc (read/write) 1276143 1276159 16 0.0
.debug_info 44594578 44594579 1 0.0
.text 1028608 1028610 2 0.0
linux chip-tool-ipv6only arm64 (read only) 11040124 11937900 897776 8.1
(read/write) 704904 726600 21696 3.1
.data.rel.ro 648312 668888 20576 3.2
.got 14128 15248 1120 7.9
.rodata 577084 580924 3840 0.7
.text 8789812 9630372 840560 9.6
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 27505600 27505601 1 0.0
lock cy8ckit_062s2_43012 .debug_info 22711588 22711589 1 0.0
telink all-clusters-app tlsr9518adk80d text 685422 685424 2 0.0
all-clusters-minimal-app tlsr9518adk80d (read/write) 951908 951916 8 0.0
text 647804 647806 2 0.0
contact-sensor-app tlsr9518adk80d text 578864 578866 2 0.0
light-switch-app tlsr9518adk80d (read/write) 873136 873144 8 0.0
text 592908 592910 2 0.0
lighting-app tlsr9518adk80d text 658304 658306 2 0.0
Decreases (5 builds for esp32, psoc6, qpg)
platform target config section cd919db 1bedd2b change % change
esp32 all-clusters-app c3devkit (read only) 1046618 1046616 -2 -0.0
.flash.text 1046618 1046616 -2 -0.0
psoc6 all-clusters-minimal cy8ckit_062s2_43012 .debug_info 27063360 27063359 -1 -0.0
light cy8ckit_062s2_43012 .debug_info 22490611 22490610 -1 -0.0
qpg lighting-app qpg6105+debug (read/write) 1147696 1147688 -8 -0.0
.text 594796 594788 -8 -0.0
lock-app qpg6105+debug (read/write) 1115424 1115416 -8 -0.0
.text 562520 562512 -8 -0.0
Full report (42 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section cd919db 1bedd2b change % change
bl602 lighting-app bl602 (read/write) 1345474 1345482 8 0.0
.bss 94826 94826 0 0.0
.data 9736 9736 0 0.0
.text 1022544 1022548 4 0.0
bl602+rpc (read/write) 1390666 1390674 8 0.0
.bss 102874 102874 0 0.0
.data 10128 10128 0 0.0
.text 1053222 1053226 4 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1183451 1183467 16 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 69937 69937 0 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4056 4056 0 0.0
.debug_abbrev 1550158 1550158 0 0.0
.debug_aranges 134056 134056 0 0.0
.debug_frame 490960 490960 0 0.0
.debug_info 40198206 40198208 2 0.0
.debug_line 5266044 5266044 0 0.0
.debug_loc 3400632 3400632 0 0.0
.debug_ranges 371672 371672 0 0.0
.debug_str 3534920 3534920 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106752 106752 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 571683 571683 0 0.0
.symtab 173184 173184 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
951584 951588 4 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1276143 1276159 16 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 77985 77985 0 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4608 4608 0 0.0
.debug_abbrev 1698572 1698572 0 0.0
.debug_aranges 142280 142280 0 0.0
.debug_frame 518664 518664 0 0.0
.debug_info 44594578 44594579 1 0.0
.debug_line 5664512 5664512 0 0.0
.debug_loc 3596881 3596881 0 0.0
.debug_ranges 395376 395376 0 0.0
.debug_str 3938158 3938158 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121296 121296 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 632280 632280 0 0.0
.symtab 191536 191536 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1028608 1028610 2 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 676779 676779 0 0.0
(read/write) 174436 174436 0 0.0
.bss 80908 80908 0 0.0
.data 3384 3384 0 0.0
.rodata 87515 87515 0 0.0
.text 588948 588948 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640867 640867 0 0.0
(read/write) 157600 157600 0 0.0
.bss 80100 80100 0 0.0
.data 3384 3384 0 0.0
.rodata 77467 77467 0 0.0
.text 563080 563080 0 0.0
lock-ftd LP_CC2652R7 (read only) 673831 673831 0 0.0
(read/write) 174728 174728 0 0.0
.bss 78340 78340 0 0.0
.data 3312 3312 0 0.0
.rodata 76311 76311 0 0.0
.text 597040 597040 0 0.0
lock-mtd LP_CC2652R7 (read only) 660199 660199 0 0.0
(read/write) 183624 183624 0 0.0
.bss 73604 73604 0 0.0
.data 3312 3312 0 0.0
.rodata 102775 102775 0 0.0
.text 556944 556944 0 0.0
pump-app LP_CC2652R7 (read only) 686883 686883 0 0.0
(read/write) 162412 162412 0 0.0
.bss 78308 78308 0 0.0
.data 3276 3276 0 0.0
.rodata 90435 90435 0 0.0
.text 595968 595968 0 0.0
pump-controller-app LP_CC2652R7 (read only) 672315 672315 0 0.0
(read/write) 177092 177092 0 0.0
.bss 78420 78420 0 0.0
.data 3300 3300 0 0.0
.rodata 86515 86515 0 0.0
.text 585320 585320 0 0.0
shell LP_CC2652R7 (read only) 668030 668030 0 0.0
(read/write) 185256 185256 0 0.0
.bss 82980 82980 0 0.0
.data 3380 3380 0 0.0
.rodata 84254 84254 0 0.0
.text 583464 583464 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 583890 583890 0 0.0
.app_xip_area 460676 460676 0 0.0
.bss 65664 65664 0 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 587614 587614 0 0.0
.app_xip_area 459104 459104 0 0.0
.bss 70952 70952 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 549358 549358 0 0.0
.app_xip_area 431624 431624 0 0.0
.bss 60224 60224 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs911x (read/write) 1037560 1037560 0 0.0
.bss 181592 181592 0 0.0
.data 2044 2044 0 0.0
.text 853900 853900 0 0.0
BRD4187C (read/write) 1150832 1150832 0 0.0
.bss 132888 132888 0 0.0
.data 2544 2544 0 0.0
.text 990804 990804 0 0.0
lock-app BRD4161A+wf200 (read/write) 1065248 1065248 0 0.0
.bss 153120 153120 0 0.0
.data 2052 2052 0 0.0
.text 910052 910052 0 0.0
window-app BRD4187C (read/write) 1145732 1145732 0 0.0
.bss 134392 134392 0 0.0
.data 2572 2572 0 0.0
.text 984172 984172 0 0.0
esp32 all-clusters-app c3devkit (read only) 1046618 1046616 -2 -0.0
(read/write) 1518650 1518650 0 0.0
.dram0.bss 77992 77992 0 0.0
.dram0.data 13792 13792 0 0.0
.flash.rodata 220640 220640 0 0.0
.flash.text 1046618 1046616 -2 -0.0
.iram0.text 72896 72896 0 0.0
m5stack (read only) 1098355 1098355 0 0.0
(read/write) 500271 500271 0 0.0
.dram0.bss 83040 83040 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 249388 249388 0 0.0
.flash.text 1092971 1092971 0 0.0
.iram0.text 124855 124855 0 0.0
k32w contact k32w0+release (read/write) 659436 659436 0 0.0
.bss 76592 76592 0 0.0
.data 2112 2112 0 0.0
.text 561620 561620 0 0.0
light k32w0+release (read/write) 671388 671388 0 0.0
.bss 74376 74376 0 0.0
.data 2064 2064 0 0.0
.text 592220 592220 0 0.0
lock k32w0+release (read/write) 630768 630768 0 0.0
.bss 75144 75144 0 0.0
.data 2084 2084 0 0.0
.text 550812 550812 0 0.0
linux chip-tool-ipv6only arm64 (read only) 11040124 11937900 897776 8.1
(read/write) 704904 726600 21696 3.1
.bss 34248 34248 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 648312 668888 20576 3.2
.dynamic 560 560 0 0.0
.got 14128 15248 1120 7.9
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 577084 580924 3840 0.7
.text 8789812 9630372 840560 9.6
thermostat-no-ble arm64 (read only) 2506620 2506620 0 0.0
(read/write) 144680 144680 0 0.0
.bss 56456 56456 0 0.0
.data 1824 1824 0 0.0
.data.rel.ro 76968 76968 0 0.0
.dynamic 560 560 0 0.0
.got 5392 5392 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 150856 150856 0 0.0
.text 2093936 2093936 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2463320 2463320 0 0.0
.bss 215924 215924 0 0.0
.data 5880 5880 0 0.0
.text 1425964 1425964 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1160656 1160656 0 0.0
bss 143563 143563 0 0.0
rodata 133436 133436 0 0.0
text 803804 803804 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1365948 1365948 0 0.0
bss 106022 106022 0 0.0
rodata 210876 210876 0 0.0
text 763556 763556 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1106920 1106920 0 0.0
bss 142719 142719 0 0.0
rodata 110580 110580 0 0.0
text 773876 773876 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840840 840840 0 0.0
(read/write) 1755652 1755652 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189832 189832 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2672 2672 0 0.0
.debug_abbrev 1251513 1251513 0 0.0
.debug_aranges 111280 111280 0 0.0
.debug_frame 373628 373628 0 0.0
.debug_info 27505600 27505601 1 0.0
.debug_line 3779127 3779127 0 0.0
.debug_loc 3673110 3673110 0 0.0
.debug_ranges 362248 362248 0 0.0
.debug_str 3485030 3485030 0 0.0
.heap 840840 840840 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 577246 577246 0 0.0
.symtab 424288 424288 0 0.0
.text 1554760 1554760 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841656 841656 0 0.0
(read/write) 1697516 1697516 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189024 189024 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1237224 1237224 0 0.0
.debug_aranges 110544 110544 0 0.0
.debug_frame 376072 376072 0 0.0
.debug_info 27063360 27063359 -1 -0.0
.debug_line 3787502 3787502 0 0.0
.debug_loc 3656841 3656841 0 0.0
.debug_ranges 360216 360216 0 0.0
.debug_str 3470783 3470783 0 0.0
.heap 841656 841656 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 538662 538662 0 0.0
.symtab 409728 409728 0 0.0
.text 1497440 1497440 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849976 849976 0 0.0
(read/write) 1611100 1611100 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180904 180904 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1071614 1071614 0 0.0
.debug_aranges 102800 102800 0 0.0
.debug_frame 346616 346616 0 0.0
.debug_info 22490611 22490610 -1 -0.0
.debug_line 3340294 3340294 0 0.0
.debug_loc 3336389 3336389 0 0.0
.debug_ranges 319440 319440 0 0.0
.debug_str 3274807 3274807 0 0.0
.heap 849976 849976 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474072 474072 0 0.0
.symtab 377632 377632 0 0.0
.text 1419344 1419344 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 844992 844992 0 0.0
(read/write) 1645124 1645124 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185880 185880 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1073262 1073262 0 0.0
.debug_aranges 103192 103192 0 0.0
.debug_frame 348448 348448 0 0.0
.debug_info 22711588 22711589 1 0.0
.debug_line 3341775 3341775 0 0.0
.debug_loc 3357746 3357746 0 0.0
.debug_ranges 321304 321304 0 0.0
.debug_str 3291255 3291255 0 0.0
.heap 844992 844992 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 477035 477035 0 0.0
.symtab 379504 379504 0 0.0
.text 1448384 1448384 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1147696 1147688 -8 -0.0
.bss 99908 99908 0 0.0
.data 848 848 0 0.0
.text 594796 594788 -8 -0.0
lock-app qpg6105+debug (read/write) 1115424 1115416 -8 -0.0
.bss 96428 96428 0 0.0
.data 860 860 0 0.0
.text 562520 562512 -8 -0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1015248 1015248 0 0.0
bss 98012 98012 0 0.0
text 685422 685424 2 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 951908 951916 8 0.0
bss 97060 97060 0 0.0
text 647804 647806 2 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 857444 857444 0 0.0
bss 89184 89184 0 0.0
text 578864 578866 2 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 873136 873144 8 0.0
bss 89272 89272 0 0.0
text 592908 592910 2 0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 950460 950460 0 0.0
bss 97420 97420 0 0.0
text 658304 658306 2 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 887304 887304 0 0.0
bss 90220 90220 0 0.0
text 604278 604278 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 877352 877352 0 0.0
bss 90660 90660 0 0.0
text 594486 594486 0 0.0

@andy31415 andy31415 merged commit fc41449 into project-chip:master Feb 2, 2023
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
…es (project-chip#24788)

* [chip-tool] Add write-override to allow writing to non-writable attributes

* Update generated chip-tool commands
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