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

Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread #32482

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

wqx6
Copy link
Contributor

@wqx6 wqx6 commented Mar 7, 2024

We didn't check mOTInst in the APIs in GenericThreadStackManagerImpl_OpenThread, which might cause some issues when they are called before Thread stack is initialized.

@Damian-Nordic
Copy link
Contributor

Why is this necessary? InitThreadStack() should fail if the instance is not created, and an application should not use the thread stack if it failed to initialize.

Copy link

github-actions bot commented Mar 7, 2024

PR #32482: Size comparison from 873e665 to 6448058

Increases (42 builds for bl702, bl702l, cc13x4_26x4, cyw30739, efr32, k32w, nrfconnect, qpg, stm32, telink)
platform target config section 873e665 6448058 change % change
bl702 lighting-app bl702 (read/write) 1200787 1200919 132 0.0
.text 971440 971572 132 0.0
bl702+mfd (read/write) 1211843 1211975 132 0.0
.text 983450 983582 132 0.0
bl702+rpc (read/write) 1292523 1292667 144 0.0
.text 1046392 1046536 144 0.0
bl702l lighting-app bl702l (read/write) 1170364 1170496 132 0.0
.text 964538 964670 132 0.0
bl702l+mfd (read/write) 1181768 1181900 132 0.0
.text 976860 976992 132 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 773036 773164 128 0.0
.text 691060 691188 128 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789564 789684 120 0.0
.text 713344 713464 120 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778228 778356 128 0.0
.text 675252 675380 128 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730396 730516 120 0.0
.text 652756 652876 120 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 716020 716140 120 0.0
.text 642540 642660 120 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 568275 568411 136 0.0
.app_xip_area 458053 458189 136 0.0
lock cyw930739m2evb_01 (read/write) 550995 551131 136 0.0
.app_xip_area 436013 436149 136 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571163 571299 136 0.0
.app_xip_area 462445 462581 136 0.0
switch cyw930739m2evb_01 (read/write) 564059 564195 136 0.0
.app_xip_area 452061 452197 136 0.0
efr32 lighting-app BRD4187C (read/write) 1109380 1109508 128 0.0
.text 910772 910900 128 0.0
window-app BRD4187C (read/write) 1155884 1156036 152 0.0
.text 985124 985276 152 0.0
k32w contact k32w0+release (read only) 605504 605632 128 0.0
.text 604968 605096 128 0.0
k32w1+release (read/write) 746952 747080 128 0.0
.text 625576 625704 128 0.0
light k32w0+release (read only) 609232 609344 112 0.0
.text 608696 608808 112 0.0
k32w1+release (read/write) 789564 789684 120 0.0
.text 667592 667712 120 0.0
lock k32w0+release (read only) 589040 589168 128 0.0
.text 588504 588632 128 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1102288 1102400 112 0.0
text 810776 810892 116 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1050532 1050644 112 0.0
text 772816 772932 116 0.0
qpg lighting-app qpg6105+debug (read/write) 1129092 1129212 120 0.0
.text 641472 641592 120 0.0
lock-app qpg6105+debug (read/write) 1089172 1089308 136 0.0
.text 601556 601692 136 0.0
stm32 light STM32WB5MM-DK (read/write) 600273 600401 128 0.0
.text 381952 382080 128 0.0
telink air-quality-sensor-app tlsr9528a_retention (read/write) 823014 823150 136 0.0
text 615884 616020 136 0.0
all-clusters-app tlsr9518adk80d (read/write) 1091704 1091832 128 0.0
text 792900 793030 130 0.0
all-clusters-minimal-app tlsr9528a (read/write) 1049176 1049304 128 0.0
text 764222 764352 130 0.0
bridge-app tlsr9518adk80d (read/write) 909880 910016 136 0.0
text 651696 651826 130 0.0
contact-sensor-app tlsr9528a_retention (read/write) 824646 824782 136 0.0
text 617574 617710 136 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 930356 930492 136 0.0
text 697718 697854 136 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1073052 1073196 144 0.0
text 777076 777214 138 0.0
lock-app-dfu tlsr9528a (read/write) 902756 902892 136 0.0
text 652986 653122 136 0.0
ota-requestor-app tlsr9518adk80d (read/write) 929008 929136 128 0.0
text 670856 670986 130 0.0
pump-app tlsr9258a_retention (read/write) 827230 827366 136 0.0
text 620554 620690 136 0.0
pump-controller-app tlsr9518adk80d (read/write) 790944 791080 136 0.0
text 591312 591448 136 0.0
shell tlsr9518adk80d (read/write) 677148 677240 92 0.0
text 462406 462500 94 0.0
smoke_co_alarm-app tlsr9528a_retention (read/write) 832182 832318 136 0.0
text 623944 624080 136 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read/write) 850913 851049 136 0.0
text 636022 636158 136 0.0
thermostat tlsr9518adk80d (read/write) 816588 816724 136 0.0
text 610996 611132 136 0.0
window-covering tlsr9258a (read/write) 834692 834828 136 0.0
text 626252 626388 136 0.0
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 873e665 6448058 change % change
bl602 lighting-app bl602 (read/write) 1436430 1436430 0 0.0
.bss 85328 85328 0 0.0
.data 9496 9496 0 0.0
.rodata 158324 158324 0 0.0
.text 1102632 1102632 0 0.0
bl602+mfd (read/write) 1451094 1451094 0 0.0
.bss 85488 85488 0 0.0
.data 9472 9472 0 0.0
.rodata 157284 157284 0 0.0
.text 1118206 1118206 0 0.0
bl602+rpc (read/write) 1484070 1484070 0 0.0
.bss 93360 93360 0 0.0
.data 9872 9872 0 0.0
.rodata 165900 165900 0 0.0
.text 1134278 1134278 0 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1200787 1200919 132 0.0
.bss 11133 11133 0 0.0
.data 3680 3680 0 0.0
.rodata 107680 107680 0 0.0
.text 971440 971572 132 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1211843 1211975 132 0.0
.bss 11309 11309 0 0.0
.data 3656 3656 0 0.0
.rodata 106620 106620 0 0.0
.text 983450 983582 132 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1292523 1292667 144 0.0
.bss 19613 19613 0 0.0
.data 4216 4216 0 0.0
.rodata 123052 123052 0 0.0
.text 1046392 1046536 144 0.0
bl706-eth (read/write) 1018865 1018865 0 0.0
.bss 23708 23708 0 0.0
.data 3256 3256 0 0.0
.rodata 101012 101012 0 0.0
.text 762932 762932 0 0.0
bl706-wifi (read/write) 1253318 1253318 0 0.0
.bss 10577 10577 0 0.0
.data 3688 3688 0 0.0
.rodata 122012 122012 0 0.0
.text 994664 994664 0 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1170364 1170496 132 0.0
.bss 16328 16328 0 0.0
.data 5040 5040 0 0.0
.rodata 101684 101684 0 0.0
.text 964538 964670 132 0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1181768 1181900 132 0.0
.bss 16504 16504 0 0.0
.data 5024 5024 0 0.0
.rodata 100624 100624 0 0.0
.text 976860 976992 132 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 773036 773164 128 0.0
(read/write) 168600 168600 0 0.0
.bss 90604 90604 0 0.0
.data 3560 3560 0 0.0
.rodata 81708 81708 0 0.0
.text 691060 691188 128 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789564 789684 120 0.0
(read/write) 178848 178848 0 0.0
.bss 100852 100852 0 0.0
.data 3560 3560 0 0.0
.rodata 75956 75956 0 0.0
.text 713344 713464 120 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778228 778356 128 0.0
(read/write) 173288 173288 0 0.0
.bss 95292 95292 0 0.0
.data 3560 3560 0 0.0
.rodata 102708 102708 0 0.0
.text 675252 675380 128 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730396 730516 120 0.0
(read/write) 167568 167568 0 0.0
.bss 89336 89336 0 0.0
.data 3552 3552 0 0.0
.rodata 77372 77372 0 0.0
.text 652756 652876 120 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 716020 716140 120 0.0
(read/write) 167776 167776 0 0.0
.bss 89560 89560 0 0.0
.data 3544 3544 0 0.0
.rodata 73212 73212 0 0.0
.text 642540 642660 120 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582458 582458 0 0.0
(read/write) 207968 207968 0 0.0
.bss 201204 201204 0 0.0
.data 1640 1640 0 0.0
.rodata 86538 86538 0 0.0
.text 493800 493800 0 0.0
lock CC3235SF_LAUNCHXL (read only) 627738 627738 0 0.0
(read/write) 208312 208312 0 0.0
.bss 201696 201696 0 0.0
.data 1496 1496 0 0.0
.rodata 107002 107002 0 0.0
.text 518616 518616 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 568275 568411 136 0.0
.app_xip_area 458053 458189 136 0.0
.bss 65056 65056 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) 550995 551131 136 0.0
.app_xip_area 436013 436149 136 0.0
.bss 69808 69808 0 0.0
.data 752 752 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571163 571299 136 0.0
.app_xip_area 462445 462581 136 0.0
.bss 63592 63592 0 0.0
.data 704 704 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 564059 564195 136 0.0
.app_xip_area 452061 452197 136 0.0
.bss 66792 66792 0 0.0
.data 784 784 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 932120 932120 0 0.0
.bss 197912 197912 0 0.0
.data 1392 1392 0 0.0
.text 732796 732796 0 0.0
BRD4187C (read/write) 1109380 1109508 128 0.0
.bss 195176 195176 0 0.0
.data 3412 3412 0 0.0
.text 910772 910900 128 0.0
lock-app BRD4161A+wf200 (read/write) 1122036 1122036 0 0.0
.bss 186764 186764 0 0.0
.data 2796 2796 0 0.0
.text 932452 932452 0 0.0
window-app BRD4187C (read/write) 1155884 1156036 152 0.0
.bss 167416 167416 0 0.0
.data 3324 3324 0 0.0
.text 985124 985276 152 0.0
esp32 all-clusters-app c3devkit (read only) 1210750 1210750 0 0.0
(read/write) 1749632 1749632 0 0.0
.dram0.bss 74296 74296 0 0.0
.dram0.data 13620 13620 0 0.0
.flash.rodata 252176 252176 0 0.0
.flash.text 1210750 1210750 0 0.0
.iram0.text 75530 75530 0 0.0
m5stack (read only) 1253143 1253143 0 0.0
(read/write) 536176 536176 0 0.0
.dram0.bss 81208 81208 0 0.0
.dram0.data 35164 35164 0 0.0
.flash.rodata 283884 283884 0 0.0
.flash.text 1246979 1246979 0 0.0
.iram0.text 125403 125403 0 0.0
k32w contact k32w0+release (read only) 605504 605632 128 0.0
(read/write) 79612 79612 0 0.0
.bss 67428 67428 0 0.0
.data 2200 2200 0 0.0
.text 604968 605096 128 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 746952 747080 128 0.0
.bss 79188 79188 0 0.0
.data 2816 2816 0 0.0
.text 625576 625704 128 0.0
light k32w0+release (read only) 609232 609344 112 0.0
(read/write) 79496 79496 0 0.0
.bss 67308 67308 0 0.0
.data 2204 2204 0 0.0
.text 608696 608808 112 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 789564 789684 120 0.0
.bss 80580 80580 0 0.0
.data 2032 2032 0 0.0
.text 667592 667712 120 0.0
lock k32w0+release (read only) 589040 589168 128 0.0
(read/write) 77484 77484 0 0.0
.bss 65348 65348 0 0.0
.data 2152 2152 0 0.0
.text 588504 588632 128 0.0
linux air-purifier-app debug (read only) 2613549 2613549 0 0.0
(read/write) 128896 128896 0 0.0
.bss 46512 46512 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 74216 74216 0 0.0
.dynamic 608 608 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 184528 184528 0 0.0
.text 2251653 2251653 0 0.0
all-clusters-app debug (read only) 5919617 5919617 0 0.0
(read/write) 480368 480368 0 0.0
.bss 134816 134816 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 333608 333608 0 0.0
.dynamic 624 624 0 0.0
.got 5360 5360 0 0.0
.init 27 27 0 0.0
.init_array 1384 1384 0 0.0
.rodata 349168 349168 0 0.0
.text 5137171 5137171 0 0.0
all-clusters-minimal-app debug (read only) 5200161 5200161 0 0.0
(read/write) 236320 236320 0 0.0
.bss 127648 127648 0 0.0
.data 4432 4432 0 0.0
.data.rel.ro 97176 97176 0 0.0
.dynamic 624 624 0 0.0
.got 5280 5280 0 0.0
.init 27 27 0 0.0
.init_array 1112 1112 0 0.0
.rodata 288202 288202 0 0.0
.text 4677347 4677347 0 0.0
bridge-app debug (read only) 4594593 4594593 0 0.0
(read/write) 217168 217168 0 0.0
.bss 118144 118144 0 0.0
.data 6208 6208 0 0.0
.data.rel.ro 86112 86112 0 0.0
.dynamic 624 624 0 0.0
.got 5248 5248 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 228810 228810 0 0.0
.text 4145587 4145587 0 0.0
chip-tool debug (read only) 12030425 12030425 0 0.0
(read/write) 521480 521480 0 0.0
.bss 94424 94424 0 0.0
.data 5122 5122 0 0.0
.data.rel.ro 414712 414712 0 0.0
.dynamic 624 624 0 0.0
.got 5768 5768 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 448153 448153 0 0.0
.text 10876595 10876595 0 0.0
chip-tool-ipv6only arm64 (read only) 11355004 11355004 0 0.0
(read/write) 586864 586864 0 0.0
.bss 103512 103512 0 0.0
.data 4496 4496 0 0.0
.data.rel.ro 454496 454496 0 0.0
.dynamic 512 512 0 0.0
.got 16976 16976 0 0.0
.init 24 24 0 0.0
.init_array 256 256 0 0.0
.rodata 354492 354492 0 0.0
.text 10122296 10122296 0 0.0
lighting-app debug+rpc+ui (read only) 5518233 5518233 0 0.0
(read/write) 225960 225960 0 0.0
.bss 119112 119112 0 0.0
.data 4832 4832 0 0.0
.data.rel.ro 94512 94512 0 0.0
.dynamic 672 672 0 0.0
.got 5888 5888 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 354004 354004 0 0.0
.text 4917651 4917651 0 0.0
lock-app debug (read only) 4662321 4662321 0 0.0
(read/write) 204752 204752 0 0.0
.bss 113568 113568 0 0.0
.data 4128 4128 0 0.0
.data.rel.ro 80360 80360 0 0.0
.dynamic 624 624 0 0.0
.got 5200 5200 0 0.0
.init 27 27 0 0.0
.init_array 840 840 0 0.0
.rodata 254826 254826 0 0.0
.text 4195939 4195939 0 0.0
ota-provider-app debug (read only) 4294329 4294329 0 0.0
(read/write) 193256 193256 0 0.0
.bss 113280 113280 0 0.0
.data 4336 4336 0 0.0
.data.rel.ro 69744 69744 0 0.0
.dynamic 624 624 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 704 704 0 0.0
.rodata 207530 207530 0 0.0
.text 3893923 3893923 0 0.0
ota-requestor-app debug (read only) 4423753 4423753 0 0.0
(read/write) 197688 197688 0 0.0
.bss 114208 114208 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 72864 72864 0 0.0
.dynamic 624 624 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 213642 213642 0 0.0
.text 4012691 4012691 0 0.0
shell debug (read only) 2887369 2887369 0 0.0
(read/write) 156288 156288 0 0.0
.bss 62704 62704 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 86432 86432 0 0.0
.dynamic 592 592 0 0.0
.got 4072 4072 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 185152 185152 0 0.0
.text 2528994 2528994 0 0.0
thermostat-no-ble arm64 (read only) 4414612 4414612 0 0.0
(read/write) 244248 244248 0 0.0
.bss 121816 121816 0 0.0
.data 3376 3376 0 0.0
.data.rel.ro 103576 103576 0 0.0
.dynamic 512 512 0 0.0
.got 8616 8616 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 159388 159388 0 0.0
.text 3920680 3920680 0 0.0
tv-app debug (read only) 5702361 5702361 0 0.0
(read/write) 352520 352520 0 0.0
.bss 244336 244336 0 0.0
.data 6528 6528 0 0.0
.data.rel.ro 94392 94392 0 0.0
.dynamic 624 624 0 0.0
.got 5496 5496 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 289546 289546 0 0.0
.text 5170851 5170851 0 0.0
tv-casting-app debug (read only) 9861529 9861529 0 0.0
(read/write) 340264 340264 0 0.0
.bss 156240 156240 0 0.0
.data 2976 2976 0 0.0
.data.rel.ro 174168 174168 0 0.0
.dynamic 624 624 0 0.0
.got 5072 5072 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 382552 382552 0 0.0
.text 9013331 9013331 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2531672 2531672 0 0.0
.bss 220448 220448 0 0.0
.data 5200 5200 0 0.0
.text 1494356 1494356 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1102288 1102400 112 0.0
bss 130831 130831 0 0.0
rodata 112824 112824 0 0.0
text 810776 810892 116 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1221736 1221736 0 0.0
bss 122921 122921 0 0.0
rodata 141784 141784 0 0.0
text 806504 806504 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1050532 1050644 112 0.0
bss 129689 129689 0 0.0
rodata 100180 100180 0 0.0
text 772816 772932 116 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 834464 834464 0 0.0
(read/write) 1795668 1795668 0 0.0
.bss 196212 196212 0 0.0
.data 2664 2664 0 0.0
.text 1588404 1588404 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837608 837608 0 0.0
(read/write) 1717724 1717724 0 0.0
.bss 193092 193092 0 0.0
.data 2640 2640 0 0.0
.text 1513604 1513604 0 0.0
light cy8ckit_062s2_43012 (read only) 844336 844336 0 0.0
(read/write) 1636828 1636828 0 0.0
.bss 186556 186556 0 0.0
.data 2448 2448 0 0.0
.text 1439436 1439436 0 0.0
lock cy8ckit_062s2_43012 (read only) 817184 817184 0 0.0
(read/write) 1666732 1666732 0 0.0
.bss 213716 213716 0 0.0
.data 2440 2440 0 0.0
.text 1442188 1442188 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1129092 1129212 120 0.0
.bss 102456 102456 0 0.0
.data 824 824 0 0.0
.text 641472 641592 120 0.0
lock-app qpg6105+debug (read/write) 1089172 1089308 136 0.0
.bss 97200 97200 0 0.0
.data 844 844 0 0.0
.text 601556 601692 136 0.0
stm32 light STM32WB5MM-DK (read/write) 600273 600401 128 0.0
.bss 128320 128320 0 0.0
.data 668 668 0 0.0
.rodata 79604 79604 0 0.0
.text 381952 382080 128 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 823014 823150 136 0.0
bss 49660 49660 0 0.0
text 615884 616020 136 0.0
all-clusters-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 1091704 1091832 128 0.0
bss 101780 101780 0 0.0
text 792900 793030 130 0.0
all-clusters-minimal-app tlsr9528a (read only) 47960 47960 0 0.0
(read/write) 1049176 1049304 128 0.0
bss 110084 110084 0 0.0
text 764222 764352 130 0.0
bridge-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 909880 910016 136 0.0
bss 93116 93116 0 0.0
text 651696 651826 130 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 824646 824782 136 0.0
bss 49708 49708 0 0.0
text 617574 617710 136 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 930356 930492 136 0.0
bss 77708 77708 0 0.0
text 697718 697854 136 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 29122 29122 0 0.0
(read/write) 1073052 1073196 144 0.0
bss 100196 100196 0 0.0
text 777076 777214 138 0.0
lock-app-dfu tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 902756 902892 136 0.0
bss 69172 69172 0 0.0
text 652986 653122 136 0.0
ota-requestor-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 929008 929136 128 0.0
bss 92696 92696 0 0.0
text 670856 670986 130 0.0
pump-app tlsr9258a_retention (read only) 51774 51774 0 0.0
(read/write) 827230 827366 136 0.0
bss 49816 49816 0 0.0
text 620554 620690 136 0.0
pump-controller-app tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 790944 791080 136 0.0
bss 56016 56016 0 0.0
text 591312 591448 136 0.0
shell tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 677148 677240 92 0.0
bss 73672 73672 0 0.0
text 462406 462500 94 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 832182 832318 136 0.0
bss 51340 51340 0 0.0
text 623944 624080 136 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 32220 32220 0 0.0
(read/write) 850913 851049 136 0.0
bss 59492 59492 0 0.0
text 636022 636158 136 0.0
thermostat tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 816588 816724 136 0.0
bss 56304 56304 0 0.0
text 610996 611132 136 0.0
window-covering tlsr9258a (read only) 51584 51584 0 0.0
(read/write) 834692 834828 136 0.0
bss 68080 68080 0 0.0
text 626252 626388 136 0.0

@wqx6
Copy link
Contributor Author

wqx6 commented Mar 7, 2024

Why is this necessary? InitThreadStack() should fail if the instance is not created, and an application should not use the thread stack if it failed to initialize.

We are trying to build the example on our ESP32-C6 which can choose to work as a Wi-Fi or Thread device according the outside input(such as UART or flash storage). For this device, we cannot disable CHIP_DEVICE_CONFIG_ENABLE_THREAD. And when the device works as a Wi-Fi device, the Thread stack will not be initialized but some APIs in GenericThreadStackManagerImpl_OpenThread will be called somehow.

For instance, the _GetPrimary802154MACAddress() will be called from Dnssd::AdvertiseOperational()-> GenericConfigurationManagerImpl::GetPrimaryMACAddress()->ThreadStackMgr::GetPrimary802154MACAddress().

That's why I add these checks.

@Damian-Nordic
Copy link
Contributor

Why is this necessary? InitThreadStack() should fail if the instance is not created, and an application should not use the thread stack if it failed to initialize.

We are trying to build the example on our ESP32-C6 which can choose to work as a Wi-Fi or Thread device according the outside input(such as UART or flash storage). For this device, we cannot disable CHIP_DEVICE_CONFIG_ENABLE_THREAD. And when the device works as a Wi-Fi device, the Thread stack will not be initialized but some APIs in GenericThreadStackManagerImpl_OpenThread will be called somehow.

For instance, the _GetPrimary802154MACAddress() will be called from Dnssd::AdvertiseOperational()-> GenericConfigurationManagerImpl::GetPrimaryMACAddress()->ThreadStackMgr::GetPrimary802154MACAddress().

That's why I add these checks.

Thanks for the info :). We also support dynamic switch between Thread and Wi-Fi on our platform but we still initialize the Thread stack even if we don't use it for Matter, so that's why we didn't hit on this issue.

Copy link

github-actions bot commented Mar 8, 2024

PR #32482: Size comparison from 873e665 to 748af6c

Increases (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 873e665 748af6c change % change
bl602 lighting-app bl602 (read/write) 1436430 1436642 212 0.0
.rodata 158324 158376 52 0.0
.text 1102632 1102790 158 0.0
bl602+mfd (read/write) 1451094 1451306 212 0.0
.rodata 157284 157336 52 0.0
.text 1118206 1118364 158 0.0
bl602+rpc (read/write) 1484070 1484282 212 0.0
.rodata 165900 165952 52 0.0
.text 1134278 1134436 158 0.0
bl702 lighting-app bl702 (read/write) 1200787 1201107 320 0.0
.rodata 107680 107732 52 0.0
.text 971440 971706 266 0.0
bl702+mfd (read/write) 1211843 1212159 316 0.0
.rodata 106620 106672 52 0.0
.text 983450 983716 266 0.0
bl702+rpc (read/write) 1292523 1292855 332 0.0
.rodata 123052 123104 52 0.0
.text 1046392 1046670 278 0.0
bl706-eth (read/write) 1018865 1019077 212 0.0
.rodata 101012 101064 52 0.1
.text 762932 763090 158 0.0
bl706-wifi (read/write) 1253318 1253558 240 0.0
.rodata 122012 122064 52 0.0
.text 994664 994852 188 0.0
bl702l lighting-app bl702l (read/write) 1170364 1170680 316 0.0
.rodata 101684 101736 52 0.1
.text 964538 964804 266 0.0
bl702l+mfd (read/write) 1181768 1182088 320 0.0
.rodata 100624 100676 52 0.1
.text 976860 977126 266 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 773036 773292 256 0.0
.rodata 81708 81756 48 0.1
.text 691060 691268 208 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789564 789812 248 0.0
.rodata 75956 76004 48 0.1
.text 713344 713544 200 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778228 778484 256 0.0
.rodata 102708 102756 48 0.0
.text 675252 675460 208 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730396 730652 256 0.0
.rodata 77372 77420 48 0.1
.text 652756 652964 208 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 716020 716284 264 0.0
.rodata 73212 73268 56 0.1
.text 642540 642748 208 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582458 582842 384 0.1
.rodata 86538 86602 64 0.1
.text 493800 494116 316 0.1
lock CC3235SF_LAUNCHXL (read only) 627738 628114 376 0.1
.rodata 107002 107058 56 0.1
.text 518616 518932 316 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 568275 568491 216 0.0
.app_xip_area 458053 458269 216 0.0
lock cyw930739m2evb_01 (read/write) 550995 551211 216 0.0
.app_xip_area 436013 436229 216 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571163 571395 232 0.0
.app_xip_area 462445 462677 232 0.1
switch cyw930739m2evb_01 (read/write) 564059 564267 208 0.0
.app_xip_area 452061 452269 208 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 932120 932456 336 0.0
.text 732796 733132 336 0.0
BRD4187C (read/write) 1109380 1109636 256 0.0
.text 910772 911028 256 0.0
lock-app BRD4161A+wf200 (read/write) 1122036 1122124 88 0.0
.text 932452 932540 88 0.0
window-app BRD4187C (read/write) 1155884 1156380 496 0.0
.text 985124 985620 496 0.1
esp32 all-clusters-app c3devkit (read only) 1210750 1210904 154 0.0
(read/write) 1749632 1749680 48 0.0
.flash.rodata 252176 252224 48 0.0
.flash.text 1210750 1210904 154 0.0
m5stack (read only) 1253143 1253335 192 0.0
(read/write) 536176 536224 48 0.0
.flash.rodata 283884 283932 48 0.0
.flash.text 1246979 1247171 192 0.0
k32w contact k32w0+release (read only) 605504 605744 240 0.0
.text 604968 605208 240 0.0
k32w1+release (read/write) 746952 747136 184 0.0
.text 625576 625760 184 0.0
light k32w0+release (read only) 609232 609448 216 0.0
.text 608696 608912 216 0.0
k32w1+release (read/write) 789564 789820 256 0.0
.text 667592 667848 256 0.0
lock k32w0+release (read only) 589040 589280 240 0.0
.text 588504 588744 240 0.0
linux air-purifier-app debug (read only) 2613549 2615341 1792 0.1
(read/write) 128896 128928 32 0.0
.data.rel.ro 74216 74248 32 0.0
.text 2251653 2253349 1696 0.1
all-clusters-app debug (read only) 5919617 5921361 1744 0.0
(read/write) 480368 480400 32 0.0
.data.rel.ro 333608 333640 32 0.0
.text 5137171 5138851 1680 0.0
all-clusters-minimal-app debug (read only) 5200161 5201937 1776 0.0
(read/write) 236320 236352 32 0.0
.data.rel.ro 97176 97208 32 0.0
.text 4677347 4679027 1680 0.0
bridge-app debug (read only) 4594593 4596385 1792 0.0
(read/write) 217168 217200 32 0.0
.data.rel.ro 86112 86144 32 0.0
.text 4145587 4147283 1696 0.0
chip-tool debug (read only) 12030425 12032201 1776 0.0
(read/write) 521480 521512 32 0.0
.data.rel.ro 414712 414744 32 0.0
.text 10876595 10878275 1680 0.0
chip-tool-ipv6only arm64 (read only) 11355004 11356732 1728 0.0
.data.rel.ro 454496 454528 32 0.0
.text 10122296 10123944 1648 0.0
lighting-app debug+rpc+ui (read only) 5518233 5520025 1792 0.0
(read/write) 225960 225992 32 0.0
.data.rel.ro 94512 94544 32 0.0
.text 4917651 4919347 1696 0.0
lock-app debug (read only) 4662321 4664081 1760 0.0
(read/write) 204752 204784 32 0.0
.data.rel.ro 80360 80392 32 0.0
.text 4195939 4197635 1696 0.0
ota-provider-app debug (read only) 4294329 4296105 1776 0.0
(read/write) 193256 193288 32 0.0
.data.rel.ro 69744 69776 32 0.0
.text 3893923 3895603 1680 0.0
ota-requestor-app debug (read only) 4423753 4425529 1776 0.0
(read/write) 197688 197720 32 0.0
.data.rel.ro 72864 72896 32 0.0
.text 4012691 4014371 1680 0.0
shell debug (read only) 2887369 2889145 1776 0.1
(read/write) 156288 156320 32 0.0
.data.rel.ro 86432 86464 32 0.0
.text 2528994 2530674 1680 0.1
thermostat-no-ble arm64 (read only) 4414612 4416356 1744 0.0
.data.rel.ro 103576 103608 32 0.0
.text 3920680 3922328 1648 0.0
tv-app debug (read only) 5702361 5704129 1768 0.0
(read/write) 352520 352552 32 0.0
.data.rel.ro 94392 94424 32 0.0
.text 5170851 5172531 1680 0.0
tv-casting-app debug (read only) 9861529 9863305 1776 0.0
.data.rel.ro 174168 174176 8 0.0
.text 9013331 9015011 1680 0.0
mbed lock-app-release cy8cproto_062_4343w (read/write) 2531672 2531848 176 0.0
.text 1494356 1494532 176 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1102288 1102520 232 0.0
rodata 112824 112864 40 0.0
text 810776 810980 204 0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1221736 1221840 104 0.0
rodata 141784 141792 8 0.0
text 806504 806596 92 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1050532 1050764 232 0.0
rodata 100180 100220 40 0.0
text 772816 773020 204 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1795668 1796020 352 0.0
.text 1588404 1588756 352 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1717724 1718092 368 0.0
.text 1513604 1513972 368 0.0
light cy8ckit_062s2_43012 (read/write) 1636828 1637196 368 0.0
.text 1439436 1439804 368 0.0
lock cy8ckit_062s2_43012 (read/write) 1666732 1667084 352 0.0
.text 1442188 1442540 352 0.0
qpg lighting-app qpg6105+debug (read/write) 1129092 1129340 248 0.0
.text 641472 641720 248 0.0
lock-app qpg6105+debug (read/write) 1089172 1089436 264 0.0
.text 601556 601820 264 0.0
stm32 light STM32WB5MM-DK (read/write) 600273 600521 248 0.0
.rodata 79604 79644 40 0.1
.text 381952 382160 208 0.1
telink air-quality-sensor-app tlsr9528a_retention (read/write) 823014 823338 324 0.0
text 615884 616160 276 0.0
all-clusters-app tlsr9518adk80d (read/write) 1091704 1092020 316 0.0
text 792900 793170 270 0.0
all-clusters-minimal-app tlsr9528a (read/write) 1049176 1049484 308 0.0
text 764222 764492 270 0.0
bridge-app tlsr9518adk80d (read/write) 909880 910196 316 0.0
text 651696 651966 270 0.0
contact-sensor-app tlsr9528a_retention (read/write) 824646 824970 324 0.0
text 617574 617850 276 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 930356 930680 324 0.0
text 697718 697994 276 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1073052 1073376 324 0.0
text 777076 777354 278 0.0
lock-app-dfu tlsr9528a (read/write) 902756 903080 324 0.0
text 652986 653262 276 0.0
ota-requestor-app tlsr9518adk80d (read/write) 929008 929324 316 0.0
text 670856 671126 270 0.0
pump-app tlsr9258a_retention (read/write) 827230 827546 316 0.0
text 620554 620830 276 0.0
pump-controller-app tlsr9518adk80d (read/write) 790944 791268 324 0.0
text 591312 591588 276 0.0
shell tlsr9518adk80d (read/write) 677148 677224 76 0.0
text 462406 462484 78 0.0
smoke_co_alarm-app tlsr9528a_retention (read/write) 832182 832498 316 0.0
text 623944 624220 276 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read/write) 850913 851229 316 0.0
text 636022 636298 276 0.0
thermostat tlsr9518adk80d (read/write) 816588 816904 316 0.0
text 610996 611272 276 0.0
window-covering tlsr9258a (read/write) 834692 835008 316 0.0
text 626252 626528 276 0.0
Decreases (5 builds for linux)
platform target config section 873e665 748af6c change % change
linux all-clusters-app debug .rodata 349168 349136 -32 -0.0
chip-tool-ipv6only arm64 (read/write) 586864 585152 -1712 -0.3
.rodata 354492 354476 -16 -0.0
lock-app debug .rodata 254826 254794 -32 -0.0
thermostat-no-ble arm64 (read/write) 244248 242472 -1776 -0.7
tv-app debug .rodata 289546 289514 -32 -0.0
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 873e665 748af6c change % change
bl602 lighting-app bl602 (read/write) 1436430 1436642 212 0.0
.bss 85328 85328 0 0.0
.data 9496 9496 0 0.0
.rodata 158324 158376 52 0.0
.text 1102632 1102790 158 0.0
bl602+mfd (read/write) 1451094 1451306 212 0.0
.bss 85488 85488 0 0.0
.data 9472 9472 0 0.0
.rodata 157284 157336 52 0.0
.text 1118206 1118364 158 0.0
bl602+rpc (read/write) 1484070 1484282 212 0.0
.bss 93360 93360 0 0.0
.data 9872 9872 0 0.0
.rodata 165900 165952 52 0.0
.text 1134278 1134436 158 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1200787 1201107 320 0.0
.bss 11133 11133 0 0.0
.data 3680 3680 0 0.0
.rodata 107680 107732 52 0.0
.text 971440 971706 266 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1211843 1212159 316 0.0
.bss 11309 11309 0 0.0
.data 3656 3656 0 0.0
.rodata 106620 106672 52 0.0
.text 983450 983716 266 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1292523 1292855 332 0.0
.bss 19613 19613 0 0.0
.data 4216 4216 0 0.0
.rodata 123052 123104 52 0.0
.text 1046392 1046670 278 0.0
bl706-eth (read/write) 1018865 1019077 212 0.0
.bss 23708 23708 0 0.0
.data 3256 3256 0 0.0
.rodata 101012 101064 52 0.1
.text 762932 763090 158 0.0
bl706-wifi (read/write) 1253318 1253558 240 0.0
.bss 10577 10577 0 0.0
.data 3688 3688 0 0.0
.rodata 122012 122064 52 0.0
.text 994664 994852 188 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1170364 1170680 316 0.0
.bss 16328 16328 0 0.0
.data 5040 5040 0 0.0
.rodata 101684 101736 52 0.1
.text 964538 964804 266 0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1181768 1182088 320 0.0
.bss 16504 16504 0 0.0
.data 5024 5024 0 0.0
.rodata 100624 100676 52 0.1
.text 976860 977126 266 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 773036 773292 256 0.0
(read/write) 168600 168600 0 0.0
.bss 90604 90604 0 0.0
.data 3560 3560 0 0.0
.rodata 81708 81756 48 0.1
.text 691060 691268 208 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789564 789812 248 0.0
(read/write) 178848 178848 0 0.0
.bss 100852 100852 0 0.0
.data 3560 3560 0 0.0
.rodata 75956 76004 48 0.1
.text 713344 713544 200 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778228 778484 256 0.0
(read/write) 173288 173288 0 0.0
.bss 95292 95292 0 0.0
.data 3560 3560 0 0.0
.rodata 102708 102756 48 0.0
.text 675252 675460 208 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730396 730652 256 0.0
(read/write) 167568 167568 0 0.0
.bss 89336 89336 0 0.0
.data 3552 3552 0 0.0
.rodata 77372 77420 48 0.1
.text 652756 652964 208 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 716020 716284 264 0.0
(read/write) 167776 167776 0 0.0
.bss 89560 89560 0 0.0
.data 3544 3544 0 0.0
.rodata 73212 73268 56 0.1
.text 642540 642748 208 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582458 582842 384 0.1
(read/write) 207968 207968 0 0.0
.bss 201204 201204 0 0.0
.data 1640 1640 0 0.0
.rodata 86538 86602 64 0.1
.text 493800 494116 316 0.1
lock CC3235SF_LAUNCHXL (read only) 627738 628114 376 0.1
(read/write) 208312 208312 0 0.0
.bss 201696 201696 0 0.0
.data 1496 1496 0 0.0
.rodata 107002 107058 56 0.1
.text 518616 518932 316 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 568275 568491 216 0.0
.app_xip_area 458053 458269 216 0.0
.bss 65056 65056 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) 550995 551211 216 0.0
.app_xip_area 436013 436229 216 0.0
.bss 69808 69808 0 0.0
.data 752 752 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571163 571395 232 0.0
.app_xip_area 462445 462677 232 0.1
.bss 63592 63592 0 0.0
.data 704 704 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 564059 564267 208 0.0
.app_xip_area 452061 452269 208 0.0
.bss 66792 66792 0 0.0
.data 784 784 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 932120 932456 336 0.0
.bss 197912 197912 0 0.0
.data 1392 1392 0 0.0
.text 732796 733132 336 0.0
BRD4187C (read/write) 1109380 1109636 256 0.0
.bss 195176 195176 0 0.0
.data 3412 3412 0 0.0
.text 910772 911028 256 0.0
lock-app BRD4161A+wf200 (read/write) 1122036 1122124 88 0.0
.bss 186764 186764 0 0.0
.data 2796 2796 0 0.0
.text 932452 932540 88 0.0
window-app BRD4187C (read/write) 1155884 1156380 496 0.0
.bss 167416 167416 0 0.0
.data 3324 3324 0 0.0
.text 985124 985620 496 0.1
esp32 all-clusters-app c3devkit (read only) 1210750 1210904 154 0.0
(read/write) 1749632 1749680 48 0.0
.dram0.bss 74296 74296 0 0.0
.dram0.data 13620 13620 0 0.0
.flash.rodata 252176 252224 48 0.0
.flash.text 1210750 1210904 154 0.0
.iram0.text 75530 75530 0 0.0
m5stack (read only) 1253143 1253335 192 0.0
(read/write) 536176 536224 48 0.0
.dram0.bss 81208 81208 0 0.0
.dram0.data 35164 35164 0 0.0
.flash.rodata 283884 283932 48 0.0
.flash.text 1246979 1247171 192 0.0
.iram0.text 125403 125403 0 0.0
k32w contact k32w0+release (read only) 605504 605744 240 0.0
(read/write) 79612 79612 0 0.0
.bss 67428 67428 0 0.0
.data 2200 2200 0 0.0
.text 604968 605208 240 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 746952 747136 184 0.0
.bss 79188 79188 0 0.0
.data 2816 2816 0 0.0
.text 625576 625760 184 0.0
light k32w0+release (read only) 609232 609448 216 0.0
(read/write) 79496 79496 0 0.0
.bss 67308 67308 0 0.0
.data 2204 2204 0 0.0
.text 608696 608912 216 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 789564 789820 256 0.0
.bss 80580 80580 0 0.0
.data 2032 2032 0 0.0
.text 667592 667848 256 0.0
lock k32w0+release (read only) 589040 589280 240 0.0
(read/write) 77484 77484 0 0.0
.bss 65348 65348 0 0.0
.data 2152 2152 0 0.0
.text 588504 588744 240 0.0
linux air-purifier-app debug (read only) 2613549 2615341 1792 0.1
(read/write) 128896 128928 32 0.0
.bss 46512 46512 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 74216 74248 32 0.0
.dynamic 608 608 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 184528 184528 0 0.0
.text 2251653 2253349 1696 0.1
all-clusters-app debug (read only) 5919617 5921361 1744 0.0
(read/write) 480368 480400 32 0.0
.bss 134816 134816 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 333608 333640 32 0.0
.dynamic 624 624 0 0.0
.got 5360 5360 0 0.0
.init 27 27 0 0.0
.init_array 1384 1384 0 0.0
.rodata 349168 349136 -32 -0.0
.text 5137171 5138851 1680 0.0
all-clusters-minimal-app debug (read only) 5200161 5201937 1776 0.0
(read/write) 236320 236352 32 0.0
.bss 127648 127648 0 0.0
.data 4432 4432 0 0.0
.data.rel.ro 97176 97208 32 0.0
.dynamic 624 624 0 0.0
.got 5280 5280 0 0.0
.init 27 27 0 0.0
.init_array 1112 1112 0 0.0
.rodata 288202 288202 0 0.0
.text 4677347 4679027 1680 0.0
bridge-app debug (read only) 4594593 4596385 1792 0.0
(read/write) 217168 217200 32 0.0
.bss 118144 118144 0 0.0
.data 6208 6208 0 0.0
.data.rel.ro 86112 86144 32 0.0
.dynamic 624 624 0 0.0
.got 5248 5248 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 228810 228810 0 0.0
.text 4145587 4147283 1696 0.0
chip-tool debug (read only) 12030425 12032201 1776 0.0
(read/write) 521480 521512 32 0.0
.bss 94424 94424 0 0.0
.data 5122 5122 0 0.0
.data.rel.ro 414712 414744 32 0.0
.dynamic 624 624 0 0.0
.got 5768 5768 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 448153 448153 0 0.0
.text 10876595 10878275 1680 0.0
chip-tool-ipv6only arm64 (read only) 11355004 11356732 1728 0.0
(read/write) 586864 585152 -1712 -0.3
.bss 103512 103512 0 0.0
.data 4496 4496 0 0.0
.data.rel.ro 454496 454528 32 0.0
.dynamic 512 512 0 0.0
.got 16976 16976 0 0.0
.init 24 24 0 0.0
.init_array 256 256 0 0.0
.rodata 354492 354476 -16 -0.0
.text 10122296 10123944 1648 0.0
lighting-app debug+rpc+ui (read only) 5518233 5520025 1792 0.0
(read/write) 225960 225992 32 0.0
.bss 119112 119112 0 0.0
.data 4832 4832 0 0.0
.data.rel.ro 94512 94544 32 0.0
.dynamic 672 672 0 0.0
.got 5888 5888 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 354004 354004 0 0.0
.text 4917651 4919347 1696 0.0
lock-app debug (read only) 4662321 4664081 1760 0.0
(read/write) 204752 204784 32 0.0
.bss 113568 113568 0 0.0
.data 4128 4128 0 0.0
.data.rel.ro 80360 80392 32 0.0
.dynamic 624 624 0 0.0
.got 5200 5200 0 0.0
.init 27 27 0 0.0
.init_array 840 840 0 0.0
.rodata 254826 254794 -32 -0.0
.text 4195939 4197635 1696 0.0
ota-provider-app debug (read only) 4294329 4296105 1776 0.0
(read/write) 193256 193288 32 0.0
.bss 113280 113280 0 0.0
.data 4336 4336 0 0.0
.data.rel.ro 69744 69776 32 0.0
.dynamic 624 624 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 704 704 0 0.0
.rodata 207530 207530 0 0.0
.text 3893923 3895603 1680 0.0
ota-requestor-app debug (read only) 4423753 4425529 1776 0.0
(read/write) 197688 197720 32 0.0
.bss 114208 114208 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 72864 72896 32 0.0
.dynamic 624 624 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 213642 213642 0 0.0
.text 4012691 4014371 1680 0.0
shell debug (read only) 2887369 2889145 1776 0.1
(read/write) 156288 156320 32 0.0
.bss 62704 62704 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 86432 86464 32 0.0
.dynamic 592 592 0 0.0
.got 4072 4072 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 185152 185152 0 0.0
.text 2528994 2530674 1680 0.1
thermostat-no-ble arm64 (read only) 4414612 4416356 1744 0.0
(read/write) 244248 242472 -1776 -0.7
.bss 121816 121816 0 0.0
.data 3376 3376 0 0.0
.data.rel.ro 103576 103608 32 0.0
.dynamic 512 512 0 0.0
.got 8616 8616 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 159388 159388 0 0.0
.text 3920680 3922328 1648 0.0
tv-app debug (read only) 5702361 5704129 1768 0.0
(read/write) 352520 352552 32 0.0
.bss 244336 244336 0 0.0
.data 6528 6528 0 0.0
.data.rel.ro 94392 94424 32 0.0
.dynamic 624 624 0 0.0
.got 5496 5496 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 289546 289514 -32 -0.0
.text 5170851 5172531 1680 0.0
tv-casting-app debug (read only) 9861529 9863305 1776 0.0
(read/write) 340264 340264 0 0.0
.bss 156240 156240 0 0.0
.data 2976 2976 0 0.0
.data.rel.ro 174168 174176 8 0.0
.dynamic 624 624 0 0.0
.got 5072 5072 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 382552 382552 0 0.0
.text 9013331 9015011 1680 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2531672 2531848 176 0.0
.bss 220448 220448 0 0.0
.data 5200 5200 0 0.0
.text 1494356 1494532 176 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1102288 1102520 232 0.0
bss 130831 130831 0 0.0
rodata 112824 112864 40 0.0
text 810776 810980 204 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1221736 1221840 104 0.0
bss 122921 122921 0 0.0
rodata 141784 141792 8 0.0
text 806504 806596 92 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1050532 1050764 232 0.0
bss 129689 129689 0 0.0
rodata 100180 100220 40 0.0
text 772816 773020 204 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 834464 834464 0 0.0
(read/write) 1795668 1796020 352 0.0
.bss 196212 196212 0 0.0
.data 2664 2664 0 0.0
.text 1588404 1588756 352 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837608 837608 0 0.0
(read/write) 1717724 1718092 368 0.0
.bss 193092 193092 0 0.0
.data 2640 2640 0 0.0
.text 1513604 1513972 368 0.0
light cy8ckit_062s2_43012 (read only) 844336 844336 0 0.0
(read/write) 1636828 1637196 368 0.0
.bss 186556 186556 0 0.0
.data 2448 2448 0 0.0
.text 1439436 1439804 368 0.0
lock cy8ckit_062s2_43012 (read only) 817184 817184 0 0.0
(read/write) 1666732 1667084 352 0.0
.bss 213716 213716 0 0.0
.data 2440 2440 0 0.0
.text 1442188 1442540 352 0.0
qpg lighting-app qpg6105+debug (read/write) 1129092 1129340 248 0.0
.bss 102456 102456 0 0.0
.data 824 824 0 0.0
.text 641472 641720 248 0.0
lock-app qpg6105+debug (read/write) 1089172 1089436 264 0.0
.bss 97200 97200 0 0.0
.data 844 844 0 0.0
.text 601556 601820 264 0.0
stm32 light STM32WB5MM-DK (read/write) 600273 600521 248 0.0
.bss 128320 128320 0 0.0
.data 668 668 0 0.0
.rodata 79604 79644 40 0.1
.text 381952 382160 208 0.1
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 823014 823338 324 0.0
bss 49660 49660 0 0.0
text 615884 616160 276 0.0
all-clusters-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 1091704 1092020 316 0.0
bss 101780 101780 0 0.0
text 792900 793170 270 0.0
all-clusters-minimal-app tlsr9528a (read only) 47960 47960 0 0.0
(read/write) 1049176 1049484 308 0.0
bss 110084 110084 0 0.0
text 764222 764492 270 0.0
bridge-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 909880 910196 316 0.0
bss 93116 93116 0 0.0
text 651696 651966 270 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 824646 824970 324 0.0
bss 49708 49708 0 0.0
text 617574 617850 276 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 930356 930680 324 0.0
bss 77708 77708 0 0.0
text 697718 697994 276 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 29122 29122 0 0.0
(read/write) 1073052 1073376 324 0.0
bss 100196 100196 0 0.0
text 777076 777354 278 0.0
lock-app-dfu tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 902756 903080 324 0.0
bss 69172 69172 0 0.0
text 652986 653262 276 0.0
ota-requestor-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 929008 929324 316 0.0
bss 92696 92696 0 0.0
text 670856 671126 270 0.0
pump-app tlsr9258a_retention (read only) 51774 51774 0 0.0
(read/write) 827230 827546 316 0.0
bss 49816 49816 0 0.0
text 620554 620830 276 0.0
pump-controller-app tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 790944 791268 324 0.0
bss 56016 56016 0 0.0
text 591312 591588 276 0.0
shell tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 677148 677224 76 0.0
bss 73672 73672 0 0.0
text 462406 462484 78 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 832182 832498 316 0.0
bss 51340 51340 0 0.0
text 623944 624220 276 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 32220 32220 0 0.0
(read/write) 850913 851229 316 0.0
bss 59492 59492 0 0.0
text 636022 636298 276 0.0
thermostat tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 816588 816904 316 0.0
bss 56304 56304 0 0.0
text 610996 611272 276 0.0
window-covering tlsr9258a (read only) 51584 51584 0 0.0
(read/write) 834692 835008 316 0.0
bss 68080 68080 0 0.0
text 626252 626528 276 0.0

@mergify mergify bot merged commit 4601714 into project-chip:master Mar 8, 2024
58 checks passed
huangxuyong pushed a commit to huangxuyong/connectedhomeip that referenced this pull request Mar 19, 2024
…roject-chip#32482)

* Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread

* review changes
espressif-bot pushed a commit to espressif/connectedhomeip that referenced this pull request Apr 2, 2024
…roject-chip#32482)

* Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread

* review changes
espressif-bot pushed a commit to espressif/connectedhomeip that referenced this pull request Apr 2, 2024
[cherry-pick] Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread (project-chip#32482)

See merge request espressif/connectedhomeip!12
Jerry-ESP pushed a commit to Jerry-ESP/connectedhomeip that referenced this pull request Apr 25, 2024
…roject-chip#32482)

* Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread

* review changes
andy31415 pushed a commit that referenced this pull request Apr 26, 2024
… v1.2-branch (#33161)

* [1.1] Cherry pick Thread DNS client and memory leak fixes (#31457)

* [app] Fix DeferredAttributePersister memory leak (#31075)

* [app] Fix DeferredAttributePerister memory leak

ScopedMemoryBuffer's Release() method was used instead of
Free(). Add CHECK_RETURN_VALUE annotation to the Release()
method to prevent from making such a mistake in the future.

Signed-off-by: Damian Krolik <[email protected]>

* Code review

---------

Signed-off-by: Damian Krolik <[email protected]>
(cherry picked from commit 3e8aeeb)

* [OpenThread] Harden DNS record parsing (#31227)

OpenThread applications would crash upon receiving an empty
DNS TXT record. The reason was that the code for copying OT
DNS service info object into Matter DnssdService object
would not initialize the TXT entry count in the latter
object in such a case.

In the reported case, the Matter stack was presented an
empty TXT record because OpenThread's DNS client received
a TXT record with TTL 0 and it discarded its contents.
Nevertheless, the issue could be reproduced by publishing
Matter service without TXT entries and kicking off DNS query.

1. Initialize the TXT entry and subtype count properly in all
   scenarios.
2. Do not even process the service info object if an error was
   returned by OpenThread before.
3. Extract some boilerplate to a separate function to improve
   readability.

Signed-off-by: Damian Krolik <[email protected]>
(cherry picked from commit 76b6bb5)

* ESP32: Add EndpointQueueFilter for ESP32 platform (#31440)

* Add EndpointQueueFilter for ESP32 platform

* Restyled by clang-format

* Restyled by gn

* fix compile error when disabling inet ipv4

* review changes

* Restyled by clang-format

* review changes

* review changes

---------

Co-authored-by: Restyled.io <[email protected]>

* [ESP32] Limit number of returned WiFi scan results to configured limit (#30780)

Scan results are allocated on the heap and on a resource critical device
where heap is less, this may fail if there are a lot of APs in the
vicinity.

* [ESP32] Fix the threading issue in nimble (#29180)

* [ESP32] Fix the threading issue in nimble

Send ble connection error than executing in nimble thread context

* comment explaining why we are posting connection error event

* Adding a comment for kCHIPoBLEConnectionError

* IM: Create ReadHandler after Session Establishment for Subscription Resumption (#30491)

* IM: Create ReadHandler after Session Establishment for Subscription Resumption

* Restyled by clang-format

* Make SubscriptionResumptionHelper inherits from SubscriptionInfo

* review changes

* Rename Helper to SessionEstablisher

* Restyled by clang-format

* RAII changes

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>

* [ESP32] Fix adding NDEBUG flag to CPPFLAGS (#30763)

In esp-idf, NDEBUG flag is added to CPPFLAGS only if assertions are
disabled. Making this inline to that.

* Add records of session establishment for subscription resumption (#31755)

* Add records of session establishment for subscription resumption

* Restyled by clang-format

* review changes

* Schedule subscription resumption when failing to establish the session in SubscriptionResumptionSessionEstablisher

* Add option to set subscription timeout resumption retry interval seconds for Linux app
Add cirque test for subscription resumption timeout

* Restyled by clang-format

* Restyled by autopep8

* Restyled by isort

* fix CI building

* Add test to the test list

* add subscription resumption restries number to SubscriptionInfo struct

* review changes

* make resumption retries persistent

* Restyled by clang-format

* ci build fixes

* try to fix cirque test

---------

Co-authored-by: Restyled.io <[email protected]>

* ESP32: check ap info in IsStationConnected (#31438)

* Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread (#32482)

* Add checks for mOTInst in GenericThreadStackManagerImpl_OpenThread

* review changes

* [ESP32] Fix few attributes with fixed quality in DeviceInfoProvider (#32893)

* [ESP32] Fix few attributes with fixed quality in DeviceInfoProvider

Fixed labels, supported locales, supported calendar types were being
read from the nvs(flash) and during OTA its a hassle if one wants to
upgrade these values. Added few APIs to set the data for these
attributes in ESP32DeviceInfoProvider.

* Restyled by clang-format

* Restyled by prettier-markdown

* fix the lint errors

* Add back the original Device info provider which reads from the nvs

Add StaticESP32DeviceInfoProvider along with APIs to set data

Remove changes from example and add a guide along with usage

---------

Co-authored-by: Restyled.io <[email protected]>

* Implement BLE Manager Shutdown for nimble host (#33109)

* [ESP32] Implement BLE Manager Shutdown for nimble host

- Replace ble deinit imple in Esp32AppServer with BLEMgr().Shutdown()
- Replace few ESP_LOG with ChipLog in Esp32AppServer
- Move ble deinit kCommissioningComplete switch case
- Make USE_BLE_ONLY_FOR_COMMISSIONING depends on BT_ENABLED

* Restyled by clang-format

* address reviews

* Add checks for timer handler

---------

Co-authored-by: Restyled.io <[email protected]>

* [ESP32]  Made a provision to generate esp_secure_cert partition in factory partition script. (#29840)

* Made a provision to generate esp_secure_cert partition in factory partition script.

- Added the provision to generate esp_secure_cert_partition based on option --dac-in-secure-cert.
- Refactored some code of the existing script - made it more modular.

* made outdir user governed

* Added the support for onboarding paylaod in factory script (#31274)

---------

Co-authored-by: Damian Królik <[email protected]>
Co-authored-by: Wang Qixiang <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Shubham Patil <[email protected]>
Co-authored-by: shripad621git <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants