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

Cherry-pick [ESP32] Reclaim the BLE memory as heap (#23046) #23051

Merged
merged 1 commit into from Oct 6, 2022

Conversation

shubhamdp
Copy link
Contributor

Cherry-pick 576dd36 (PR: #23046) from master into v1.0-branch

@github-actions
Copy link

github-actions bot commented Oct 6, 2022

PR #23051: Size comparison from 83123f8 to 2c407f0

Increases (10 builds for bl602, bl702, cc13x2_26x2, esp32, psoc6, telink)
platform target config section 83123f8 2c407f0 change % change
bl602 lighting-app bl602 (read/write) 1388518 1388526 8 0.0
.text 1068288 1068290 2 0.0
bl602+rpc .text 1099636 1099638 2 0.0
bl702 lighting-app bl702 (read/write) 1188507 1188523 16 0.0
.debug_info 37897264 37897265 1 0.0
.text 957104 957106 2 0.0
bl702+rpc .debug_info 41803879 41803881 2 0.0
.text 1030808 1030812 4 0.0
cc13x2_26x2 pump-controller-app LP_CC2652R7 (read/write) 177736 177744 8 0.0
esp32 all-clusters-app c3devkit (read only) 1222980 1222984 4 0.0
.flash.text 1222980 1222984 4 0.0
m5stack (read only) 1233031 1233035 4 0.0
(read/write) 564004 564012 8 0.0
.flash.rodata 314736 314744 8 0.0
.flash.text 1227647 1227651 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 26818602 26818603 1 0.0
telink light-switch-app tlsr9518adk80d (read/write) 813668 813676 8 0.0
text 574572 574576 4 0.0
lighting-app tlsr9518adk80d text 592792 592796 4 0.0
Decreases (4 builds for cc13x2_26x2, psoc6, telink)
platform target config section 83123f8 2c407f0 change % change
cc13x2_26x2 pump-controller-app LP_CC2652R7 (read only) 671783 671775 -8 -0.0
.text 585240 585232 -8 -0.0
psoc6 all-clusters-minimal cy8ckit_062s2_43012 .debug_info 26555385 26555384 -1 -0.0
light cy8ckit_062s2_43012 .debug_info 22019580 22019579 -1 -0.0
telink ota-requestor-app tlsr9518adk80d (read/write) 843740 843732 -8 -0.0
text 598978 598976 -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 83123f8 2c407f0 change % change
bl602 lighting-app bl602 (read/write) 1388518 1388526 8 0.0
.bss 90529 90529 0 0.0
.data 9936 9936 0 0.0
.text 1068288 1068290 2 0.0
bl602+rpc (read/write) 1433738 1433738 0 0.0
.bss 97961 97961 0 0.0
.data 10320 10320 0 0.0
.text 1099636 1099638 2 0.0
bl702 lighting-app bl702 (read only) 3262 3262 0 0.0
(read/write) 1188507 1188523 16 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 67006 67006 0 0.0
.bss_psram 29696 29696 0 0.0
.comment 48 48 0 0.0
.data 4280 4280 0 0.0
.debug_abbrev 1506966 1506966 0 0.0
.debug_aranges 133152 133152 0 0.0
.debug_frame 486580 486580 0 0.0
.debug_info 37897264 37897265 1 0.0
.debug_line 5253527 5253527 0 0.0
.debug_loc 3362129 3362129 0 0.0
.debug_ranges 359808 359808 0 0.0
.debug_str 3456138 3456138 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 116616 116616 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 565136 565136 0 0.0
.symtab 171840 171840 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
957104 957106 2 0.0
bl702+rpc (read only) 3262 3262 0 0.0
(read/write) 1284419 1284419 0 0.0
.bleromro 6296 6296 0 0.0
.bleromrw 124 124 0 0.0
.boot2 688 688 0 0.0
.bss 75038 75038 0 0.0
.bss_psram 29936 29936 0 0.0
.comment 48 48 0 0.0
.data 4800 4800 0 0.0
.debug_abbrev 1644545 1644545 0 0.0
.debug_aranges 140656 140656 0 0.0
.debug_frame 511956 511956 0 0.0
.debug_info 41803879 41803881 2 0.0
.debug_line 5628062 5628062 0 0.0
.debug_loc 3554748 3554748 0 0.0
.debug_ranges 382264 382264 0 0.0
.debug_str 3852105 3852105 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 130008 130008 0 0.0
.rsvd 3188 3188 0 0.0
.shstrtab 293 293 0 0.0
.stack 2048 2048 0 0.0
.strtab 624309 624309 0 0.0
.symtab 189648 189648 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3262 3262 0 0.0
.text 0 0 0 0.0
1030808 1030812 4 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 676595 676595 0 0.0
(read/write) 174940 174940 0 0.0
.bss 81228 81228 0 0.0
.data 3380 3380 0 0.0
.rodata 89603 89603 0 0.0
.text 586680 586680 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640835 640835 0 0.0
(read/write) 157996 157996 0 0.0
.bss 80500 80500 0 0.0
.data 3380 3380 0 0.0
.rodata 78739 78739 0 0.0
.text 561776 561776 0 0.0
lock-ftd LP_CC2652R7 (read only) 678119 678119 0 0.0
(read/write) 170584 170584 0 0.0
.bss 78484 78484 0 0.0
.data 3304 3304 0 0.0
.rodata 77287 77287 0 0.0
.text 600352 600352 0 0.0
lock-mtd LP_CC2652R7 (read only) 661947 661947 0 0.0
(read/write) 182444 182444 0 0.0
.bss 74172 74172 0 0.0
.data 3304 3304 0 0.0
.rodata 103123 103123 0 0.0
.text 558344 558344 0 0.0
pump-app LP_CC2652R7 (read only) 687275 687275 0 0.0
(read/write) 162132 162132 0 0.0
.bss 78420 78420 0 0.0
.data 3296 3296 0 0.0
.rodata 90507 90507 0 0.0
.text 596284 596284 0 0.0
pump-controller-app LP_CC2652R7 (read only) 671783 671775 -8 -0.0
(read/write) 177736 177744 8 0.0
.bss 78532 78532 0 0.0
.data 3292 3292 0 0.0
.rodata 86063 86063 0 0.0
.text 585240 585232 -8 -0.0
shell LP_CC2652R7 (read only) 667614 667614 0 0.0
(read/write) 186232 186232 0 0.0
.bss 83540 83540 0 0.0
.data 3376 3376 0 0.0
.rodata 86318 86318 0 0.0
.text 580980 580980 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 587554 587554 0 0.0
.app_xip_area 464180 464180 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) 594610 594610 0 0.0
.app_xip_area 465908 465908 0 0.0
.bss 71112 71112 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) 543322 543322 0 0.0
.app_xip_area 425004 425004 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) 1110320 1110320 0 0.0
.bss 136332 136332 0 0.0
.data 2072 2072 0 0.0
.text 971896 971896 0 0.0
BRD4161A+rpc (read/write) 973444 973444 0 0.0
.bss 150844 150844 0 0.0
.data 2252 2252 0 0.0
.text 820328 820328 0 0.0
BRD4161A+rs911x (read/write) 1003584 1003584 0 0.0
.bss 169168 169168 0 0.0
.data 2064 2064 0 0.0
.text 832332 832332 0 0.0
lock-app BRD4161A+wf200 (read/write) 1151308 1151308 0 0.0
.bss 152248 152248 0 0.0
.data 2072 2072 0 0.0
.text 996968 996968 0 0.0
window-app BRD4161A (read/write) 1102368 1102368 0 0.0
.bss 137780 137780 0 0.0
.data 2096 2096 0 0.0
.text 962472 962472 0 0.0
esp32 all-clusters-app c3devkit (read only) 1222980 1222984 4 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 1222980 1222984 4 0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1233031 1233035 4 0.0
(read/write) 564004 564012 8 0.0
.dram0.bss 82304 82304 0 0.0
.dram0.data 34296 34296 0 0.0
.flash.rodata 314736 314744 8 0.0
.flash.text 1227647 1227651 4 0.0
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 641400 641400 0 0.0
.bss 74816 74816 0 0.0
.data 2064 2064 0 0.0
.text 561792 561792 0 0.0
lock k32w0+release (read/write) 635512 635512 0 0.0
.bss 75600 75600 0 0.0
.data 2080 2080 0 0.0
.text 555104 555104 0 0.0
linux chip-tool-ipv6only arm64 (read only) 10354364 10354364 0 0.0
(read/write) 706161 706161 0 0.0
.bss 33953 33953 0 0.0
.data 2768 2768 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 504332 504332 0 0.0
.text 8195860 8195860 0 0.0
thermostat-no-ble arm64 (read only) 2388116 2388116 0 0.0
(read/write) 143553 143553 0 0.0
.bss 55361 55361 0 0.0
.data 1816 1816 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 144124 144124 0 0.0
.text 2001504 2001504 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455640 2455640 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1418284 1418284 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1182051 1182051 0 0.0
bss 143633 143633 0 0.0
rodata 144196 144196 0 0.0
text 815276 815276 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160703 1160703 0 0.0
bss 142860 142860 0 0.0
rodata 135768 135768 0 0.0
text 803144 803144 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841968 841968 0 0.0
(read/write) 1744300 1744300 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 1229274 1229274 0 0.0
.debug_aranges 111824 111824 0 0.0
.debug_frame 373360 373360 0 0.0
.debug_info 26818602 26818603 1 0.0
.debug_line 3668702 3668702 0 0.0
.debug_loc 3581461 3581461 0 0.0
.debug_ranges 340096 340096 0 0.0
.debug_str 3439576 3439576 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 569547 569547 0 0.0
.symtab 421040 421040 0 0.0
.text 1544536 1544536 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) 1686916 1686916 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 1221073 1221073 0 0.0
.debug_aranges 111296 111296 0 0.0
.debug_frame 376440 376440 0 0.0
.debug_info 26555385 26555384 -1 -0.0
.debug_line 3689418 3689418 0 0.0
.debug_loc 3569098 3569098 0 0.0
.debug_ranges 338712 338712 0 0.0
.debug_str 3428589 3428589 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 533636 533636 0 0.0
.symtab 407472 407472 0 0.0
.text 1487888 1487888 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) 1605460 1605460 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 1055129 1055129 0 0.0
.debug_aranges 103504 103504 0 0.0
.debug_frame 346768 346768 0 0.0
.debug_info 22019580 22019579 -1 -0.0
.debug_line 3259338 3259338 0 0.0
.debug_loc 3267205 3267205 0 0.0
.debug_ranges 304040 304040 0 0.0
.debug_str 3234121 3234121 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 470013 470013 0 0.0
.symtab 375920 375920 0 0.0
.text 1414624 1414624 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) 1643324 1643324 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 1062548 1062548 0 0.0
.debug_aranges 104176 104176 0 0.0
.debug_frame 349592 349592 0 0.0
.debug_info 22398933 22398933 0 0.0
.debug_line 3268052 3268052 0 0.0
.debug_loc 3307033 3307033 0 0.0
.debug_ranges 307384 307384 0 0.0
.debug_str 3261576 3261576 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 476253 476253 0 0.0
.symtab 379152 379152 0 0.0
.text 1447456 1447456 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148116 1148116 0 0.0
.bss 110348 110348 0 0.0
.data 832 832 0 0.0
.text 595216 595216 0 0.0
lock-app qpg6105+debug (read/write) 1116036 1116036 0 0.0
.bss 106172 106172 0 0.0
.data 836 836 0 0.0
.text 563132 563132 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 813668 813676 8 0.0
bss 71372 71372 0 0.0
noinit 43488 43488 0 0.0
text 574572 574576 4 0.0
lighting-app tlsr9518adk80d (read/write) 835780 835780 0 0.0
bss 72228 72228 0 0.0
noinit 43488 43488 0 0.0
text 592792 592796 4 0.0
ota-requestor-app tlsr9518adk80d (read/write) 843740 843732 -8 -0.0
bss 73136 73136 0 0.0
noinit 43488 43488 0 0.0
text 598978 598976 -2 -0.0

@andy31415 andy31415 merged commit 9ffcb55 into project-chip:v1.0-branch Oct 6, 2022
@shubhamdp shubhamdp deleted the cherrypick_23046 branch October 7, 2022 03:25
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.

None yet

3 participants