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

[Mbed] DFU support to all Mbed examples applications #14883

Merged
merged 15 commits into from
Feb 16, 2022

Conversation

ATmobica
Copy link
Contributor

@ATmobica ATmobica commented Feb 8, 2022

Problem

We want to propagate the DFU support to all Mbed examples applications (now only ota-requestor-app has it).
This requires many changes in Mbed projects configuration and creating a common DFU class to manage firmware updates.
We also did some project configuration files cleanup and standardized their format.

Change overview

Cleanup:
Use MBED_CONF_STORAGE_DEFAULT_KV instead of hardcoded definition for CHIP_CONFIG_KV_STORE_PARTITION
Remove hack on confirmation from mbed_app.json files

Enhancement:
Add Mbed OTA requestor driver implementation - our implementation of the OTA requestor driver allows calling callbacks before image download and apply. It's used to integrate OTA with application UI.

Add software version string to update the description - the software version in string format can be passed to the application's UI.

Add common Mbed DFU Manager - it's a class to manage the firmware update. Now, the OTA and Mbed booting actions are supported. Single common class for all examples.

Add DFU support to all examples:

  • lighting-app - OTA and boot
  • lock-app - only boot
  • all-clusters-app - OTA and boot
  • pigweed-app - only boot
  • shell - OTA and boot
  • ota-requestor-app - OTA and boot

Add auto-restart device after update image apply

Add server command to shell example - it's required to run server instance and commissioning device then we can trigger software update for example.

Add user response to OTA update available and apply functions in ota-requestor-app - improve user interface and give the option to reject or confirm OTA steps by pushing specific buttons.

Implement OTA list image generator - simple python script which generates OTA list image file (the input file for Linux ota-provider application). This allows providing some useful details to ota-provider such as vendor_id, product_id, software version, etc.

Improvements:
Change log type in OTAImageProcessorImpl - set to SoftwareUpdate log type

Testing

Build and run Mbed examples - use OTA commands to trigger a firmware update

@github-actions
Copy link

github-actions bot commented Feb 8, 2022

PR #14883: Size comparison from 2f785f4 to a44a7f6

Increases above 0.2%:

platform target config section 2f785f4 a44a7f6 change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2389752 2416876 27124 1.1
.bss 188356 189004 648 0.3
.text 1352352 1379448 27096 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2348920 2376876 27956 1.2
.bss 180936 181464 528 0.3
.text 1311520 1339448 27928 2.1
pigweed-app CY8CPROTO_062_4343W+release .bss 11756 11796 40 0.3
shell CY8CPROTO_062_4343W+release .bss 178100 178972 872 0.5
Increases (12 builds for cyw30739, k32w, linux, mbed, nrfconnect, qpg)
platform target config section 2f785f4 a44a7f6 change % change
cyw30739 ota-requestor cyw930739m2evb_01 (read/write) 576398 576422 24 0.0
.app_xip_area 474492 474516 24 0.0
k32w light k32w061+release (read/write) 678572 678604 32 0.0
.text 594320 594352 32 0.0
linux ota-requestor-app debug (read only) 1701673 1701785 112 0.0
.text 1439890 1440002 112 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2389752 2416876 27124 1.1
.bss 188356 189004 648 0.3
.data 5296 5304 8 0.2
.text 1352352 1379448 27096 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2348920 2376876 27956 1.2
.bss 180936 181464 528 0.3
.data 5600 5608 8 0.1
.text 1311520 1339448 27928 2.1
lock-app CY8CPROTO_062_4343W+release (read/write) 2312840 2313600 760 0.0
.bss 180824 180832 8 0.0
.text 1275440 1276200 760 0.1
pigweed-app CY8CPROTO_062_4343W+release (read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read/write) 2302812 2305276 2464 0.1
.bss 178100 178972 872 0.5
.data 5400 5408 8 0.1
.text 1265384 1267848 2464 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1004835 1004851 16 0.0
text 686484 686500 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 976311 976327 16 0.0
text 671124 671140 16 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 911494 911510 16 0.0
text 601508 601524 16 0.0
qpg lighting-app qpg6105+debug (read only) 585808 585840 32 0.0
.text 580488 580520 32 0.0
Full report (43 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 2f785f4 a44a7f6 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 594490 594490 0 0.0
.app_xip_area 500344 500344 0 0.0
.bss 76868 76868 0 0.0
.data 624 624 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 552390 552390 0 0.0
.app_xip_area 459804 459804 0 0.0
.bss 75340 75340 0 0.0
.data 588 588 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 576398 576422 24 0.0
.app_xip_area 474492 474516 24 0.0
.bss 84332 84332 0 0.0
.data 532 532 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 865876 865876 0 0.0
(read/write) 126620 126620 0 0.0
.bss 124696 124696 0 0.0
.data 1924 1924 0 0.0
.text 865868 865868 0 0.0
BRD4161A+rpc (read only) 853332 853332 0 0.0
(read/write) 143280 143280 0 0.0
.bss 141256 141256 0 0.0
.data 2024 2024 0 0.0
.text 853324 853324 0 0.0
window-app BRD4161A (read only) 838080 838080 0 0.0
(read/write) 125264 125264 0 0.0
.bss 123384 123384 0 0.0
.data 1880 1880 0 0.0
.text 838072 838072 0 0.0
esp32 all-clusters-app c3devkit (read only) 937984 937984 0 0.0
(read/write) 1401162 1401162 0 0.0
.dram0.bss 69448 69448 0 0.0
.dram0.data 14276 14276 0 0.0
.flash.rodata 198528 198528 0 0.0
.flash.text 937984 937984 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 986303 986303 0 0.0
(read/write) 466200 466200 0 0.0
.dram0.bss 74592 74592 0 0.0
.dram0.data 34040 34040 0 0.0
.flash.rodata 225440 225440 0 0.0
.flash.text 980919 980919 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 678572 678604 32 0.0
.bss 76568 76568 0 0.0
.data 1884 1884 0 0.0
.text 594320 594352 32 0.0
lock k32w061+release (read/write) 680488 680488 0 0.0
.bss 76896 76896 0 0.0
.data 1924 1924 0 0.0
.text 595868 595868 0 0.0
linux all-clusters-app debug (read only) 2327673 2327673 0 0.0
(read/write) 140096 140096 0 0.0
.bss 54688 54688 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 78536 78536 0 0.0
.dynamic 592 592 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205061 205061 0 0.0
.text 1960290 1960290 0 0.0
bridge-app debug+rpc (read only) 1704373 1704373 0 0.0
(read/write) 84328 84328 0 0.0
.bss 39088 39088 0 0.0
.data 1970 1970 0 0.0
.data.rel.ro 38120 38120 0 0.0
.dynamic 592 592 0 0.0
.got 3976 3976 0 0.0
.init 27 27 0 0.0
.init_array 560 560 0 0.0
.rodata 140204 140204 0 0.0
.text 1447621 1447621 0 0.0
chip-tool debug (read only) 7481925 7481925 0 0.0
(read/write) 198072 198072 0 0.0
.bss 32360 32360 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 158536 158536 0 0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 416437 416437 0 0.0
.text 6663061 6663061 0 0.0
chip-tool-ipv6only arm64 (read only) 7402804 7402804 0 0.0
(read/write) 302401 302401 0 0.0
.bss 50641 50641 0 0.0
.data 1176 1176 0 0.0
.data.rel.ro 200208 200208 0 0.0
.dynamic 560 560 0 0.0
.got 46584 46584 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 399148 399148 0 0.0
.text 6363828 6363828 0 0.0
door-lock-app debug (read only) 1908777 1908777 0 0.0
(read/write) 110584 110584 0 0.0
.bss 42096 42096 0 0.0
.data 946 946 0 0.0
.data.rel.ro 62128 62128 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 172818 172818 0 0.0
.text 1587442 1587442 0 0.0
lighting-app debug+rpc (read only) 2003609 2003609 0 0.0
(read/write) 115632 115632 0 0.0
.bss 43104 43104 0 0.0
.data 1368 1368 0 0.0
.data.rel.ro 65672 65672 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 712 712 0 0.0
.rodata 162897 162897 0 0.0
.text 1686066 1686066 0 0.0
ota-provider-app debug (read only) 1712241 1712241 0 0.0
(read/write) 81368 81368 0 0.0
.bss 41120 41120 0 0.0
.data 1160 1160 0 0.0
.data.rel.ro 33560 33560 0 0.0
.dynamic 608 608 0 0.0
.got 4240 4240 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 151238 151238 0 0.0
.text 1442322 1442322 0 0.0
ota-requestor-app debug (read only) 1701673 1701785 112 0.0
(read/write) 83320 83320 0 0.0
.bss 42272 42272 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 34616 34616 0 0.0
.dynamic 592 592 0 0.0
.got 4040 4040 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 144887 144887 0 0.0
.text 1439890 1440002 112 0.0
shell debug (read only) 2301113 2301113 0 0.0
(read/write) 141648 141648 0 0.0
.bss 62080 62080 0 0.0
.data 800 800 0 0.0
.data.rel.ro 73072 73072 0 0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 205810 205810 0 0.0
.text 1938786 1938786 0 0.0
thermostat-no-ble arm64 (read only) 2129932 2129932 0 0.0
(read/write) 140673 140673 0 0.0
.bss 57665 57665 0 0.0
.data 984 984 0 0.0
.data.rel.ro 74904 74904 0 0.0
.dynamic 560 560 0 0.0
.got 4152 4152 0 0.0
.init 24 24 0 0.0
.init_array 328 328 0 0.0
.rodata 131964 131964 0 0.0
.text 1779904 1779904 0 0.0
tv-app debug (read only) 2525897 2525897 0 0.0
(read/write) 139832 139832 0 0.0
.bss 57280 57280 0 0.0
.data 3168 3168 0 0.0
.data.rel.ro 73368 73368 0 0.0
.dynamic 592 592 0 0.0
.got 4528 4528 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 195564 195564 0 0.0
.text 2156626 2156626 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2389752 2416876 27124 1.1
.bss 188356 189004 648 0.3
.data 5296 5304 8 0.2
.text 1352352 1379448 27096 2.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2348920 2376876 27956 1.2
.bss 180936 181464 528 0.3
.data 5600 5608 8 0.1
.text 1311520 1339448 27928 2.1
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2312840 2313600 760 0.0
.bss 180824 180832 8 0.0
.data 5584 5584 0 0.0
.text 1275440 1276200 760 0.1
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.data 4368 4368 0 0.0
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2302812 2305276 2464 0.1
.bss 178100 178972 872 0.5
.data 5400 5408 8 0.1
.text 1265384 1267848 2464 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1004835 1004851 16 0.0
bss 121280 121280 0 0.0
rodata 118128 118128 0 0.0
text 686484 686500 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 976311 976327 16 0.0
bss 117136 117136 0 0.0
rodata 109588 109588 0 0.0
text 671124 671140 16 0.0
nrf52840dongle_nrf52840 (read/write) 1021639 1021639 0 0.0
bss 122644 122644 0 0.0
rodata 117016 117016 0 0.0
text 692052 692052 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 911494 911510 16 0.0
bss 117840 117840 0 0.0
rodata 111384 111384 0 0.0
text 601508 601524 16 0.0
lock-app nrf52840dk_nrf52840 (read/write) 937091 937091 0 0.0
bss 119616 119616 0 0.0
rodata 106528 106528 0 0.0
text 632404 632404 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 844586 844586 0 0.0
bss 116212 116212 0 0.0
rodata 99700 99700 0 0.0
text 548204 548204 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541747 541747 0 0.0
bss 52588 52588 0 0.0
rodata 50048 50048 0 0.0
text 376920 376920 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 939323 939323 0 0.0
bss 119368 119368 0 0.0
rodata 106712 106712 0 0.0
text 634648 634648 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 934663 934663 0 0.0
bss 119372 119372 0 0.0
rodata 106004 106004 0 0.0
text 630680 630680 0 0.0
shell nrf52840dk_nrf52840 (read/write) 803151 803151 0 0.0
bss 111232 111232 0 0.0
rodata 78532 78532 0 0.0
text 535824 535824 0 0.0
p6 all-clusters-app default (read/write) 2463848 2463848 0 0.0
.bss 117976 117976 0 0.0
.data 2584 2584 0 0.0
.text 1422112 1422112 0 0.0
light-app default (read/write) 2367296 2367296 0 0.0
.bss 107600 107600 0 0.0
.data 2432 2432 0 0.0
.text 1325560 1325560 0 0.0
lock-app default (read/write) 2332480 2332480 0 0.0
.bss 107304 107304 0 0.0
.data 2392 2392 0 0.0
.text 1290744 1290744 0 0.0
qpg lighting-app qpg6105+debug (read only) 585808 585840 32 0.0
(read/write) 146936 146936 0 0.0
.bss 88856 88856 0 0.0
.data 1084 1084 0 0.0
.text 580488 580520 32 0.0
lock-app qpg6105+debug (read only) 531884 531884 0 0.0
(read/write) 146940 146940 0 0.0
.bss 88304 88304 0 0.0
.data 1024 1024 0 0.0
.text 526564 526564 0 0.0
persistent-storage-app qpg6105+debug (read only) 99520 99520 0 0.0
(read/write) 146940 146940 0 0.0
.bss 24004 24004 0 0.0
.data 176 176 0 0.0
.text 94200 94200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 865822 865822 0 0.0
bss 88592 88592 0 0.0
noinit 37160 37160 0 0.0
text 607684 607684 0 0.0

@pullapprove pullapprove bot requested a review from lazarkov February 11, 2022 10:59
@github-actions
Copy link

github-actions bot commented Feb 11, 2022

PR #14883: Size comparison from 0edb9f9 to 838d669

Increases (9 builds for cyw30739, efr32, k32w, nrfconnect, qpg)
platform target config section 0edb9f9 838d669 change % change
cyw30739 ota-requestor cyw930739m2evb_01 (read/write) 571890 571914 24 0.0
.app_xip_area 465616 465640 24 0.0
efr32 lighting-app BRD4161A (read only) 909560 909592 32 0.0
.text 909552 909584 32 0.0
BRD4161A+rpc (read only) 897020 897036 16 0.0
.text 897012 897028 16 0.0
k32w light k32w061+release (read/write) 685636 685652 16 0.0
.text 599556 599572 16 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1017907 1017923 16 0.0
text 695896 695912 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 986735 986751 16 0.0
text 675508 675524 16 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 924646 924662 16 0.0
text 610932 610948 16 0.0
qpg lighting-app qpg6105+debug (read only) 595528 595560 32 0.0
.text 590208 590240 32 0.0
lock-app qpg6105+debug (read only) 561280 561312 32 0.0
.text 555960 555992 32 0.0
Full report (29 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, qpg, telink)
platform target config section 0edb9f9 838d669 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 595150 595150 0 0.0
.app_xip_area 496564 496564 0 0.0
.bss 81284 81284 0 0.0
.data 644 644 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 552954 552954 0 0.0
.app_xip_area 455936 455936 0 0.0
.bss 79756 79756 0 0.0
.data 608 608 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571890 571914 24 0.0
.app_xip_area 465616 465640 24 0.0
.bss 88684 88684 0 0.0
.data 552 552 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909560 909592 32 0.0
(read/write) 129104 129104 0 0.0
.bss 127072 127072 0 0.0
.data 2032 2032 0 0.0
.text 909552 909584 32 0.0
BRD4161A+rpc (read only) 897020 897036 16 0.0
(read/write) 145764 145764 0 0.0
.bss 143632 143632 0 0.0
.data 2132 2132 0 0.0
.text 897012 897028 16 0.0
window-app BRD4161A (read only) 844640 844640 0 0.0
(read/write) 127168 127168 0 0.0
.bss 125264 125264 0 0.0
.data 1900 1900 0 0.0
.text 844632 844632 0 0.0
esp32 all-clusters-app c3devkit (read only) 945430 945430 0 0.0
(read/write) 1400306 1400306 0 0.0
.dram0.bss 68128 68128 0 0.0
.dram0.data 14268 14268 0 0.0
.flash.rodata 199016 199016 0 0.0
.flash.text 945430 945430 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 995071 995071 0 0.0
(read/write) 465576 465576 0 0.0
.dram0.bss 73272 73272 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 226112 226112 0 0.0
.flash.text 989687 989687 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 685636 685652 16 0.0
.bss 78376 78376 0 0.0
.data 1904 1904 0 0.0
.text 599556 599572 16 0.0
lock k32w061+release (read/write) 691064 691064 0 0.0
.bss 78768 78768 0 0.0
.data 1948 1948 0 0.0
.text 604548 604548 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8135596 8135596 0 0.0
(read/write) 341217 341217 0 0.0
.bss 51681 51681 0 0.0
.data 1216 1216 0 0.0
.data.rel.ro 235568 235568 0 0.0
.dynamic 560 560 0 0.0
.got 48952 48952 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 433956 433956 0 0.0
.text 6972292 6972292 0 0.0
thermostat-no-ble arm64 (read only) 2150204 2150204 0 0.0
(read/write) 142225 142225 0 0.0
.bss 59105 59105 0 0.0
.data 1032 1032 0 0.0
.data.rel.ro 74984 74984 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 328 328 0 0.0
.rodata 132876 132876 0 0.0
.text 1799184 1799184 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1017907 1017923 16 0.0
bss 123132 123132 0 0.0
rodata 119984 119984 0 0.0
text 695896 695912 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 986735 986751 16 0.0
bss 120320 120320 0 0.0
rodata 111348 111348 0 0.0
text 675508 675524 16 0.0
nrf52840dongle_nrf52840 (read/write) 1033731 1033731 0 0.0
bss 124520 124520 0 0.0
rodata 118844 118844 0 0.0
text 700484 700484 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 924646 924662 16 0.0
bss 119696 119696 0 0.0
rodata 113224 113224 0 0.0
text 610932 610948 16 0.0
lock-app nrf52840dk_nrf52840 (read/write) 947731 947731 0 0.0
bss 121504 121504 0 0.0
rodata 108728 108728 0 0.0
text 638900 638900 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 855210 855210 0 0.0
bss 118096 118096 0 0.0
rodata 101900 101900 0 0.0
text 554708 554708 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 527595 527595 0 0.0
bss 53632 53632 0 0.0
rodata 49976 49976 0 0.0
text 361016 361016 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 946575 946575 0 0.0
bss 121224 121224 0 0.0
rodata 107708 107708 0 0.0
text 638956 638956 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 942495 942495 0 0.0
bss 121228 121228 0 0.0
rodata 107380 107380 0 0.0
text 635196 635196 0 0.0
shell nrf52840dk_nrf52840 (read/write) 806207 806207 0 0.0
bss 112376 112376 0 0.0
rodata 78948 78948 0 0.0
text 537304 537304 0 0.0
p6 all-clusters-app default (read/write) 2483960 2483960 0 0.0
.bss 119816 119816 0 0.0
.data 2672 2672 0 0.0
.text 1442224 1442224 0 0.0
light-app default (read/write) 2390544 2390544 0 0.0
.bss 109464 109464 0 0.0
.data 2520 2520 0 0.0
.text 1348808 1348808 0 0.0
lock-app default (read/write) 2354016 2354016 0 0.0
.bss 109184 109184 0 0.0
.data 2480 2480 0 0.0
.text 1312280 1312280 0 0.0
qpg lighting-app qpg6105+debug (read only) 595528 595560 32 0.0
(read/write) 146936 146936 0 0.0
.bss 90656 90656 0 0.0
.data 1108 1108 0 0.0
.text 590208 590240 32 0.0
lock-app qpg6105+debug (read only) 561280 561312 32 0.0
(read/write) 146936 146936 0 0.0
.bss 90640 90640 0 0.0
.data 1060 1060 0 0.0
.text 555960 555992 32 0.0
persistent-storage-app qpg6105+debug (read only) 99520 99520 0 0.0
(read/write) 146940 146940 0 0.0
.bss 24004 24004 0 0.0
.data 176 176 0 0.0
.text 94200 94200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 877134 877134 0 0.0
bss 90456 90456 0 0.0
noinit 37160 37160 0 0.0
text 615198 615198 0 0.0

@github-actions
Copy link

github-actions bot commented Feb 11, 2022

PR #14883: Size comparison from 0edb9f9 to 4d58bf1

Increases above 0.2%:

platform target config section 0edb9f9 4d58bf1 change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2398264 2425452 27188 1.1
.bss 190196 190804 608 0.3
.text 1360864 1388024 27160 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2360152 2388172 28020 1.2
.bss 182808 183296 488 0.3
.text 1322752 1350744 27992 2.1
pigweed-app CY8CPROTO_062_4343W+release .bss 11756 11796 40 0.3
shell CY8CPROTO_062_4343W+release .bss 179948 180780 832 0.5
Increases (14 builds for cyw30739, efr32, k32w, mbed, nrfconnect, qpg)
platform target config section 0edb9f9 4d58bf1 change % change
cyw30739 ota-requestor cyw930739m2evb_01 (read/write) 571890 571914 24 0.0
.app_xip_area 465616 465640 24 0.0
efr32 lighting-app BRD4161A (read only) 909560 909592 32 0.0
.text 909552 909584 32 0.0
BRD4161A+rpc (read only) 897020 897036 16 0.0
.text 897012 897028 16 0.0
k32w light k32w061+release (read/write) 685636 685652 16 0.0
.text 599556 599572 16 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2398264 2425452 27188 1.1
.bss 190196 190804 608 0.3
.data 5320 5328 8 0.2
.text 1360864 1388024 27160 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2360152 2388172 28020 1.2
.bss 182808 183296 488 0.3
.text 1322752 1350744 27992 2.1
lock-app CY8CPROTO_062_4343W+release (read/write) 2323680 2324440 760 0.0
.bss 182696 182704 8 0.0
.text 1286280 1287040 760 0.1
pigweed-app CY8CPROTO_062_4343W+release (read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read/write) 2309116 2311580 2464 0.1
.bss 179948 180780 832 0.5
.data 5424 5432 8 0.1
.text 1271688 1274152 2464 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1017907 1017923 16 0.0
text 695896 695912 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 986735 986751 16 0.0
text 675508 675524 16 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 924646 924662 16 0.0
text 610932 610948 16 0.0
qpg lighting-app qpg6105+debug (read only) 595528 595560 32 0.0
.text 590208 590240 32 0.0
lock-app qpg6105+debug (read only) 561280 561312 32 0.0
.text 555960 555992 32 0.0
Full report (34 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 0edb9f9 4d58bf1 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 595150 595150 0 0.0
.app_xip_area 496564 496564 0 0.0
.bss 81284 81284 0 0.0
.data 644 644 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 552954 552954 0 0.0
.app_xip_area 455936 455936 0 0.0
.bss 79756 79756 0 0.0
.data 608 608 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571890 571914 24 0.0
.app_xip_area 465616 465640 24 0.0
.bss 88684 88684 0 0.0
.data 552 552 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909560 909592 32 0.0
(read/write) 129104 129104 0 0.0
.bss 127072 127072 0 0.0
.data 2032 2032 0 0.0
.text 909552 909584 32 0.0
BRD4161A+rpc (read only) 897020 897036 16 0.0
(read/write) 145764 145764 0 0.0
.bss 143632 143632 0 0.0
.data 2132 2132 0 0.0
.text 897012 897028 16 0.0
window-app BRD4161A (read only) 844640 844640 0 0.0
(read/write) 127168 127168 0 0.0
.bss 125264 125264 0 0.0
.data 1900 1900 0 0.0
.text 844632 844632 0 0.0
esp32 all-clusters-app c3devkit (read only) 945430 945430 0 0.0
(read/write) 1400306 1400306 0 0.0
.dram0.bss 68128 68128 0 0.0
.dram0.data 14268 14268 0 0.0
.flash.rodata 199016 199016 0 0.0
.flash.text 945430 945430 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 995071 995071 0 0.0
(read/write) 465576 465576 0 0.0
.dram0.bss 73272 73272 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 226112 226112 0 0.0
.flash.text 989687 989687 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 685636 685652 16 0.0
.bss 78376 78376 0 0.0
.data 1904 1904 0 0.0
.text 599556 599572 16 0.0
lock k32w061+release (read/write) 691064 691064 0 0.0
.bss 78768 78768 0 0.0
.data 1948 1948 0 0.0
.text 604548 604548 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8135596 8135596 0 0.0
(read/write) 341217 341217 0 0.0
.bss 51681 51681 0 0.0
.data 1216 1216 0 0.0
.data.rel.ro 235568 235568 0 0.0
.dynamic 560 560 0 0.0
.got 48952 48952 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 433956 433956 0 0.0
.text 6972292 6972292 0 0.0
thermostat-no-ble arm64 (read only) 2150204 2150204 0 0.0
(read/write) 142225 142225 0 0.0
.bss 59105 59105 0 0.0
.data 1032 1032 0 0.0
.data.rel.ro 74984 74984 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 328 328 0 0.0
.rodata 132876 132876 0 0.0
.text 1799184 1799184 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2398264 2425452 27188 1.1
.bss 190196 190804 608 0.3
.data 5320 5328 8 0.2
.text 1360864 1388024 27160 2.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2360152 2388172 28020 1.2
.bss 182808 183296 488 0.3
.data 5624 5624 0 0.0
.text 1322752 1350744 27992 2.1
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2323680 2324440 760 0.0
.bss 182696 182704 8 0.0
.data 5600 5600 0 0.0
.text 1286280 1287040 760 0.1
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.data 4368 4368 0 0.0
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2309116 2311580 2464 0.1
.bss 179948 180780 832 0.5
.data 5424 5432 8 0.1
.text 1271688 1274152 2464 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1017907 1017923 16 0.0
bss 123132 123132 0 0.0
rodata 119984 119984 0 0.0
text 695896 695912 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 986735 986751 16 0.0
bss 120320 120320 0 0.0
rodata 111348 111348 0 0.0
text 675508 675524 16 0.0
nrf52840dongle_nrf52840 (read/write) 1033731 1033731 0 0.0
bss 124520 124520 0 0.0
rodata 118844 118844 0 0.0
text 700484 700484 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 924646 924662 16 0.0
bss 119696 119696 0 0.0
rodata 113224 113224 0 0.0
text 610932 610948 16 0.0
lock-app nrf52840dk_nrf52840 (read/write) 947731 947731 0 0.0
bss 121504 121504 0 0.0
rodata 108728 108728 0 0.0
text 638900 638900 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 855210 855210 0 0.0
bss 118096 118096 0 0.0
rodata 101900 101900 0 0.0
text 554708 554708 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 527595 527595 0 0.0
bss 53632 53632 0 0.0
rodata 49976 49976 0 0.0
text 361016 361016 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 946575 946575 0 0.0
bss 121224 121224 0 0.0
rodata 107708 107708 0 0.0
text 638956 638956 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 942495 942495 0 0.0
bss 121228 121228 0 0.0
rodata 107380 107380 0 0.0
text 635196 635196 0 0.0
shell nrf52840dk_nrf52840 (read/write) 806207 806207 0 0.0
bss 112376 112376 0 0.0
rodata 78948 78948 0 0.0
text 537304 537304 0 0.0
p6 all-clusters-app default (read/write) 2483960 2483960 0 0.0
.bss 119816 119816 0 0.0
.data 2672 2672 0 0.0
.text 1442224 1442224 0 0.0
light-app default (read/write) 2390544 2390544 0 0.0
.bss 109464 109464 0 0.0
.data 2520 2520 0 0.0
.text 1348808 1348808 0 0.0
lock-app default (read/write) 2354016 2354016 0 0.0
.bss 109184 109184 0 0.0
.data 2480 2480 0 0.0
.text 1312280 1312280 0 0.0
qpg lighting-app qpg6105+debug (read only) 595528 595560 32 0.0
(read/write) 146936 146936 0 0.0
.bss 90656 90656 0 0.0
.data 1108 1108 0 0.0
.text 590208 590240 32 0.0
lock-app qpg6105+debug (read only) 561280 561312 32 0.0
(read/write) 146936 146936 0 0.0
.bss 90640 90640 0 0.0
.data 1060 1060 0 0.0
.text 555960 555992 32 0.0
persistent-storage-app qpg6105+debug (read only) 99520 99520 0 0.0
(read/write) 146940 146940 0 0.0
.bss 24004 24004 0 0.0
.data 176 176 0 0.0
.text 94200 94200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 877134 877134 0 0.0
bss 90456 90456 0 0.0
noinit 37160 37160 0 0.0
text 615198 615198 0 0.0

@github-actions
Copy link

github-actions bot commented Feb 14, 2022

PR #14883: Size comparison from 5cb8800 to 0496be9

Increases above 0.2%:

platform target config section 5cb8800 0496be9 change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2398112 2425292 27180 1.1
.bss 188476 189084 608 0.3
.text 1360712 1387864 27152 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2360344 2388348 28004 1.2
.bss 181088 181576 488 0.3
.text 1322944 1350920 27976 2.1
pigweed-app CY8CPROTO_062_4343W+release .bss 11756 11796 40 0.3
shell CY8CPROTO_062_4343W+release .bss 178228 179060 832 0.5
Increases (14 builds for cyw30739, efr32, k32w, mbed, nrfconnect, qpg)
platform target config section 5cb8800 0496be9 change % change
cyw30739 ota-requestor cyw930739m2evb_01 (read/write) 569362 569386 24 0.0
.app_xip_area 467152 467176 24 0.0
efr32 lighting-app BRD4161A (read only) 909216 909248 32 0.0
.text 909208 909240 32 0.0
BRD4161A+rpc (read only) 937912 937944 32 0.0
.text 937904 937936 32 0.0
k32w light k32w061+release (read/write) 683252 683284 32 0.0
.text 598892 598924 32 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2398112 2425292 27180 1.1
.bss 188476 189084 608 0.3
.data 5320 5328 8 0.2
.text 1360712 1387864 27152 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2360344 2388348 28004 1.2
.bss 181088 181576 488 0.3
.text 1322944 1350920 27976 2.1
lock-app CY8CPROTO_062_4343W+release (read/write) 2323872 2324624 752 0.0
.bss 180976 180984 8 0.0
.text 1286472 1287224 752 0.1
pigweed-app CY8CPROTO_062_4343W+release (read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read/write) 2308900 2311364 2464 0.1
.bss 178228 179060 832 0.5
.data 5424 5432 8 0.1
.text 1271472 1273936 2464 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1016131 1016147 16 0.0
text 695660 695676 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 985407 985423 16 0.0
text 675548 675564 16 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 922774 922790 16 0.0
text 610684 610700 16 0.0
qpg lighting-app qpg6105+debug (read only) 595044 595060 16 0.0
.text 589724 589740 16 0.0
lock-app qpg6105+debug (read only) 560772 560804 32 0.0
.text 555452 555484 32 0.0
Full report (34 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 5cb8800 0496be9 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 592782 592782 0 0.0
.app_xip_area 498260 498260 0 0.0
.bss 77220 77220 0 0.0
.data 644 644 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 550850 550850 0 0.0
.app_xip_area 457896 457896 0 0.0
.bss 75692 75692 0 0.0
.data 608 608 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 569362 569386 24 0.0
.app_xip_area 467152 467176 24 0.0
.bss 84620 84620 0 0.0
.data 552 552 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909216 909248 32 0.0
(read/write) 127384 127384 0 0.0
.bss 125352 125352 0 0.0
.data 2032 2032 0 0.0
.text 909208 909240 32 0.0
BRD4161A+rpc (read only) 937912 937944 32 0.0
(read/write) 144304 144304 0 0.0
.bss 142128 142128 0 0.0
.data 2172 2172 0 0.0
.text 937904 937936 32 0.0
window-app BRD4161A (read only) 844388 844388 0 0.0
(read/write) 125444 125444 0 0.0
.bss 123544 123544 0 0.0
.data 1900 1900 0 0.0
.text 844380 844380 0 0.0
esp32 all-clusters-app c3devkit (read only) 944966 944966 0 0.0
(read/write) 1398610 1398610 0 0.0
.dram0.bss 66408 66408 0 0.0
.dram0.data 14268 14268 0 0.0
.flash.rodata 199032 199032 0 0.0
.flash.text 944966 944966 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 994959 994959 0 0.0
(read/write) 463896 463896 0 0.0
.dram0.bss 71552 71552 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 226152 226152 0 0.0
.flash.text 989575 989575 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 683252 683284 32 0.0
.bss 76656 76656 0 0.0
.data 1904 1904 0 0.0
.text 598892 598924 32 0.0
lock k32w061+release (read/write) 688804 688804 0 0.0
.bss 77048 77048 0 0.0
.data 1948 1948 0 0.0
.text 604008 604008 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8245380 8245380 0 0.0
(read/write) 353377 353377 0 0.0
.bss 50497 50497 0 0.0
.data 1216 1216 0 0.0
.data.rel.ro 248800 248800 0 0.0
.dynamic 560 560 0 0.0
.got 49064 49064 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 436108 436108 0 0.0
.text 7048004 7048004 0 0.0
thermostat-no-ble arm64 (read only) 2151132 2151132 0 0.0
(read/write) 140689 140689 0 0.0
.bss 57521 57521 0 0.0
.data 1032 1032 0 0.0
.data.rel.ro 75024 75024 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 328 328 0 0.0
.rodata 132908 132908 0 0.0
.text 1799968 1799968 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2398112 2425292 27180 1.1
.bss 188476 189084 608 0.3
.data 5320 5328 8 0.2
.text 1360712 1387864 27152 2.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2360344 2388348 28004 1.2
.bss 181088 181576 488 0.3
.data 5624 5624 0 0.0
.text 1322944 1350920 27976 2.1
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2323872 2324624 752 0.0
.bss 180976 180984 8 0.0
.data 5600 5600 0 0.0
.text 1286472 1287224 752 0.1
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.data 4368 4368 0 0.0
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2308900 2311364 2464 0.1
.bss 178228 179060 832 0.5
.data 5424 5432 8 0.1
.text 1271472 1273936 2464 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1016131 1016147 16 0.0
bss 121412 121412 0 0.0
rodata 120096 120096 0 0.0
text 695660 695676 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 985407 985423 16 0.0
bss 118600 118600 0 0.0
rodata 111620 111620 0 0.0
text 675548 675564 16 0.0
nrf52840dongle_nrf52840 (read/write) 1031991 1031991 0 0.0
bss 122800 122800 0 0.0
rodata 118976 118976 0 0.0
text 700280 700280 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 922774 922790 16 0.0
bss 117976 117976 0 0.0
rodata 113336 113336 0 0.0
text 610684 610700 16 0.0
lock-app nrf52840dk_nrf52840 (read/write) 945859 945859 0 0.0
bss 119784 119784 0 0.0
rodata 108856 108856 0 0.0
text 638692 638692 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 853386 853386 0 0.0
bss 116376 116376 0 0.0
rodata 102028 102028 0 0.0
text 554492 554492 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 527595 527595 0 0.0
bss 53632 53632 0 0.0
rodata 49976 49976 0 0.0
text 361016 361016 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 944679 944679 0 0.0
bss 119504 119504 0 0.0
rodata 107812 107812 0 0.0
text 638748 638748 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 940623 940623 0 0.0
bss 119508 119508 0 0.0
rodata 107508 107508 0 0.0
text 634988 634988 0 0.0
shell nrf52840dk_nrf52840 (read/write) 807179 807179 0 0.0
bss 111216 111216 0 0.0
rodata 79104 79104 0 0.0
text 539280 539280 0 0.0
p6 all-clusters-app default (read/write) 2483136 2483136 0 0.0
.bss 117744 117744 0 0.0
.data 2672 2672 0 0.0
.text 1441400 1441400 0 0.0
light-app default (read/write) 2389952 2389952 0 0.0
.bss 107392 107392 0 0.0
.data 2520 2520 0 0.0
.text 1348216 1348216 0 0.0
lock-app default (read/write) 2353416 2353416 0 0.0
.bss 107112 107112 0 0.0
.data 2480 2480 0 0.0
.text 1311680 1311680 0 0.0
qpg lighting-app qpg6105+debug (read only) 595044 595060 16 0.0
(read/write) 146936 146936 0 0.0
.bss 88936 88936 0 0.0
.data 1108 1108 0 0.0
.text 589724 589740 16 0.0
lock-app qpg6105+debug (read only) 560772 560804 32 0.0
(read/write) 146936 146936 0 0.0
.bss 88920 88920 0 0.0
.data 1060 1060 0 0.0
.text 555452 555484 32 0.0
persistent-storage-app qpg6105+debug (read only) 99520 99520 0 0.0
(read/write) 146940 146940 0 0.0
.bss 24004 24004 0 0.0
.data 176 176 0 0.0
.text 94200 94200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 875102 875102 0 0.0
bss 88736 88736 0 0.0
noinit 37160 37160 0 0.0
text 614832 614832 0 0.0

Remvoe hack from BLE manager - add note
lighting-app - OTA and boot
lock-app - only boot
all-clusters-app - OTA and boot
pigweed-app - only boot
shell - OTA and boot
ota-requestor-app - OTA and boot
Add user response to OTA udpate available and apply functions
Docs update
Add python script to generate OTA list image
Change working directory and add APP_DIRECTORY path
Add generating OTA list image step for upgrade image build
Set vendor id and product id from mbed_app.json level
Cleanup data model configuration in cmake files
@github-actions
Copy link

github-actions bot commented Feb 15, 2022

PR #14883: Size comparison from a35b95a to 20f7aec

Increases above 0.2%:

platform target config section a35b95a 20f7aec change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2398544 2425716 27172 1.1
.bss 188252 188860 608 0.3
.text 1361144 1388288 27144 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2360768 2388780 28012 1.2
.bss 180864 181352 488 0.3
.text 1323368 1351352 27984 2.1
pigweed-app CY8CPROTO_062_4343W+release .bss 11756 11796 40 0.3
shell CY8CPROTO_062_4343W+release .bss 178004 178836 832 0.5
Increases (15 builds for cyw30739, efr32, k32w, linux, mbed, nrfconnect, qpg)
platform target config section a35b95a 20f7aec change % change
cyw30739 ota-requestor cyw930739m2evb_01 (read/write) 569726 569750 24 0.0
.app_xip_area 467660 467684 24 0.0
efr32 lighting-app BRD4161A (read only) 909912 909944 32 0.0
.text 909904 909936 32 0.0
BRD4161A+rpc (read only) 938632 938664 32 0.0
.text 938624 938656 32 0.0
k32w light k32w061+release (read/write) 683848 683864 16 0.0
.text 599632 599648 16 0.0
linux ota-requestor-app debug (read only) 1861489 1861601 112 0.0
.text 1561154 1561266 112 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2398544 2425716 27172 1.1
.bss 188252 188860 608 0.3
.data 5320 5328 8 0.2
.text 1361144 1388288 27144 2.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2360768 2388780 28012 1.2
.bss 180864 181352 488 0.3
.text 1323368 1351352 27984 2.1
lock-app CY8CPROTO_062_4343W+release (read/write) 2324368 2325128 760 0.0
.bss 180752 180760 8 0.0
.text 1286968 1287728 760 0.1
pigweed-app CY8CPROTO_062_4343W+release (read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read/write) 2309324 2311796 2472 0.1
.bss 178004 178836 832 0.5
.data 5424 5432 8 0.1
.text 1271896 1274368 2472 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1016735 1016751 16 0.0
text 696284 696300 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 986011 986027 16 0.0
text 676172 676188 16 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 923378 923394 16 0.0
text 611300 611316 16 0.0
qpg lighting-app qpg6105+debug (read only) 595624 595656 32 0.0
.text 590304 590336 32 0.0
lock-app qpg6105+debug (read only) 561360 561392 32 0.0
.text 556040 556072 32 0.0
Full report (43 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section a35b95a 20f7aec change % change
cyw30739 light cyw930739m2evb_01 (read/write) 593150 593150 0 0.0
.app_xip_area 498772 498772 0 0.0
.bss 77076 77076 0 0.0
.data 644 644 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 551210 551210 0 0.0
.app_xip_area 458400 458400 0 0.0
.bss 75548 75548 0 0.0
.data 608 608 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 569726 569750 24 0.0
.app_xip_area 467660 467684 24 0.0
.bss 84476 84476 0 0.0
.data 552 552 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909912 909944 32 0.0
(read/write) 127240 127240 0 0.0
.bss 125208 125208 0 0.0
.data 2032 2032 0 0.0
.text 909904 909936 32 0.0
BRD4161A+rpc (read only) 938632 938664 32 0.0
(read/write) 144160 144160 0 0.0
.bss 141984 141984 0 0.0
.data 2172 2172 0 0.0
.text 938624 938656 32 0.0
window-app BRD4161A (read only) 845156 845156 0 0.0
(read/write) 125300 125300 0 0.0
.bss 123400 123400 0 0.0
.data 1900 1900 0 0.0
.text 845148 845148 0 0.0
esp32 all-clusters-app c3devkit (read only) 945792 945792 0 0.0
(read/write) 1398562 1398562 0 0.0
.dram0.bss 66248 66248 0 0.0
.dram0.data 14268 14268 0 0.0
.flash.rodata 199144 199144 0 0.0
.flash.text 945792 945792 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 995651 995651 0 0.0
(read/write) 463840 463840 0 0.0
.dram0.bss 71392 71392 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 226256 226256 0 0.0
.flash.text 990267 990267 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 683848 683864 16 0.0
.bss 76512 76512 0 0.0
.data 1904 1904 0 0.0
.text 599632 599648 16 0.0
lock k32w061+release (read/write) 689396 689396 0 0.0
.bss 76904 76904 0 0.0
.data 1948 1948 0 0.0
.text 604744 604744 0 0.0
linux all-clusters-app debug (read only) 2361649 2361649 0 0.0
(read/write) 140288 140288 0 0.0
.bss 54816 54816 0 0.0
.data 1296 1296 0 0.0
.data.rel.ro 78504 78504 0 0.0
.dynamic 592 592 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205861 205861 0 0.0
.text 1993442 1993442 0 0.0
bridge-app debug+rpc (read only) 1727965 1727965 0 0.0
(read/write) 84200 84200 0 0.0
.bss 38928 38928 0 0.0
.data 2034 2034 0 0.0
.data.rel.ro 38080 38080 0 0.0
.dynamic 592 592 0 0.0
.got 3976 3976 0 0.0
.init 27 27 0 0.0
.init_array 560 560 0 0.0
.rodata 141836 141836 0 0.0
.text 1469509 1469509 0 0.0
chip-tool debug (read only) 8552101 8552101 0 0.0
(read/write) 245952 245952 0 0.0
.bss 31816 31816 0 0.0
.data 1184 1184 0 0.0
.data.rel.ro 206896 206896 0 0.0
.dynamic 608 608 0 0.0
.got 4792 4792 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 459509 459509 0 0.0
.text 7576101 7576101 0 0.0
chip-tool-ipv6only arm64 (read only) 8312388 8312388 0 0.0
(read/write) 353729 353729 0 0.0
.bss 50113 50113 0 0.0
.data 1216 1216 0 0.0
.data.rel.ro 249368 249368 0 0.0
.dynamic 560 560 0 0.0
.got 49240 49240 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 435500 435500 0 0.0
.text 7114260 7114260 0 0.0
door-lock-app debug (read only) 1933265 1933265 0 0.0
(read/write) 110104 110104 0 0.0
.bss 41616 41616 0 0.0
.data 1010 1010 0 0.0
.data.rel.ro 62080 62080 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 173298 173298 0 0.0
.text 1611378 1611378 0 0.0
lighting-app debug+rpc (read only) 2056945 2056945 0 0.0
(read/write) 115448 115448 0 0.0
.bss 42720 42720 0 0.0
.data 1400 1400 0 0.0
.data.rel.ro 65832 65832 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 165649 165649 0 0.0
.text 1736482 1736482 0 0.0
ota-provider-app debug (read only) 1866049 1866049 0 0.0
(read/write) 105848 105848 0 0.0
.bss 41504 41504 0 0.0
.data 1224 1224 0 0.0
.data.rel.ro 57480 57480 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 157835 157835 0 0.0
.text 1557554 1557554 0 0.0
ota-requestor-app debug (read only) 1861489 1861601 112 0.0
(read/write) 106904 106904 0 0.0
.bss 41760 41760 0 0.0
.data 1160 1160 0 0.0
.data.rel.ro 58536 58536 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 151420 151420 0 0.0
.text 1561154 1561266 112 0.0
shell debug (read only) 2343209 2343209 0 0.0
(read/write) 141616 141616 0 0.0
.bss 61920 61920 0 0.0
.data 832 832 0 0.0
.data.rel.ro 73192 73192 0 0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 206738 206738 0 0.0
.text 1979618 1979618 0 0.0
thermostat-no-ble arm64 (read only) 2152684 2152684 0 0.0
(read/write) 140337 140337 0 0.0
.bss 57169 57169 0 0.0
.data 1032 1032 0 0.0
.data.rel.ro 75024 75024 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 328 328 0 0.0
.rodata 133020 133020 0 0.0
.text 1801408 1801408 0 0.0
tv-app debug (read only) 2530809 2530809 0 0.0
(read/write) 140960 140960 0 0.0
.bss 58720 58720 0 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73008 73008 0 0.0
.dynamic 592 592 0 0.0
.got 4528 4528 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 197669 197669 0 0.0
.text 2160098 2160098 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2398544 2425716 27172 1.1
.bss 188252 188860 608 0.3
.data 5320 5328 8 0.2
.text 1361144 1388288 27144 2.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2360768 2388780 28012 1.2
.bss 180864 181352 488 0.3
.data 5624 5624 0 0.0
.text 1323368 1351352 27984 2.1
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2324368 2325128 760 0.0
.bss 180752 180760 8 0.0
.data 5600 5600 0 0.0
.text 1286968 1287728 760 0.1
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139648 1139840 192 0.0
.bss 11756 11796 40 0.3
.data 4368 4368 0 0.0
.text 103032 103224 192 0.2
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2309324 2311796 2472 0.1
.bss 178004 178836 832 0.5
.data 5424 5432 8 0.1
.text 1271896 1274368 2472 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 1016735 1016751 16 0.0
bss 121272 121272 0 0.0
rodata 120204 120204 0 0.0
text 696284 696300 16 0.0
nrf52840dk_nrf52840+rpc (read/write) 986011 986027 16 0.0
bss 118460 118460 0 0.0
rodata 111728 111728 0 0.0
text 676172 676188 16 0.0
nrf52840dongle_nrf52840 (read/write) 1032595 1032595 0 0.0
bss 122660 122660 0 0.0
rodata 119084 119084 0 0.0
text 700904 700904 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 923378 923394 16 0.0
bss 117836 117836 0 0.0
rodata 113444 113444 0 0.0
text 611300 611316 16 0.0
lock-app nrf52840dk_nrf52840 (read/write) 946463 946463 0 0.0
bss 119644 119644 0 0.0
rodata 108964 108964 0 0.0
text 639316 639316 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 853990 853990 0 0.0
bss 116236 116236 0 0.0
rodata 102136 102136 0 0.0
text 555108 555108 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 527595 527595 0 0.0
bss 53632 53632 0 0.0
rodata 49976 49976 0 0.0
text 361016 361016 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 945279 945279 0 0.0
bss 119364 119364 0 0.0
rodata 107916 107916 0 0.0
text 639372 639372 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 941227 941227 0 0.0
bss 119368 119368 0 0.0
rodata 107616 107616 0 0.0
text 635612 635612 0 0.0
shell nrf52840dk_nrf52840 (read/write) 807147 807147 0 0.0
bss 111216 111216 0 0.0
rodata 79104 79104 0 0.0
text 539244 539244 0 0.0
p6 all-clusters-app default (read/write) 2484072 2484072 0 0.0
.bss 117608 117608 0 0.0
.data 2672 2672 0 0.0
.text 1442336 1442336 0 0.0
light-app default (read/write) 2390920 2390920 0 0.0
.bss 107248 107248 0 0.0
.data 2520 2520 0 0.0
.text 1349184 1349184 0 0.0
lock-app default (read/write) 2354384 2354384 0 0.0
.bss 106976 106976 0 0.0
.data 2480 2480 0 0.0
.text 1312648 1312648 0 0.0
qpg lighting-app qpg6105+debug (read only) 595624 595656 32 0.0
(read/write) 146936 146936 0 0.0
.bss 88904 88904 0 0.0
.data 1108 1108 0 0.0
.text 590304 590336 32 0.0
lock-app qpg6105+debug (read only) 561360 561392 32 0.0
(read/write) 146936 146936 0 0.0
.bss 88888 88888 0 0.0
.data 1060 1060 0 0.0
.text 556040 556072 32 0.0
persistent-storage-app qpg6105+debug (read only) 99520 99520 0 0.0
(read/write) 146940 146940 0 0.0
.bss 24004 24004 0 0.0
.data 176 176 0 0.0
.text 94200 94200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 875938 875938 0 0.0
bss 88580 88580 0 0.0
noinit 37160 37160 0 0.0
text 615704 615704 0 0.0

@ATmobica
Copy link
Contributor Author

@woody-apple @andy31415 @bzbarsky-apple
Can we go forward with this PR?
It's mainly Mbed platform-specific changes. Only small OTA improvements are included:
5e34463
9dae5b1
The next PR #15041 waits for these changes.

@bzbarsky-apple
Copy link
Contributor

Needs either fast-track or another non-Apple review... I pinged for the latter on Slack.

@bzbarsky-apple bzbarsky-apple merged commit fbf8bab into project-chip:master Feb 16, 2022
jamesluo11 pushed a commit to jamesluo11/connectedhomeip that referenced this pull request Apr 26, 2022
)

* Use MBED_CONF_STORAGE_DEFAULT_KV insted of hardcoded definition for CHIP_CONFIG_KV_STORE_PARTITION

* Remove hack on confirmation from mbed_app.json files
Remvoe hack from BLE manager - add note

* Add Mbed OTA requestor driver implementation

* Add software version string to update description

* Move all generated sources from common Mbed cmake to OTA requestor app cmake

* Add common Mbed DFU Manager - class to manage the firmware update

* Add DFU support to all examples:
lighting-app - OTA and boot
lock-app - only boot
all-clusters-app - OTA and boot
pigweed-app - only boot
shell - OTA and boot
ota-requestor-app - OTA and boot

* Add auto-restart device after update apply

* Change log type in OTAImageProcessorImpl

* Add server command to shell example

* Add confirm and reject user repsone to buttons service
Add user response to OTA udpate available and apply functions
Docs update

* Implement OTA list image generator

Add python script to generate OTA list image
Change working directory and add APP_DIRECTORY path
Add generating OTA list image step for upgrade image build
Set vendor id and product id from mbed_app.json level

* Changes restyle

* Update vendor and product IDs for mbed examples
Cleanup data model configuration in cmake files

* Fix data parsing in OTA list image generator
@ATmobica ATmobica deleted the to-upstream branch May 11, 2022 08:08
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.

5 participants