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

[scripts] created bootstrap script for ZAP #22757

Merged

Conversation

markaj-nordic
Copy link
Contributor

Issue Being Resolved

Change overview

Extracted the ZAP tool bootstrap code from the run_zaptool.sh and populated it in the standalone scripts.

Testing

Tested on a pure Ubuntu 20.04 by cloning chip repo and running:

  • generate.py
  • convert.py
  • zap_regen_all.py
  • zap_convert_all.py

without running zaptool before. As a result all required nodejs packets are installed and the scripts run properly.

@markaj-nordic
Copy link
Contributor Author

I see the ZAP template generation CI is failing. Need to fix that.

@github-actions
Copy link

PR #22757: Size comparison from 57c7321 to 5428de5

Increases (7 builds for bl602, bl702, telink)
platform target config section 57c7321 5428de5 change % change
bl602 lighting-app bl602 (read/write) 1388746 1388754 8 0.0
.text 1068352 1068356 4 0.0
bl602+rpc .text 1099700 1099702 2 0.0
bl702 lighting-app bl702 .debug_info 37899567 37899569 2 0.0
.text 956550 956554 4 0.0
bl702+rpc .debug_info 41806177 41806178 1 0.0
.text 1030252 1030254 2 0.0
telink light-switch-app tlsr9518adk80d (read/write) 814492 814500 8 0.0
text 574572 574574 2 0.0
lighting-app tlsr9518adk80d text 592794 592796 2 0.0
ota-requestor-app tlsr9518adk80d text 598974 598976 2 0.0
Full report (16 builds for bl602, bl702, k32w, linux, mbed, nrfconnect, qpg, telink)
platform target config section 57c7321 5428de5 change % change
bl602 lighting-app bl602 (read/write) 1388746 1388754 8 0.0
.bss 90729 90729 0 0.0
.data 9928 9928 0 0.0
.text 1068352 1068356 4 0.0
bl602+rpc (read/write) 1433966 1433966 0 0.0
.bss 98161 98161 0 0.0
.data 10312 10312 0 0.0
.text 1099700 1099702 2 0.0
bl702 lighting-app bl702 0 0 0 0.0
(read only) 3262 3262 0 0.0
(read/write) 1187963 1187963 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 67094 67094 0 0.0
.bss_psram 29696 29696 0 0.0
.comment 48 48 0 0.0
.data 4272 4272 0 0.0
.debug_abbrev 1506903 1506903 0 0.0
.debug_aranges 133080 133080 0 0.0
.debug_frame 486372 486372 0 0.0
.debug_info 37899567 37899569 2 0.0
.debug_line 5252792 5252792 0 0.0
.debug_loc 3364396 3364396 0 0.0
.debug_ranges 359104 359104 0 0.0
.debug_str 3456111 3456111 0 0.0
.hbn 509 509 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 116536 116536 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 564835 564835 0 0.0
.symtab 171584 171584 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 956550 956554 4 0.0
bl702+rpc 0 0 0 0.0
(read only) 3262 3262 0 0.0
(read/write) 1283883 1283883 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 75142 75142 0 0.0
.bss_psram 29936 29936 0 0.0
.comment 48 48 0 0.0
.data 4800 4800 0 0.0
.debug_abbrev 1644448 1644448 0 0.0
.debug_aranges 140584 140584 0 0.0
.debug_frame 511748 511748 0 0.0
.debug_info 41806177 41806178 1 0.0
.debug_line 5627327 5627327 0 0.0
.debug_loc 3557140 3557140 0 0.0
.debug_ranges 381560 381560 0 0.0
.debug_str 3852011 3852011 0 0.0
.hbn 509 509 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 129928 129928 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 624008 624008 0 0.0
.symtab 189392 189392 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 1030252 1030254 2 0.0
k32w light k32w0+release (read/write) 649908 649908 0 0.0
.bss 70712 70712 0 0.0
.data 2068 2068 0 0.0
.text 574400 574400 0 0.0
lock k32w0+release (read/write) 706832 706832 0 0.0
.bss 71160 71160 0 0.0
.data 2076 2076 0 0.0
.text 630868 630868 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10422508 10422508 0 0.0
(read/write) 706257 706257 0 0.0
.bss 33953 33953 0 0.0
.data 2864 2864 0 0.0
.data.rel.ro 650560 650560 0 0.0
.dynamic 560 560 0 0.0
.got 13904 13904 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 517404 517404 0 0.0
.text 8251124 8251124 0 0.0
thermostat-no-ble arm64 (read only) 2387428 2387428 0 0.0
(read/write) 143649 143649 0 0.0
.bss 55361 55361 0 0.0
.data 1912 1912 0 0.0
.data.rel.ro 77208 77208 0 0.0
.dynamic 560 560 0 0.0
.got 5184 5184 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 143644 143644 0 0.0
.text 2001488 2001488 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455648 2455648 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1418292 1418292 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1182863 1182863 0 0.0
bss 144433 144433 0 0.0
rodata 144208 144208 0 0.0
text 815304 815304 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1161531 1161531 0 0.0
bss 143660 143660 0 0.0
rodata 135780 135780 0 0.0
text 803196 803196 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148536 1148536 0 0.0
.bss 110548 110548 0 0.0
.data 868 868 0 0.0
.text 595632 595632 0 0.0
lock-app qpg6105+debug (read/write) 1116432 1116432 0 0.0
.bss 106380 106380 0 0.0
.data 872 872 0 0.0
.text 563532 563532 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 814492 814500 8 0.0
bss 72172 72172 0 0.0
noinit 43488 43488 0 0.0
text 574572 574574 2 0.0
lighting-app tlsr9518adk80d (read/write) 836604 836604 0 0.0
bss 73028 73028 0 0.0
noinit 43488 43488 0 0.0
text 592794 592796 2 0.0
ota-requestor-app tlsr9518adk80d (read/write) 844556 844556 0 0.0
bss 73936 73936 0 0.0
noinit 43488 43488 0 0.0
text 598974 598976 2 0.0

@github-actions
Copy link

github-actions bot commented Sep 29, 2022

PR #22757: Size comparison from 57c7321 to 1f4a2da

Increases (4 builds for bl602, bl702, psoc6)
platform target config section 57c7321 1f4a2da change % change
bl602 lighting-app bl602 (read/write) 1388746 1388754 8 0.0
.text 1068352 1068354 2 0.0
bl702 lighting-app bl702 .debug_info 37899567 37899568 1 0.0
.text 956550 956552 2 0.0
bl702+rpc .debug_info 41806177 41806178 1 0.0
.text 1030252 1030254 2 0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 26821645 26821646 1 0.0
Decreases (3 builds for esp32, psoc6, telink)
platform target config section 57c7321 1f4a2da change % change
esp32 all-clusters-app c3devkit (read only) 1222932 1222930 -2 -0.0
.flash.text 1222932 1222930 -2 -0.0
psoc6 light cy8ckit_062s2_43012 .debug_info 22022610 22022609 -1 -0.0
telink lighting-app tlsr9518adk80d text 592794 592792 -2 -0.0
Full report (37 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 57c7321 1f4a2da change % change
bl602 lighting-app bl602 (read/write) 1388746 1388754 8 0.0
.bss 90729 90729 0 0.0
.data 9928 9928 0 0.0
.text 1068352 1068354 2 0.0
bl602+rpc (read/write) 1433966 1433966 0 0.0
.bss 98161 98161 0 0.0
.data 10312 10312 0 0.0
.text 1099700 1099700 0 0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1187963 1187963 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 67094 67094 0 0.0
.bss_psram 29696 29696 0 0.0
.comment 48 48 0 0.0
.data 4272 4272 0 0.0
.debug_abbrev 1506903 1506903 0 0.0
.debug_aranges 133080 133080 0 0.0
.debug_frame 486372 486372 0 0.0
.debug_info 37899567 37899568 1 0.0
.debug_line 5252792 5252792 0 0.0
.debug_loc 3364396 3364396 0 0.0
.debug_ranges 359104 359104 0 0.0
.debug_str 3456111 3456111 0 0.0
.hbn 509 509 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 116536 116536 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 564835 564835 0 0.0
.symtab 171584 171584 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
956550 956552 2 0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1283883 1283883 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 75142 75142 0 0.0
.bss_psram 29936 29936 0 0.0
.comment 48 48 0 0.0
.data 4800 4800 0 0.0
.debug_abbrev 1644448 1644448 0 0.0
.debug_aranges 140584 140584 0 0.0
.debug_frame 511748 511748 0 0.0
.debug_info 41806177 41806178 1 0.0
.debug_line 5627327 5627327 0 0.0
.debug_loc 3557140 3557140 0 0.0
.debug_ranges 381560 381560 0 0.0
.debug_str 3852011 3852011 0 0.0
.hbn 509 509 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 129928 129928 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 624008 624008 0 0.0
.symtab 189392 189392 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1030252 1030254 2 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 676491 676491 0 0.0
(read/write) 175044 175044 0 0.0
.bss 81228 81228 0 0.0
.data 3380 3380 0 0.0
.rodata 89547 89547 0 0.0
.text 586632 586632 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640739 640739 0 0.0
(read/write) 157996 157996 0 0.0
.bss 80500 80500 0 0.0
.data 3380 3380 0 0.0
.rodata 78683 78683 0 0.0
.text 561736 561736 0 0.0
lock-ftd LP_CC2652R7 (read only) 678015 678015 0 0.0
(read/write) 170688 170688 0 0.0
.bss 78484 78484 0 0.0
.data 3304 3304 0 0.0
.rodata 77231 77231 0 0.0
.text 600304 600304 0 0.0
lock-mtd LP_CC2652R7 (read only) 661907 661907 0 0.0
(read/write) 182484 182484 0 0.0
.bss 74172 74172 0 0.0
.data 3304 3304 0 0.0
.rodata 103099 103099 0 0.0
.text 558328 558328 0 0.0
pump-app LP_CC2652R7 (read only) 687339 687339 0 0.0
(read/write) 162068 162068 0 0.0
.bss 78420 78420 0 0.0
.data 3296 3296 0 0.0
.rodata 90531 90531 0 0.0
.text 596324 596324 0 0.0
pump-controller-app LP_CC2652R7 (read only) 671839 671839 0 0.0
(read/write) 177680 177680 0 0.0
.bss 78532 78532 0 0.0
.data 3292 3292 0 0.0
.rodata 86087 86087 0 0.0
.text 585272 585272 0 0.0
shell LP_CC2652R7 (read only) 667542 667542 0 0.0
(read/write) 186304 186304 0 0.0
.bss 83540 83540 0 0.0
.data 3376 3376 0 0.0
.rodata 86262 86262 0 0.0
.text 580964 580964 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 587290 587290 0 0.0
.app_xip_area 463948 463948 0 0.0
.bss 65776 65776 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 594354 594354 0 0.0
.app_xip_area 465684 465684 0 0.0
.bss 71096 71096 0 0.0
.data 752 752 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 543282 543282 0 0.0
.app_xip_area 424964 424964 0 0.0
.bss 60784 60784 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1110520 1110520 0 0.0
.bss 136532 136532 0 0.0
.data 2072 2072 0 0.0
.text 971896 971896 0 0.0
BRD4161A+rpc (read/write) 973676 973676 0 0.0
.bss 151044 151044 0 0.0
.data 2252 2252 0 0.0
.text 820360 820360 0 0.0
BRD4161A+rs911x (read/write) 1003792 1003792 0 0.0
.bss 169368 169368 0 0.0
.data 2064 2064 0 0.0
.text 832340 832340 0 0.0
lock-app BRD4161A+wf200 (read/write) 1151316 1151316 0 0.0
.bss 152248 152248 0 0.0
.data 2072 2072 0 0.0
.text 996976 996976 0 0.0
window-app BRD4161A (read/write) 1102576 1102576 0 0.0
.bss 137980 137980 0 0.0
.data 2096 2096 0 0.0
.text 962480 962480 0 0.0
esp32 all-clusters-app c3devkit (read only) 1222932 1222930 -2 -0.0
(read/write) 1788054 1788054 0 0.0
.dram0.bss 76944 76944 0 0.0
.dram0.data 13840 13840 0 0.0
.flash.rodata 257624 257624 0 0.0
.flash.text 1222932 1222930 -2 -0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1233023 1233023 0 0.0
(read/write) 563956 563956 0 0.0
.dram0.bss 82304 82304 0 0.0
.dram0.data 34296 34296 0 0.0
.flash.rodata 314688 314688 0 0.0
.flash.text 1227639 1227639 0 0.0
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 649908 649908 0 0.0
.bss 70712 70712 0 0.0
.data 2068 2068 0 0.0
.text 574400 574400 0 0.0
lock k32w0+release (read/write) 706832 706832 0 0.0
.bss 71160 71160 0 0.0
.data 2076 2076 0 0.0
.text 630868 630868 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10422508 10422508 0 0.0
(read/write) 706257 706257 0 0.0
.bss 33953 33953 0 0.0
.data 2864 2864 0 0.0
.data.rel.ro 650560 650560 0 0.0
.dynamic 560 560 0 0.0
.got 13904 13904 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 517404 517404 0 0.0
.text 8251124 8251124 0 0.0
thermostat-no-ble arm64 (read only) 2387428 2387428 0 0.0
(read/write) 143649 143649 0 0.0
.bss 55361 55361 0 0.0
.data 1912 1912 0 0.0
.data.rel.ro 77208 77208 0 0.0
.dynamic 560 560 0 0.0
.got 5184 5184 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 143644 143644 0 0.0
.text 2001488 2001488 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455648 2455648 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1418292 1418292 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1182863 1182863 0 0.0
bss 144433 144433 0 0.0
rodata 144208 144208 0 0.0
text 815304 815304 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1161531 1161531 0 0.0
bss 143660 143660 0 0.0
rodata 135780 135780 0 0.0
text 803196 803196 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841968 841968 0 0.0
(read/write) 1744340 1744340 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188712 188712 0 0.0
.comment 204 204 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 1229470 1229470 0 0.0
.debug_aranges 111816 111816 0 0.0
.debug_frame 373328 373328 0 0.0
.debug_info 26821645 26821646 1 0.0
.debug_line 3668858 3668858 0 0.0
.debug_loc 3582935 3582935 0 0.0
.debug_ranges 338928 338928 0 0.0
.debug_str 3439783 3439783 0 0.0
.heap 841968 841968 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 569480 569480 0 0.0
.symtab 421040 421040 0 0.0
.text 1544576 1544576 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842704 842704 0 0.0
(read/write) 1686948 1686948 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187976 187976 0 0.0
.comment 204 204 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 1221269 1221269 0 0.0
.debug_aranges 111288 111288 0 0.0
.debug_frame 376408 376408 0 0.0
.debug_info 26558429 26558429 0 0.0
.debug_line 3689574 3689574 0 0.0
.debug_loc 3570572 3570572 0 0.0
.debug_ranges 337544 337544 0 0.0
.debug_str 3428796 3428796 0 0.0
.heap 842704 842704 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 533569 533569 0 0.0
.symtab 407472 407472 0 0.0
.text 1487920 1487920 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850896 850896 0 0.0
(read/write) 1605476 1605476 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179992 179992 0 0.0
.comment 204 204 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 2456 2456 0 0.0
.debug_abbrev 1055325 1055325 0 0.0
.debug_aranges 103496 103496 0 0.0
.debug_frame 346736 346736 0 0.0
.debug_info 22022610 22022609 -1 -0.0
.debug_line 3259490 3259490 0 0.0
.debug_loc 3268547 3268547 0 0.0
.debug_ranges 302872 302872 0 0.0
.debug_str 3234328 3234328 0 0.0
.heap 850896 850896 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 469946 469946 0 0.0
.symtab 375920 375920 0 0.0
.text 1414640 1414640 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845864 845864 0 0.0
(read/write) 1643356 1643356 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185008 185008 0 0.0
.comment 204 204 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 1062744 1062744 0 0.0
.debug_aranges 104168 104168 0 0.0
.debug_frame 349560 349560 0 0.0
.debug_info 22401975 22401975 0 0.0
.debug_line 3268207 3268207 0 0.0
.debug_loc 3308436 3308436 0 0.0
.debug_ranges 306216 306216 0 0.0
.debug_str 3261783 3261783 0 0.0
.heap 845864 845864 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 476186 476186 0 0.0
.symtab 379152 379152 0 0.0
.text 1447488 1447488 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148536 1148536 0 0.0
.bss 110548 110548 0 0.0
.data 868 868 0 0.0
.text 595632 595632 0 0.0
lock-app qpg6105+debug (read/write) 1116432 1116432 0 0.0
.bss 106380 106380 0 0.0
.data 872 872 0 0.0
.text 563532 563532 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 814492 814492 0 0.0
bss 72172 72172 0 0.0
noinit 43488 43488 0 0.0
text 574572 574572 0 0.0
lighting-app tlsr9518adk80d (read/write) 836604 836604 0 0.0
bss 73028 73028 0 0.0
noinit 43488 43488 0 0.0
text 592794 592792 -2 -0.0
ota-requestor-app tlsr9518adk80d (read/write) 844556 844556 0 0.0
bss 73936 73936 0 0.0
noinit 43488 43488 0 0.0
text 598974 598974 0 0.0

Extracted bootstrap code from run_zaptool.sh and reuse it
in other Python scripts. This allows to run ZAP convert/generate
tools out of the box without necessity to run zaptool beforehand.

Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
@markaj-nordic markaj-nordic force-pushed the zap_scripts_refinement branch from 1f4a2da to 502a009 Compare October 4, 2022 12:49
@github-actions
Copy link

github-actions bot commented Oct 4, 2022

PR #22757: Size comparison from b44263f to 502a009

Increases (3 builds for esp32, psoc6, telink)
platform target config section b44263f 502a009 change % change
esp32 all-clusters-app c3devkit (read only) 1223088 1223090 2 0.0
.flash.text 1223088 1223090 2 0.0
psoc6 light cy8ckit_062s2_43012 .debug_info 22027217 22027218 1 0.0
telink ota-requestor-app tlsr9518adk80d text 577178 577180 2 0.0
Decreases (5 builds for bl602, bl702, nrfconnect, qpg)
platform target config section b44263f 502a009 change % change
bl602 lighting-app bl602+rpc (read/write) 1434046 1434038 -8 -0.0
.text 1099778 1099774 -4 -0.0
bl702 lighting-app bl702 .debug_info 37902577 37902576 -1 -0.0
.text 956624 956622 -2 -0.0
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 803272 803268 -4 -0.0
qpg lighting-app qpg6105+debug (read/write) 1148140 1148132 -8 -0.0
.text 595240 595232 -8 -0.0
lock-app qpg6105+debug (read/write) 1113204 1113196 -8 -0.0
.text 560300 560292 -8 -0.0
Full report (37 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section b44263f 502a009 change % change
bl602 lighting-app bl602 (read/write) 1388826 1388826 0 0.0
.bss 90729 90729 0 0.0
.data 9928 9928 0 0.0
.text 1068426 1068426 0 0.0
bl602+rpc (read/write) 1434046 1434038 -8 -0.0
.bss 98161 98161 0 0.0
.data 10312 10312 0 0.0
.text 1099778 1099774 -4 -0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1188027 1188027 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 67094 67094 0 0.0
.bss_psram 29696 29696 0 0.0
.comment 48 48 0 0.0
.data 4272 4272 0 0.0
.debug_abbrev 1506897 1506897 0 0.0
.debug_aranges 133088 133088 0 0.0
.debug_frame 486444 486444 0 0.0
.debug_info 37902577 37902576 -1 -0.0
.debug_line 5255713 5255713 0 0.0
.debug_loc 3366207 3366207 0 0.0
.debug_ranges 359136 359136 0 0.0
.debug_str 3456572 3456572 0 0.0
.hbn 509 509 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 116536 116536 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 564835 564835 0 0.0
.symtab 171584 171584 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
956624 956622 -2 -0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1283963 1283963 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 75142 75142 0 0.0
.bss_psram 29936 29936 0 0.0
.comment 48 48 0 0.0
.data 4800 4800 0 0.0
.debug_abbrev 1644442 1644442 0 0.0
.debug_aranges 140592 140592 0 0.0
.debug_frame 511820 511820 0 0.0
.debug_info 41809187 41809187 0 0.0
.debug_line 5630248 5630248 0 0.0
.debug_loc 3558839 3558839 0 0.0
.debug_ranges 381592 381592 0 0.0
.debug_str 3852472 3852472 0 0.0
.hbn 509 509 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 129928 129928 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 624008 624008 0 0.0
.symtab 189392 189392 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1030326 1030326 0 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 676555 676555 0 0.0
(read/write) 174980 174980 0 0.0
.bss 81228 81228 0 0.0
.data 3380 3380 0 0.0
.rodata 89547 89547 0 0.0
.text 586696 586696 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640803 640803 0 0.0
(read/write) 157996 157996 0 0.0
.bss 80500 80500 0 0.0
.data 3380 3380 0 0.0
.rodata 78683 78683 0 0.0
.text 561800 561800 0 0.0
lock-ftd LP_CC2652R7 (read only) 675239 675239 0 0.0
(read/write) 173448 173448 0 0.0
.bss 78468 78468 0 0.0
.data 3304 3304 0 0.0
.rodata 77071 77071 0 0.0
.text 597688 597688 0 0.0
lock-mtd LP_CC2652R7 (read only) 659099 659099 0 0.0
(read/write) 185276 185276 0 0.0
.bss 74156 74156 0 0.0
.data 3304 3304 0 0.0
.rodata 102939 102939 0 0.0
.text 555680 555680 0 0.0
pump-app LP_CC2652R7 (read only) 687403 687403 0 0.0
(read/write) 162004 162004 0 0.0
.bss 78420 78420 0 0.0
.data 3296 3296 0 0.0
.rodata 90531 90531 0 0.0
.text 596388 596388 0 0.0
pump-controller-app LP_CC2652R7 (read only) 671903 671903 0 0.0
(read/write) 177616 177616 0 0.0
.bss 78532 78532 0 0.0
.data 3292 3292 0 0.0
.rodata 86087 86087 0 0.0
.text 585336 585336 0 0.0
shell LP_CC2652R7 (read only) 667606 667606 0 0.0
(read/write) 186240 186240 0 0.0
.bss 83540 83540 0 0.0
.data 3376 3376 0 0.0
.rodata 86262 86262 0 0.0
.text 581028 581028 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 587578 587578 0 0.0
.app_xip_area 464204 464204 0 0.0
.bss 65792 65792 0 0.0
.data 760 760 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 591834 591834 0 0.0
.app_xip_area 463140 463140 0 0.0
.bss 71104 71104 0 0.0
.data 768 768 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 543346 543346 0 0.0
.app_xip_area 425028 425028 0 0.0
.bss 60784 60784 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rpc (read/write) 973636 973636 0 0.0
.bss 152236 152236 0 0.0
.data 2248 2248 0 0.0
.text 819132 819132 0 0.0
BRD4161A+rs911x (read/write) 1031000 1031000 0 0.0
.bss 186640 186640 0 0.0
.data 2092 2092 0 0.0
.text 842248 842248 0 0.0
BRD4187C (read/write) 1145924 1145924 0 0.0
.bss 138616 138616 0 0.0
.data 2596 2596 0 0.0
.text 980116 980116 0 0.0
lock-app BRD4161A+wf200 (read/write) 1157200 1157200 0 0.0
.bss 158192 158192 0 0.0
.data 2100 2100 0 0.0
.text 996884 996884 0 0.0
window-app BRD4187C (read/write) 1137924 1137924 0 0.0
.bss 140056 140056 0 0.0
.data 2620 2620 0 0.0
.text 970652 970652 0 0.0
esp32 all-clusters-app c3devkit (read only) 1223088 1223090 2 0.0
(read/write) 1788118 1788118 0 0.0
.dram0.bss 76944 76944 0 0.0
.dram0.data 13840 13840 0 0.0
.flash.rodata 257688 257688 0 0.0
.flash.text 1223088 1223090 2 0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1233111 1233111 0 0.0
(read/write) 564004 564004 0 0.0
.dram0.bss 82304 82304 0 0.0
.dram0.data 34296 34296 0 0.0
.flash.rodata 314736 314736 0 0.0
.flash.text 1227727 1227727 0 0.0
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 641472 641472 0 0.0
.bss 74816 74816 0 0.0
.data 2064 2064 0 0.0
.text 561864 561864 0 0.0
lock k32w0+release (read/write) 632768 632768 0 0.0
.bss 75592 75592 0 0.0
.data 2080 2080 0 0.0
.text 552368 552368 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10427436 10427436 0 0.0
(read/write) 706401 706401 0 0.0
.bss 33953 33953 0 0.0
.data 2864 2864 0 0.0
.data.rel.ro 650584 650584 0 0.0
.dynamic 560 560 0 0.0
.got 13904 13904 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 517436 517436 0 0.0
.text 8254692 8254692 0 0.0
thermostat-no-ble arm64 (read only) 2388164 2388164 0 0.0
(read/write) 143681 143681 0 0.0
.bss 55361 55361 0 0.0
.data 1912 1912 0 0.0
.data.rel.ro 77208 77208 0 0.0
.dynamic 560 560 0 0.0
.got 5184 5184 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 143676 143676 0 0.0
.text 2001840 2001840 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2451792 2451792 0 0.0
.bss 215028 215028 0 0.0
.data 5872 5872 0 0.0
.text 1414436 1414436 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1182927 1182927 0 0.0
bss 144433 144433 0 0.0
rodata 144208 144208 0 0.0
text 815376 815376 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1161611 1161611 0 0.0
bss 143660 143660 0 0.0
rodata 135780 135780 0 0.0
text 803272 803268 -4 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841968 841968 0 0.0
(read/write) 1744436 1744436 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188712 188712 0 0.0
.comment 204 204 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 1229446 1229446 0 0.0
.debug_aranges 111824 111824 0 0.0
.debug_frame 373368 373368 0 0.0
.debug_info 26826793 26826793 0 0.0
.debug_line 3670561 3670561 0 0.0
.debug_loc 3585589 3585589 0 0.0
.debug_ranges 338960 338960 0 0.0
.debug_str 3440244 3440244 0 0.0
.heap 841968 841968 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 569480 569480 0 0.0
.symtab 421056 421056 0 0.0
.text 1544672 1544672 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842704 842704 0 0.0
(read/write) 1687044 1687044 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187976 187976 0 0.0
.comment 204 204 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 1221245 1221245 0 0.0
.debug_aranges 111296 111296 0 0.0
.debug_frame 376448 376448 0 0.0
.debug_info 26563575 26563575 0 0.0
.debug_line 3691277 3691277 0 0.0
.debug_loc 3573226 3573226 0 0.0
.debug_ranges 337576 337576 0 0.0
.debug_str 3429257 3429257 0 0.0
.heap 842704 842704 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 533569 533569 0 0.0
.symtab 407488 407488 0 0.0
.text 1488016 1488016 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850896 850896 0 0.0
(read/write) 1605572 1605572 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179992 179992 0 0.0
.comment 204 204 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 2456 2456 0 0.0
.debug_abbrev 1055301 1055301 0 0.0
.debug_aranges 103504 103504 0 0.0
.debug_frame 346780 346780 0 0.0
.debug_info 22027217 22027218 1 0.0
.debug_line 3261182 3261182 0 0.0
.debug_loc 3271203 3271203 0 0.0
.debug_ranges 302880 302880 0 0.0
.debug_str 3234789 3234789 0 0.0
.heap 850896 850896 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 469946 469946 0 0.0
.symtab 375936 375936 0 0.0
.text 1414736 1414736 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845880 845880 0 0.0
(read/write) 1639492 1639492 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184992 184992 0 0.0
.comment 204 204 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 1057404 1057404 0 0.0
.debug_aranges 103904 103904 0 0.0
.debug_frame 348672 348672 0 0.0
.debug_info 22265885 22265885 0 0.0
.debug_line 3259043 3259043 0 0.0
.debug_loc 3299781 3299781 0 0.0
.debug_ranges 304824 304824 0 0.0
.debug_str 3254303 3254303 0 0.0
.heap 845880 845880 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 472353 472353 0 0.0
.symtab 377600 377600 0 0.0
.text 1443640 1443640 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148140 1148132 -8 -0.0
.bss 110548 110548 0 0.0
.data 832 832 0 0.0
.text 595240 595232 -8 -0.0
lock-app qpg6105+debug (read/write) 1113204 1113196 -8 -0.0
.bss 106364 106364 0 0.0
.data 836 836 0 0.0
.text 560300 560292 -8 -0.0
telink light-switch-app tlsr9518adk80d (read/write) 788804 788804 0 0.0
bss 72472 72472 0 0.0
noinit 43520 43520 0 0.0
text 552774 552774 0 0.0
lighting-app tlsr9518adk80d (read/write) 810908 810908 0 0.0
bss 73320 73320 0 0.0
noinit 43520 43520 0 0.0
text 570996 570996 0 0.0
ota-requestor-app tlsr9518adk80d (read/write) 818852 818852 0 0.0
bss 74228 74228 0 0.0
noinit 43520 43520 0 0.0
text 577178 577180 2 0.0

@Damian-Nordic Damian-Nordic merged commit 55116a1 into project-chip:master Oct 5, 2022
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.

[Platform] ZAP tool standalone scripts cannot be used out of the box
5 participants