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

[Chef] Fix compile -a doesn't work on ESP32 #26095

Merged
merged 3 commits into from
Apr 21, 2023

Conversation

erwinpan1
Copy link
Contributor

@erwinpan1 erwinpan1 commented Apr 14, 2023

with chef.py --automated_test_stamp we can assign timestamp as software version string when compiling chef sample device. However, this failed on ESP32. On ESP32, I found that it uses PROJECT_VER to overwrite CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING, so I set it in the esp32's CMakeLists.txt

The root cause is the function [ConfigurationManagerImpl::GetSoftwareVersionString](CHIP_ERROR ConfigurationManagerImpl::GetSoftwareVersionString(char * buf, size_t bufSize)) it calls esp_ota_get_app_description which uses PROJECT_VER in CMakeFile as the version string.

@github-actions
Copy link

PR #26095: Size comparison from 62974a0 to aa8f4f9

Increases (1 build for cc32xx)
platform target config section 62974a0 aa8f4f9 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20326060 20326061 1 0.0
Full report (1 build for cc32xx)
platform target config section 62974a0 aa8f4f9 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643081 643081 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933224 933224 0 0.0
.debug_aranges 87760 87760 0 0.0
.debug_frame 302028 302028 0 0.0
.debug_info 20326060 20326061 1 0.0
.debug_line 2687403 2687403 0 0.0
.debug_loc 2838361 2838361 0 0.0
.debug_ranges 288040 288040 0 0.0
.debug_str 3042379 3042379 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104393 104393 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 377626 377626 0 0.0
.symtab 256832 256832 0 0.0
.text 536568 536568 0 0.0

@andy31415
Copy link
Contributor

@erwinpan1 !!!!!!!!!! Please delete the instructions below and replace with PR description ...

@github-actions
Copy link

PR #26095: Size comparison from 2e4064e to 7a452b7

Decreases (1 build for cc32xx)
platform target config section 2e4064e1 7a452b7 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20328412 20328410 -2 -0.0
Full report (4 builds for cc32xx, mbed, qpg)
platform target config section 2e4064e1 7a452b7 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643249 643249 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933224 933224 0 0.0
.debug_aranges 87792 87792 0 0.0
.debug_frame 302140 302140 0 0.0
.debug_info 20328412 20328410 -2 -0.0
.debug_line 2687890 2687890 0 0.0
.debug_loc 2838930 2838930 0 0.0
.debug_ranges 288072 288072 0 0.0
.debug_str 3042155 3042155 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104401 104401 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 377963 377963 0 0.0
.symtab 256976 256976 0 0.0
.text 536728 536728 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2466336 2466336 0 0.0
.bss 215960 215960 0 0.0
.data 5888 5888 0 0.0
.text 1428980 1428980 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1166704 1166704 0 0.0
.bss 99308 99308 0 0.0
.data 856 856 0 0.0
.text 613804 613804 0 0.0
lock-app qpg6105+debug (read/write) 1136776 1136776 0 0.0
.bss 94452 94452 0 0.0
.data 860 860 0 0.0
.text 583872 583872 0 0.0

@github-actions
Copy link

PR #26095: Size comparison from 5cdb0a5 to 638ffab

Increases (1 build for nrfconnect)
platform target config section 5cdb0a5 638ffab change % change
nrfconnect all-clusters-app nrf7002dk_nrf5340_cpuapp text 775784 775788 4 0.0
Decreases (1 build for nrfconnect)
platform target config section 5cdb0a5 638ffab change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 804836 804832 -4 -0.0
Full report (7 builds for cc32xx, mbed, nrfconnect, qpg)
platform target config section 5cdb0a5 638ffab change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643249 643249 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933224 933224 0 0.0
.debug_aranges 87792 87792 0 0.0
.debug_frame 302140 302140 0 0.0
.debug_info 20328411 20328411 0 0.0
.debug_line 2687890 2687890 0 0.0
.debug_loc 2838930 2838930 0 0.0
.debug_ranges 288072 288072 0 0.0
.debug_str 3042155 3042155 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104401 104401 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 377963 377963 0 0.0
.symtab 256976 256976 0 0.0
.text 536728 536728 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2466336 2466336 0 0.0
.bss 215960 215960 0 0.0
.data 5888 5888 0 0.0
.text 1428980 1428980 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1173892 1173892 0 0.0
bss 155557 155557 0 0.0
rodata 132740 132740 0 0.0
text 804836 804832 -4 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1119140 1119140 0 0.0
bss 154713 154713 0 0.0
rodata 109556 109556 0 0.0
text 774228 774228 0 0.0
all-clusters-app nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1433952 1433952 0 0.0
bss 135297 135297 0 0.0
rodata 228784 228784 0 0.0
text 775784 775788 4 0.0
qpg lighting-app qpg6105+debug (read/write) 1166704 1166704 0 0.0
.bss 99308 99308 0 0.0
.data 856 856 0 0.0
.text 613804 613804 0 0.0
lock-app qpg6105+debug (read/write) 1136776 1136776 0 0.0
.bss 94452 94452 0 0.0
.data 860 860 0 0.0
.text 583872 583872 0 0.0

@github-actions
Copy link

PR #26095: Size comparison from b8368a1 to 2c70856

Full report (1 build for cc32xx)
platform target config section b8368a1 2c70856 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643249 643249 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933224 933224 0 0.0
.debug_aranges 87792 87792 0 0.0
.debug_frame 302140 302140 0 0.0
.debug_info 20330829 20330829 0 0.0
.debug_line 2687904 2687904 0 0.0
.debug_loc 2838960 2838960 0 0.0
.debug_ranges 288072 288072 0 0.0
.debug_str 3042335 3042335 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104401 104401 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 377963 377963 0 0.0
.symtab 256976 256976 0 0.0
.text 536728 536728 0 0.0

with `chef.py --automated_test_stamp` we can assign timestamp as
software version string when compiling chef sample device. However, this
failed on ESP32. On ESP32, I found that it uses PROJECT_VER to overwrite
CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING, so I set it in the esp32's
CMakeLists.txt
@andy31415 andy31415 merged commit 2eaf956 into project-chip:master Apr 21, 2023
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.

4 participants