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

[K32W0] SDK 2.6.12 changes #28489

Merged
merged 49 commits into from
Aug 9, 2023
Merged

Conversation

marius-alex-tache
Copy link
Contributor

@marius-alex-tache marius-alex-tache commented Aug 3, 2023

Changelog:

  • Restructure BLE manager and move it in common area.
  • Fix some BLE manager issues.
  • Update README files.
  • Other minor fixes in platform adaptation layer.

Signed-off-by: Doru Gucea [email protected]
Signed-off-by: Ethan Tan [email protected]
Signed-off-by: Gabriel Couturier [email protected]
Signed-off-by: Marius Vilvoi [email protected]
Signed-off-by: Marius Tache [email protected]

Depends on #28431 to pass CI/CV.

@CLAassistant
Copy link

CLAassistant commented Aug 3, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

PR #28489: Size comparison from cfa8212 to f54fa31

Decreases (1 build for cc32xx)
platform target config section cfa8212 f54fa31 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19047765 19047764 -1 -0.0
Full report (4 builds for cc32xx, mbed, qpg)
platform target config section cfa8212 f54fa31 change % change
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 611050 611050 0 0.0
(read/write) 208284 208284 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 201696 201696 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 944966 944966 0 0.0
.debug_aranges 107968 107968 0 0.0
.debug_frame 366328 366328 0 0.0
.debug_info 19047765 19047764 -1 -0.0
.debug_line 2780609 2780609 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1580675 1580675 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 99671 99671 0 0.0
.debug_str 3415768 3415768 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105626 105626 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 490862 490862 0 0.0
.symtab 290432 290432 0 0.0
.text 503300 503300 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2517752 2517752 0 0.0
.bss 220432 220432 0 0.0
.data 5152 5152 0 0.0
.text 1480436 1480436 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1176392 1176392 0 0.0
.bss 101336 101336 0 0.0
.data 788 788 0 0.0
.text 623232 623232 0 0.0
lock-app qpg6105+debug (read/write) 1133440 1133440 0 0.0
.bss 96056 96056 0 0.0
.data 792 792 0 0.0
.text 580284 580284 0 0.0

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

PR #28489: Size comparison from 7df6d0a to 94a64d5

Full report (1 build for cc32xx)
platform target config section 7df6d0a 94a64d5 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 611426 611426 0 0.0
(read/write) 208284 208284 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 201752 201752 0 0.0
.comment 206 206 0 0.0
.data 1412 1412 0 0.0
.debug_abbrev 944998 944998 0 0.0
.debug_aranges 108040 108040 0 0.0
.debug_frame 366568 366568 0 0.0
.debug_info 19052065 19052065 0 0.0
.debug_line 2781655 2781655 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1581893 1581893 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 99725 99725 0 0.0
.debug_str 3418336 3418336 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105626 105626 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 491265 491265 0 0.0
.symtab 290688 290688 0 0.0
.text 503680 503680 0 0.0

@marius-alex-tache marius-alex-tache force-pushed the upstream-k32w0-2.6.12 branch 2 times, most recently from ef13af4 to 2830bf4 Compare August 3, 2023 05:57
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

PR #28489: Size comparison from 7df6d0a to 2830bf4

Increases (8 builds for bl702l, cyw30739, telink)
platform target config section 7df6d0a 2830bf4 change % change
bl702l lighting-app bl702l (read/write) 1152132 1152136 4 0.0
.debug_info 41433088 41433090 2 0.0
.text 942636 942640 4 0.0
cyw30739 switch cyw930739m2evb_01 (read/write) 546151 546159 8 0.0
.app_xip_area 435369 435377 8 0.0
telink contact-sensor-app tlsr9518adk80d text 589422 589424 2 0.0
lighting-app tlsr9518adk80d (read/write) 981408 981416 8 0.0
text 684922 684926 4 0.0
lighting-app-shell tlsr9518adk80d (read/write) 1082268 1082276 8 0.0
text 749960 749964 4 0.0
pump-controller-app tlsr9518adk80d text 585554 585556 2 0.0
shell tlsr9518adk80d (read/write) 744124 744132 8 0.0
text 478572 478574 2 0.0
window-covering tlsr9518adk80d text 615470 615472 2 0.0
Decreases (14 builds for bl602, bl702, cc32xx, cyw30739, psoc6, telink)
platform target config section 7df6d0a 2830bf4 change % change
bl602 lighting-app bl602 (read/write) 1363310 1363302 -8 -0.0
.text 1056546 1056544 -2 -0.0
bl602+rpc .text 1088478 1088476 -2 -0.0
bl702 lighting-app bl702 .debug_info 41431980 41431979 -1 -0.0
.text 953576 953574 -2 -0.0
bl702+rpc (read/write) 1265139 1265135 -4 -0.0
.debug_info 46327838 46327837 -1 -0.0
.text 1028262 1028260 -2 -0.0
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19052065 19052063 -2 -0.0
cyw30739 lock cyw930739m2evb_01 (read/write) 534063 534055 -8 -0.0
.app_xip_area 420193 420185 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 30049619 30049618 -1 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 27144088 27144087 -1 -0.0
lock cy8ckit_062s2_43012 .debug_info 21897128 21897126 -2 -0.0
telink all-clusters-minimal-app tlsr9518adk80d (read/write) 975248 975240 -8 -0.0
text 668462 668458 -4 -0.0
bridge-app tlsr9518adk80d text 646078 646074 -4 -0.0
light-switch-app tlsr9518adk80d (read/write) 903872 903864 -8 -0.0
text 615058 615056 -2 -0.0
ota-requestor-app tlsr9518adk80d (read/write) 897616 897608 -8 -0.0
text 611310 611308 -2 -0.0
pump-app tlsr9518adk80d text 595118 595116 -2 -0.0
Full report (57 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 7df6d0a 2830bf4 change % change
bl602 lighting-app bl602 (read/write) 1363310 1363302 -8 -0.0
.bss 73862 73862 0 0.0
.data 9552 9552 0 0.0
.text 1056546 1056544 -2 -0.0
bl602+rpc (read/write) 1410770 1410770 0 0.0
.bss 81902 81902 0 0.0
.data 9952 9952 0 0.0
.text 1088478 1088476 -2 -0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1166231 1166231 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 41285 41285 0 0.0
.bss_psram 43680 43680 0 0.0
.comment 48 48 0 0.0
.data 3544 3544 0 0.0
.debug_abbrev 1565375 1565375 0 0.0
.debug_aranges 140296 140296 0 0.0
.debug_frame 516140 516140 0 0.0
.debug_info 41431980 41431979 -1 -0.0
.debug_line 5475046 5475046 0 0.0
.debug_loc 3562672 3562672 0 0.0
.debug_ranges 384304 384304 0 0.0
.debug_str 4013991 4013991 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106472 106472 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 588574 588574 0 0.0
.symtab 175440 175440 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
953576 953574 -2 -0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1265139 1265135 -4 -0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 49749 49749 0 0.0
.bss_psram 43680 43680 0 0.0
.comment 48 48 0 0.0
.data 4088 4088 0 0.0
.debug_abbrev 1742505 1742505 0 0.0
.debug_aranges 148840 148840 0 0.0
.debug_frame 545044 545044 0 0.0
.debug_info 46327838 46327837 -1 -0.0
.debug_line 5887581 5887581 0 0.0
.debug_loc 3768819 3768819 0 0.0
.debug_ranges 410056 410056 0 0.0
.debug_str 4433856 4433856 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121124 121124 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 651537 651537 0 0.0
.symtab 194368 194368 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1028262 1028260 -2 -0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1152132 1152136 4 0.0
.boot2 292 292 0 0.0
.bss 15988 15988 0 0.0
.bss_psram 78096 78096 0 0.0
.comment 48 48 0 0.0
.data 4512 4512 0 0.0
.debug_abbrev 1567594 1567594 0 0.0
.debug_aranges 134800 134800 0 0.0
.debug_frame 495828 495828 0 0.0
.debug_info 41433088 41433090 2 0.0
.debug_line 5390632 5390632 0 0.0
.debug_loc 3498753 3498753 0 0.0
.debug_ranges 389512 389512 0 0.0
.debug_str 4026460 4026460 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 100356 100356 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 588799 588799 0 0.0
.symtab 175008 175008 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
942636 942640 4 0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 611426 611426 0 0.0
(read/write) 208284 208284 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 201752 201752 0 0.0
.comment 206 206 0 0.0
.data 1412 1412 0 0.0
.debug_abbrev 944998 944998 0 0.0
.debug_aranges 108040 108040 0 0.0
.debug_frame 366568 366568 0 0.0
.debug_info 19052065 19052063 -2 -0.0
.debug_line 2781655 2781655 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1581893 1581893 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 99725 99725 0 0.0
.debug_str 3418336 3418336 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105626 105626 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 491265 491265 0 0.0
.symtab 290688 290688 0 0.0
.text 503680 503680 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 549719 549719 0 0.0
.app_xip_area 440809 440809 0 0.0
.bss 63936 63936 0 0.0
.data 656 656 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 534063 534055 -8 -0.0
.app_xip_area 420193 420185 -8 -0.0
.bss 68888 68888 0 0.0
.data 664 664 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 572863 572863 0 0.0
.app_xip_area 465033 465033 0 0.0
.bss 62928 62928 0 0.0
.data 584 584 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 546151 546159 8 0.0
.app_xip_area 435369 435377 8 0.0
.bss 65808 65808 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1009680 1009680 0 0.0
.bss 183692 183692 0 0.0
.data 2640 2640 0 0.0
.text 823328 823328 0 0.0
BRD4187C (read/write) 1034504 1034504 0 0.0
.bss 163308 163308 0 0.0
.data 3236 3236 0 0.0
.text 867940 867940 0 0.0
lock-app BRD4161A+wf200 (read/write) 1084404 1084404 0 0.0
.bss 177708 177708 0 0.0
.data 2636 2636 0 0.0
.text 904040 904040 0 0.0
window-app BRD4187C (read/write) 1105644 1105644 0 0.0
.bss 146324 146324 0 0.0
.data 3120 3120 0 0.0
.text 956180 956180 0 0.0
esp32 all-clusters-app c3devkit (read only) 1148516 1148516 0 0.0
(read/write) 1701724 1701724 0 0.0
.dram0.bss 79192 79192 0 0.0
.dram0.data 13076 13076 0 0.0
.flash.rodata 265704 265704 0 0.0
.flash.text 1148516 1148516 0 0.0
.iram0.text 75262 75262 0 0.0
m5stack (read only) 1190611 1190611 0 0.0
(read/write) 549946 549946 0 0.0
.dram0.bss 85568 85568 0 0.0
.dram0.data 34020 34020 0 0.0
.flash.rodata 296716 296716 0 0.0
.flash.text 1185227 1185227 0 0.0
.iram0.text 123311 123311 0 0.0
linux all-clusters-app debug (read only) 5481425 5481425 0 0.0
(read/write) 417456 417456 0 0.0
.bss 130368 130368 0 0.0
.data 3984 3984 0 0.0
.data.rel.ro 275776 275776 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1288 1288 0 0.0
.rodata 333136 333136 0 0.0
.text 4771475 4771475 0 0.0
all-clusters-minimal-app debug (read only) 4896441 4896441 0 0.0
(read/write) 231408 231408 0 0.0
.bss 126048 126048 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 94376 94376 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1128 1128 0 0.0
.rodata 271238 271238 0 0.0
.text 4395075 4395075 0 0.0
bridge-app debug (read only) 2765633 2765633 0 0.0
(read/write) 133064 133064 0 0.0
.bss 51768 51768 0 0.0
.data 3792 3792 0 0.0
.data.rel.ro 71400 71400 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 213800 213800 0 0.0
.text 2374355 2374355 0 0.0
chip-tool debug (read only) 17765513 17765513 0 0.0
(read/write) 1055160 1055160 0 0.0
.bss 93688 93688 0 0.0
.data 5090 5090 0 0.0
.data.rel.ro 949040 949040 0 0.0
.dynamic 624 624 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 792 792 0 0.0
.rodata 916009 916009 0 0.0
.text 14794499 14794499 0 0.0
chip-tool-ipv6only arm64 (read only) 16978716 16978716 0 0.0
(read/write) 1122696 1122696 0 0.0
.bss 103064 103064 0 0.0
.data 4392 4392 0 0.0
.data.rel.ro 986400 986400 0 0.0
.dynamic 512 512 0 0.0
.got 23352 23352 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 827096 827096 0 0.0
.text 13911832 13911832 0 0.0
lighting-app debug+rpc+ui (read only) 5274617 5274617 0 0.0
(read/write) 222344 222344 0 0.0
.bss 118000 118000 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 92240 92240 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 337844 337844 0 0.0
.text 4694723 4694723 0 0.0
lock-app debug (read only) 4454065 4454065 0 0.0
(read/write) 202248 202248 0 0.0
.bss 113296 113296 0 0.0
.data 3696 3696 0 0.0
.data.rel.ro 78496 78496 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 848 848 0 0.0
.rodata 246470 246470 0 0.0
.text 3999107 3999107 0 0.0
ota-provider-app debug (read only) 4124297 4124297 0 0.0
(read/write) 192152 192152 0 0.0
.bss 113792 113792 0 0.0
.data 4000 4000 0 0.0
.data.rel.ro 68448 68448 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 200326 200326 0 0.0
.text 3733699 3733699 0 0.0
ota-requestor-app debug (read only) 4218209 4218209 0 0.0
(read/write) 196464 196464 0 0.0
.bss 114848 114848 0 0.0
.data 4240 4240 0 0.0
.data.rel.ro 71448 71448 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 203750 203750 0 0.0
.text 3819859 3819859 0 0.0
shell debug (read only) 2925665 2925665 0 0.0
(read/write) 150712 150712 0 0.0
.bss 60040 60040 0 0.0
.data 784 784 0 0.0
.data.rel.ro 84024 84024 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1128 1128 0 0.0
.rodata 210066 210066 0 0.0
.text 2544754 2544754 0 0.0
thermostat-no-ble arm64 (read only) 4448020 4448020 0 0.0
(read/write) 244152 244152 0 0.0
.bss 122552 122552 0 0.0
.data 2864 2864 0 0.0
.data.rel.ro 102296 102296 0 0.0
.dynamic 512 512 0 0.0
.got 11968 11968 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 161628 161628 0 0.0
.text 3948248 3948248 0 0.0
tv-app debug (read only) 5312097 5312097 0 0.0
(read/write) 350136 350136 0 0.0
.bss 241568 241568 0 0.0
.data 5104 5104 0 0.0
.data.rel.ro 96048 96048 0 0.0
.dynamic 624 624 0 0.0
.got 5616 5616 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 271798 271798 0 0.0
.text 4796707 4796707 0 0.0
tv-casting-app debug (read only) 8291809 8291809 0 0.0
(read/write) 210848 210848 0 0.0
.bss 54496 54496 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 147016 147016 0 0.0
.dynamic 624 624 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 367004 367004 0 0.0
.text 7524691 7524691 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2518008 2518008 0 0.0
.bss 220488 220488 0 0.0
.data 5096 5096 0 0.0
.text 1480692 1480692 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1217416 1217416 0 0.0
bss 154771 154771 0 0.0
rodata 141020 141020 0 0.0
text 842588 842588 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1336532 1336532 0 0.0
bss 140229 140229 0 0.0
rodata 135436 135436 0 0.0
text 770196 770196 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1155328 1155328 0 0.0
bss 154950 154950 0 0.0
rodata 112404 112404 0 0.0
text 809028 809028 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837112 837112 0 0.0
(read/write) 1765996 1765996 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 193708 193708 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2520 2520 0 0.0
.debug_abbrev 1377038 1377038 0 0.0
.debug_aranges 143712 143712 0 0.0
.debug_frame 478740 478740 0 0.0
.debug_info 30049619 30049618 -1 -0.0
.debug_line 4137056 4137056 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2244132 2244132 0 0.0
.debug_rnglists 142231 142231 0 0.0
.debug_str 4118198 4118198 0 0.0
.heap 837112 837112 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 801406 801406 0 0.0
.symtab 499504 499504 0 0.0
.text 0 0 0 0.0
1561380 1561380 0 0.0
.zero.table 8 8 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 839064 839064 0 0.0
(read/write) 1673460 1673460 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 191820 191820 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1282658 1282658 0 0.0
.debug_aranges 137016 137016 0 0.0
.debug_frame 461828 461828 0 0.0
.debug_info 27144088 27144087 -1 -0.0
.debug_line 3953929 3953929 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2145018 2145018 0 0.0
.debug_rnglists 135352 135352 0 0.0
.debug_str 3977747 3977747 0 0.0
.heap 839064 839064 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 712040 712040 0 0.0
.symtab 465152 465152 0 0.0
.text 1470796 1470796 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 845272 845272 0 0.0
(read/write) 1605300 1605300 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185724 185724 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2344 2344 0 0.0
.debug_abbrev 1123274 1123274 0 0.0
.debug_aranges 127288 127288 0 0.0
.debug_frame 425460 425460 0 0.0
.debug_info 22299139 22299139 0 0.0
.debug_line 3520547 3520547 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1984240 1984240 0 0.0
.debug_rnglists 125242 125242 0 0.0
.debug_str 3788920 3788920 0 0.0
.heap 845272 845272 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 633648 633648 0 0.0
.symtab 430112 430112 0 0.0
.text 1408844 1408844 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 817848 817848 0 0.0
(read/write) 1635612 1635612 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 213156 213156 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2336 2336 0 0.0
.debug_abbrev 1099912 1099912 0 0.0
.debug_aranges 125232 125232 0 0.0
.debug_frame 418292 418292 0 0.0
.debug_info 21897128 21897126 -2 -0.0
.debug_line 3448342 3448342 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1951660 1951660 0 0.0
.debug_rnglists 122582 122582 0 0.0
.debug_str 3743149 3743149 0 0.0
.heap 817848 817848 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 603166 603166 0 0.0
.symtab 419952 419952 0 0.0
.text 1411732 1411732 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1176684 1176684 0 0.0
.bss 101392 101392 0 0.0
.data 736 736 0 0.0
.text 623528 623528 0 0.0
lock-app qpg6105+debug (read/write) 1133724 1133724 0 0.0
.bss 96112 96112 0 0.0
.data 740 740 0 0.0
.text 580564 580564 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1068780 1068780 0 0.0
bss 107460 107460 0 0.0
text 727832 727832 0 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 975248 975240 -8 -0.0
bss 105436 105436 0 0.0
text 668462 668458 -4 -0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 943072 943072 0 0.0
bss 109876 109876 0 0.0
text 646078 646074 -4 -0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 874980 874980 0 0.0
bss 99056 99056 0 0.0
text 589422 589424 2 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 903872 903864 -8 -0.0
bss 99648 99648 0 0.0
text 615058 615056 -2 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 981408 981416 8 0.0
bss 107732 107732 0 0.0
text 684922 684926 4 0.0
lighting-app-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 992780 992780 0 0.0
bss 111980 111980 0 0.0
text 692440 692440 0 0.0
lighting-app-rpc tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1050940 1050940 0 0.0
bss 109304 109304 0 0.0
text 729858 729858 0 0.0
lighting-app-shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1082268 1082276 8 0.0
bss 120380 120380 0 0.0
text 749960 749964 4 0.0
lock-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 929552 929552 0 0.0
bss 99700 99700 0 0.0
text 617578 617578 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 897616 897608 -8 -0.0
bss 100356 100356 0 0.0
text 611310 611308 -2 -0.0
pump-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 880476 880476 0 0.0
bss 99188 99188 0 0.0
text 595118 595116 -2 -0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 867632 867632 0 0.0
bss 98988 98988 0 0.0
text 585554 585556 2 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 744124 744132 8 0.0
bss 97256 97256 0 0.0
text 478572 478574 2 0.0
smoke_co_alarm-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 877040 877040 0 0.0
bss 99144 99144 0 0.0
text 592484 592484 0 0.0
temperature-measurement-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 863756 863756 0 0.0
bss 98896 98896 0 0.0
text 581154 581154 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 909700 909700 0 0.0
bss 99440 99440 0 0.0
text 620600 620600 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 905032 905032 0 0.0
bss 99752 99752 0 0.0
text 615470 615472 2 0.0

marius-alex-tache and others added 22 commits August 8, 2023 17:27
Stop advertising was wrongly scheduled from the timer service daemon task,
which has the highest priority. This caused BLE controller task to be preempted
when doing the switch from fast to slow advertising mode, which caused some events
to not be captured on time, resulting in a failed advertising stop.

Stop advertising is now scheduled to run from Matter task.

Signed-off-by: Marius Tache <[email protected]>
The example uses template/reference board configuration files.

To overwrite the board configuration files, set `override_is_DK6=false` in the
`k32w0_sdk` target from the app `BUILD.gn`:

```
k32w0_sdk("sdk") {
    override_is_DK6 = false
    ...
}
```

This variable will be used by `k32w0_sdk.gni` to overwrite `chip_with_DK6` option,
thus the reference board configuration files will no longer be used.

Signed-off-by: Marius Tache <[email protected]>
RAM storage class was moved to k32w0 folder.

RamStorageKey files were removed and implementation was moved
inside RamStorage.

Signed-off-by: Marius Tache <[email protected]>
Increase number of KVS keys to 200.

Signed-off-by: Marius Tache <[email protected]>
Not in the scope of the ticket.

Signed-off-by: Marius Tache <[email protected]>
…etting

If extended search was enabled for a RAM storage instance, then factory reset
should remove all PDM ids used, starting with the base one.

Signed-off-by: Marius Tache <[email protected]>
Signed-off-by: Marius Tache <[email protected]>
Restyled by clang-format
Restyled by gn
Restyled by prettier-markdown
Restyled by prettier-yaml
  update cPWR_UsePowerDownMode usage to a more generic chip_with_low_power
  in order to be able to be used by multiple platforms

Signed-off-by: Marius Vilvoi <[email protected]>
Restyled by gn
Restyled by prettier-markdown
The user can specify a custom SDK by setting NXP_K32W0_SDK_ROOT.
If such an env variabile is not defined, then the gn env will
implicitly set it to the SDK found in the repo:
third_party/nxp/k32w0_sdk/repo/core

Signed-off-by: Marius Tache <[email protected]>
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

PR #28489: Size comparison from ca3dbdf to d0b3ee7

Increases above 0.2%:

platform target config section ca3dbdf d0b3ee7 change % change
k32w contact k32w0+release (read/write) 91272 95308 4036 4.4
.bss 67316 71344 4028 6.0
light k32w0+release (read/write) 90912 94956 4044 4.4
.bss 66972 71008 4036 6.0
lock k32w0+release (read/write) 88736 92748 4012 4.5
.bss 64852 68864 4012 6.2
Increases (17 builds for bl702, bl702l, cc32xx, k32w, mbed, nrfconnect, psoc6, telink)
platform target config section ca3dbdf d0b3ee7 change % change
bl702 lighting-app bl702 .debug_info 41493416 41493417 1 0.0
.text 953446 953448 2 0.0
bl702+rpc .debug_info 46387856 46387857 1 0.0
.text 1028130 1028132 2 0.0
bl702l lighting-app bl702l .debug_info 41494526 41494527 1 0.0
.text 942522 942524 2 0.0
cc32xx lock CC3235SF_LAUNCHXL .debug_info 19408670 19408671 1 0.0
k32w contact k32w0+release (read only) 590460 590500 40 0.0
(read/write) 91272 95308 4036 4.4
.bss 67316 71344 4028 6.0
.data 2124 2128 4 0.2
.text 589924 589964 40 0.0
light k32w0+release (read only) 589084 589300 216 0.0
(read/write) 90912 94956 4044 4.4
.bss 66972 71008 4036 6.0
.data 2112 2116 4 0.2
.text 588548 588764 216 0.0
lock k32w0+release (read/write) 88736 92748 4012 4.5
.bss 64852 68864 4012 6.2
.data 2056 2060 4 0.2
mbed lock-app-release cy8cproto_062_4343w (read/write) 2522016 2522080 64 0.0
.text 1484700 1484764 64 0.0
nrfconnect all-clusters-app nrf7002dk_nrf5340_cpuapp text 771116 771120 4 0.0
psoc6 all-clusters-minimal cy8ckit_062s2_43012 .debug_info 27211422 27211423 1 0.0
telink bridge-app tlsr9518adk80d (read/write) 944056 944064 8 0.0
text 646886 646890 4 0.0
contact-sensor-app tlsr9518adk80d text 590276 590278 2 0.0
lighting-app tlsr9518adk80d text 685640 685642 2 0.0
lighting-app-rpc tlsr9518adk80d text 730574 730576 2 0.0
pump-controller-app tlsr9518adk80d text 586340 586342 2 0.0
shell tlsr9518adk80d text 478642 478644 2 0.0
temperature-measurement-app tlsr9518adk80d text 581988 581992 4 0.0
Decreases (9 builds for efr32, k32w, psoc6, telink)
platform target config section ca3dbdf d0b3ee7 change % change
efr32 lighting-app BRD4187C (read/write) 1036540 1036532 -8 -0.0
.text 869164 869156 -8 -0.0
k32w lock k32w0+release (read only) 561652 561636 -16 -0.0
.text 561116 561100 -16 -0.0
psoc6 lock cy8ckit_062s2_43012 .debug_info 22271338 22271337 -1 -0.0
telink light-switch-app tlsr9518adk80d text 618010 618006 -4 -0.0
lighting-app-factory-data tlsr9518adk80d text 693160 693156 -4 -0.0
lock-app tlsr9518adk80d text 620952 620950 -2 -0.0
ota-requestor-app tlsr9518adk80d text 612122 612120 -2 -0.0
thermostat tlsr9518adk80d text 621320 621318 -2 -0.0
window-covering tlsr9518adk80d text 616628 616626 -2 -0.0
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section ca3dbdf d0b3ee7 change % change
bl602 lighting-app bl602 (read/write) 1363378 1363378 0 0.0
.bss 73622 73622 0 0.0
.data 9560 9560 0 0.0
.text 1056472 1056472 0 0.0
bl602+rpc (read/write) 1410846 1410846 0 0.0
.bss 81662 81662 0 0.0
.data 9952 9952 0 0.0
.text 1088404 1088404 0 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1166231 1166231 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 41285 41285 0 0.0
.bss_psram 43424 43424 0 0.0
.comment 48 48 0 0.0
.data 3544 3544 0 0.0
.debug_abbrev 1566850 1566850 0 0.0
.debug_aranges 140376 140376 0 0.0
.debug_frame 516544 516544 0 0.0
.debug_info 41493416 41493417 1 0.0
.debug_line 5483125 5483125 0 0.0
.debug_loc 3564497 3564497 0 0.0
.debug_ranges 384456 384456 0 0.0
.debug_str 4011830 4011830 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106856 106856 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 589131 589131 0 0.0
.symtab 175568 175568 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
953446 953448 2 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1265167 1265167 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 49749 49749 0 0.0
.bss_psram 43424 43424 0 0.0
.comment 48 48 0 0.0
.data 4104 4104 0 0.0
.debug_abbrev 1743980 1743980 0 0.0
.debug_aranges 148920 148920 0 0.0
.debug_frame 545448 545448 0 0.0
.debug_info 46387856 46387857 1 0.0
.debug_line 5895647 5895647 0 0.0
.debug_loc 3770653 3770653 0 0.0
.debug_ranges 410208 410208 0 0.0
.debug_str 4431695 4431695 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121508 121508 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 652094 652094 0 0.0
.symtab 194496 194496 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1028130 1028132 2 0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1152164 1152164 0 0.0
.boot2 292 292 0 0.0
.bss 15988 15988 0 0.0
.bss_psram 77840 77840 0 0.0
.comment 48 48 0 0.0
.data 4528 4528 0 0.0
.debug_abbrev 1569069 1569069 0 0.0
.debug_aranges 134880 134880 0 0.0
.debug_frame 496232 496232 0 0.0
.debug_info 41494526 41494527 1 0.0
.debug_line 5398819 5398819 0 0.0
.debug_loc 3500581 3500581 0 0.0
.debug_ranges 389664 389664 0 0.0
.debug_str 4024299 4024299 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 100740 100740 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 589356 589356 0 0.0
.symtab 175136 175136 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
942522 942524 2 0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 615602 615602 0 0.0
(read/write) 207744 207744 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 201184 201184 0 0.0
.comment 206 206 0 0.0
.data 1440 1440 0 0.0
.debug_abbrev 961444 961444 0 0.0
.debug_aranges 109048 109048 0 0.0
.debug_frame 369820 369820 0 0.0
.debug_info 19408670 19408671 1 0.0
.debug_line 2813733 2813733 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1596942 1596942 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 100570 100570 0 0.0
.debug_str 3426533 3426533 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106282 106282 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 496231 496231 0 0.0
.symtab 293312 293312 0 0.0
.text 507196 507196 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 550135 550135 0 0.0
.app_xip_area 441425 441425 0 0.0
.bss 63728 63728 0 0.0
.data 664 664 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 537215 537215 0 0.0
.app_xip_area 423457 423457 0 0.0
.bss 68752 68752 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 573927 573927 0 0.0
.app_xip_area 466297 466297 0 0.0
.bss 62720 62720 0 0.0
.data 592 592 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 548863 548863 0 0.0
.app_xip_area 438225 438225 0 0.0
.bss 65632 65632 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1011980 1011980 0 0.0
.bss 184524 184524 0 0.0
.data 2652 2652 0 0.0
.text 824784 824784 0 0.0
BRD4187C (read/write) 1036540 1036532 -8 -0.0
.bss 164108 164108 0 0.0
.data 3248 3248 0 0.0
.text 869164 869156 -8 -0.0
lock-app BRD4161A+wf200 (read/write) 1088680 1088680 0 0.0
.bss 178580 178580 0 0.0
.data 2672 2672 0 0.0
.text 907408 907408 0 0.0
window-app BRD4187C (read/write) 1107992 1107992 0 0.0
.bss 147148 147148 0 0.0
.data 3132 3132 0 0.0
.text 957692 957692 0 0.0
esp32 all-clusters-app c3devkit (read only) 1149558 1149558 0 0.0
(read/write) 1701964 1701964 0 0.0
.dram0.bss 79048 79048 0 0.0
.dram0.data 13076 13076 0 0.0
.flash.rodata 266088 266088 0 0.0
.flash.text 1149558 1149558 0 0.0
.iram0.text 75262 75262 0 0.0
m5stack (read only) 1191383 1191383 0 0.0
(read/write) 550174 550174 0 0.0
.dram0.bss 85416 85416 0 0.0
.dram0.data 34036 34036 0 0.0
.flash.rodata 297080 297080 0 0.0
.flash.text 1185999 1185999 0 0.0
.iram0.text 123311 123311 0 0.0
k32w contact k32w0+release (read only) 590460 590500 40 0.0
(read/write) 91272 95308 4036 4.4
.bss 67316 71344 4028 6.0
.data 2124 2128 4 0.2
.text 589924 589964 40 0.0
light k32w0+release (read only) 589084 589300 216 0.0
(read/write) 90912 94956 4044 4.4
.bss 66972 71008 4036 6.0
.data 2112 2116 4 0.2
.text 588548 588764 216 0.0
lock k32w0+release (read only) 561652 561636 -16 -0.0
(read/write) 88736 92748 4012 4.5
.bss 64852 68864 4012 6.2
.data 2056 2060 4 0.2
.text 561116 561100 -16 -0.0
linux all-clusters-app debug (read only) 5487073 5487073 0 0.0
(read/write) 417632 417632 0 0.0
.bss 130400 130400 0 0.0
.data 4016 4016 0 0.0
.data.rel.ro 275872 275872 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1304 1304 0 0.0
.rodata 334000 334000 0 0.0
.text 4776019 4776019 0 0.0
all-clusters-minimal-app debug (read only) 4900937 4900937 0 0.0
(read/write) 231384 231384 0 0.0
.bss 126016 126016 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 94376 94376 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 271878 271878 0 0.0
.text 4398883 4398883 0 0.0
bridge-app debug (read only) 2768753 2768753 0 0.0
(read/write) 132816 132816 0 0.0
.bss 51480 51480 0 0.0
.data 3824 3824 0 0.0
.data.rel.ro 71400 71400 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 214440 214440 0 0.0
.text 2376787 2376787 0 0.0
chip-tool debug (read only) 17695089 17695089 0 0.0
(read/write) 1054272 1054272 0 0.0
.bss 93752 93752 0 0.0
.data 5090 5090 0 0.0
.data.rel.ro 948080 948080 0 0.0
.dynamic 624 624 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 911729 911729 0 0.0
.text 14730659 14730659 0 0.0
chip-tool-ipv6only arm64 (read only) 16914660 16914660 0 0.0
(read/write) 1121736 1121736 0 0.0
.bss 103064 103064 0 0.0
.data 4392 4392 0 0.0
.data.rel.ro 985432 985432 0 0.0
.dynamic 512 512 0 0.0
.got 23352 23352 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 822768 822768 0 0.0
.text 13854424 13854424 0 0.0
lighting-app debug+rpc+ui (read only) 5240225 5240225 0 0.0
(read/write) 222056 222056 0 0.0
.bss 117712 117712 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 92240 92240 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 336948 336948 0 0.0
.text 4661203 4661203 0 0.0
lock-app debug (read only) 4471185 4471185 0 0.0
(read/write) 202808 202808 0 0.0
.bss 113328 113328 0 0.0
.data 3728 3728 0 0.0
.data.rel.ro 78960 78960 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 247782 247782 0 0.0
.text 4014051 4014051 0 0.0
ota-provider-app debug (read only) 4127385 4127385 0 0.0
(read/write) 191872 191872 0 0.0
.bss 113504 113504 0 0.0
.data 4000 4000 0 0.0
.data.rel.ro 68448 68448 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 200966 200966 0 0.0
.text 3736099 3736099 0 0.0
ota-requestor-app debug (read only) 4221313 4221313 0 0.0
(read/write) 196184 196184 0 0.0
.bss 114560 114560 0 0.0
.data 4240 4240 0 0.0
.data.rel.ro 71448 71448 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 204390 204390 0 0.0
.text 3822275 3822275 0 0.0
shell debug (read only) 2930145 2930145 0 0.0
(read/write) 150688 150688 0 0.0
.bss 60008 60008 0 0.0
.data 784 784 0 0.0
.data.rel.ro 84024 84024 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 210674 210674 0 0.0
.text 2548578 2548578 0 0.0
thermostat-no-ble arm64 (read only) 4450292 4450292 0 0.0
(read/write) 243848 243848 0 0.0
.bss 122280 122280 0 0.0
.data 2880 2880 0 0.0
.data.rel.ro 102232 102232 0 0.0
.dynamic 512 512 0 0.0
.got 11984 11984 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 161996 161996 0 0.0
.text 3950216 3950216 0 0.0
tv-app debug (read only) 5315281 5315281 0 0.0
(read/write) 349856 349856 0 0.0
.bss 241280 241280 0 0.0
.data 5104 5104 0 0.0
.data.rel.ro 96048 96048 0 0.0
.dynamic 624 624 0 0.0
.got 5616 5616 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 272374 272374 0 0.0
.text 4799267 4799267 0 0.0
tv-casting-app debug (read only) 8294929 8294929 0 0.0
(read/write) 210568 210568 0 0.0
.bss 54208 54208 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 147016 147016 0 0.0
.dynamic 624 624 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 1056 1056 0 0.0
.rodata 367644 367644 0 0.0
.text 7527123 7527123 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2522016 2522080 64 0.0
.bss 219904 219904 0 0.0
.data 5128 5128 0 0.0
.text 1484700 1484764 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1218660 1218660 0 0.0
bss 154612 154612 0 0.0
rodata 141392 141392 0 0.0
text 843712 843712 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1337356 1337356 0 0.0
bss 140070 140070 0 0.0
rodata 135484 135484 0 0.0
text 771116 771120 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1156700 1156700 0 0.0
bss 154791 154791 0 0.0
rodata 112776 112776 0 0.0
text 810148 810148 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837696 837696 0 0.0
(read/write) 1766740 1766740 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 193116 193116 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2528 2528 0 0.0
.debug_abbrev 1378124 1378124 0 0.0
.debug_aranges 143896 143896 0 0.0
.debug_frame 479260 479260 0 0.0
.debug_info 30114178 30114178 0 0.0
.debug_line 4143056 4143056 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2248256 2248256 0 0.0
.debug_rnglists 142347 142347 0 0.0
.debug_str 4119206 4119206 0 0.0
.heap 837696 837696 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 802606 802606 0 0.0
.symtab 500160 500160 0 0.0
.text 1562708 1562708 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 839648 839648 0 0.0
(read/write) 1674188 1674188 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 191228 191228 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1284561 1284561 0 0.0
.debug_aranges 137200 137200 0 0.0
.debug_frame 462360 462360 0 0.0
.debug_info 27211422 27211423 1 0.0
.debug_line 3961008 3961008 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2149102 2149102 0 0.0
.debug_rnglists 135480 135480 0 0.0
.debug_str 3978755 3978755 0 0.0
.heap 839648 839648 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 713240 713240 0 0.0
.symtab 465808 465808 0 0.0
.text 1472108 1472108 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 845912 845912 0 0.0
(read/write) 1605684 1605684 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185076 185076 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2352 2352 0 0.0
.debug_abbrev 1124889 1124889 0 0.0
.debug_aranges 127328 127328 0 0.0
.debug_frame 425504 425504 0 0.0
.debug_info 22357909 22357909 0 0.0
.debug_line 3526313 3526313 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1986217 1986217 0 0.0
.debug_rnglists 125250 125250 0 0.0
.debug_str 3786827 3786827 0 0.0
.heap 845912 845912 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 634232 634232 0 0.0
.symtab 430448 430448 0 0.0
.text 1409868 1409868 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 818392 818392 0 0.0
(read/write) 1639188 1639188 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 212580 212580 0 0.0
.comment 212 212 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2368 2368 0 0.0
.debug_abbrev 1116327 1116327 0 0.0
.debug_aranges 126240 126240 0 0.0
.debug_frame 421532 421532 0 0.0
.debug_info 22271338 22271337 -1 -0.0
.debug_line 3481764 3481764 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1966626 1966626 0 0.0
.debug_rnglists 123426 123426 0 0.0
.debug_str 3751365 3751365 0 0.0
.heap 818392 818392 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 608132 608132 0 0.0
.symtab 422576 422576 0 0.0
.text 1415852 1415852 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1177788 1177788 0 0.0
.bss 101176 101176 0 0.0
.data 744 744 0 0.0
.text 624632 624632 0 0.0
lock-app qpg6105+debug (read/write) 1134852 1134852 0 0.0
.bss 95896 95896 0 0.0
.data 748 748 0 0.0
.text 581692 581692 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1070188 1070188 0 0.0
bss 107308 107308 0 0.0
text 729000 729000 0 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 976664 976664 0 0.0
bss 105284 105284 0 0.0
text 669638 669638 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 944056 944064 8 0.0
bss 109660 109660 0 0.0
text 646886 646890 4 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 876020 876020 0 0.0
bss 98840 98840 0 0.0
text 590276 590278 2 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 907324 907324 0 0.0
bss 99464 99464 0 0.0
text 618010 618006 -4 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 982312 982312 0 0.0
bss 107516 107516 0 0.0
text 685640 685642 2 0.0
lighting-app-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 993676 993676 0 0.0
bss 111764 111764 0 0.0
text 693160 693156 -4 -0.0
lighting-app-rpc tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1051844 1051844 0 0.0
bss 109088 109088 0 0.0
text 730574 730576 2 0.0
lighting-app-shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1083164 1083164 0 0.0
bss 120164 120164 0 0.0
text 750680 750680 0 0.0
lock-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 933472 933472 0 0.0
bss 99560 99560 0 0.0
text 620952 620950 -2 -0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 898600 898600 0 0.0
bss 100148 100148 0 0.0
text 612122 612120 -2 -0.0
pump-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 881412 881412 0 0.0
bss 98972 98972 0 0.0
text 595880 595880 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 868592 868592 0 0.0
bss 98772 98772 0 0.0
text 586340 586342 2 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 744180 744180 0 0.0
bss 97208 97208 0 0.0
text 478642 478644 2 0.0
smoke_co_alarm-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 878504 878504 0 0.0
bss 98952 98952 0 0.0
text 593752 593752 0 0.0
temperature-measurement-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 864772 864772 0 0.0
bss 98680 98680 0 0.0
text 581988 581992 4 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 910604 910604 0 0.0
bss 99224 99224 0 0.0
text 621320 621318 -2 -0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 906392 906392 0 0.0
bss 99560 99560 0 0.0
text 616628 616626 -2 -0.0

@mergify mergify bot merged commit 0ecb4e1 into project-chip:master Aug 9, 2023
abpoth pushed a commit to abpoth/connectedhomeip that referenced this pull request Aug 15, 2023
* k32w0: Re-use Thread task for BLE processing

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: Use generic FreeRTOS functions

Avoid using messaging/allocation functions specific to K32W0-SDK
and use instead generic FreeRTOS functions.

This opens the path for a common BLE Manager between K32W0/K32W1.

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: event queues: use generic FreeRTOS functions

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: avoid useless advertising restarting

There is no need to restart advertising after a connect event.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Place BLE common code in a single file

Only specific BLE initialization code is placed under k32w0 folder.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Place specific initialization code in an abstract method

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Avoid useless stop of ble advertising

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Remove unused function

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: remove useless controller code

NVIC Priority set is done inside the controller library.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Small fixes

- return codes;
- comments.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Add LP API header

The LP API was not included in BleManagerImpl when building
in low power mode.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Clear unsupported thread metrics

Thread metrics optional fields should call ClearValue explicitly,
to make sure no garbage is returned in the response message.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Disable CHIP_DEVICE_CONFIG_BLE_SET_PHY_2M_REQ for lock/contact sensor

This define enables/disables the Gap_LeSetPhy request to switch to 2M.
It is disabled here for interoperability reasons just to be extra cautious.
Both devices may send a Link Layer control procedure in parallel resulting in a
LPM Error Transaction Collision.
If the peer device doesn't accept our reject command, this can result in a BLE
connection timeout.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] FRO 32K mode should be used with 32Mhz cpu clock

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove OTA API dependency in factory data provider

If factory data is used, then it is expected that the internal flash
section is written, so the factory data provider can memcpy directly,
without additional checks that were previously done in OtaUtils.

Using the OTA API for reading internal flash data just seems unnatural.
In the absence of another API, just memcpy directly assuming the section
was written.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Rename factory data flag

CONFIG_CHIP_K32W0_REAL_FACTORY_DATA renamed to CONFIG_CHIP_LOAD_REAL_FACTORY_DATA.
Also replaced format string in factory data provider logs.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Rename K32W0FactoryDataProvider to FactoryDataProvider

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Move FactoryDataProvider to K32W common area

Update #include statements to use an absolute path.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add FactoryDataProviderImpl

FactoryDataProviderImpl has two main features:
- CHIP_DEVICE_CONFIG_USE_CUSTOM_PROVIDER - enables application factory data provider
- CONFIG_CHIP_K32W0_OTA_FACTORY_DATA_PROCESSOR - enables factory data OTA

Enclose the corresponding functions in their respective flags.

Applications should instantiate a FactoryDataProviderImpl instance,
which can be default or custom.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add support for kSoftwareUpdateCompleted boot reason

A new K32WConfig key is introduced: kConfigKey_SoftwareUpdateCompleted
This key is stored in OTA HandleApply, before the device is reset.
Upon initialization, if the reset is caused by a system reset (ResetMCU),
then if this key exists, the boot reason is kSoftwareUpdateCompleted.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] POWER_GetResetCause() should be called once for each startup, and its return value should be processed bit by bit

* [K32W0] the priority is watchdog reset, when software reset and watchdog reset are set at the same time in POWER_GetResetCause()

* [K32W0] Remove ble connections state

Other changes:
* Set fast advertising flag when advertising is stopped
* Add device connected state

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove unused members

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Move global variables to class members

Add HandleForceDisconnect method.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Event queue should be emptied in DoBleProcessing

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Cancel BLE advertising timer upon connection close event

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Schedule stop advertising from Matter task

Stop advertising was wrongly scheduled from the timer service daemon task,
which has the highest priority. This caused BLE controller task to be preempted
when doing the switch from fast to slow advertising mode, which caused some events
to not be captured on time, resulting in a failed advertising stop.

Stop advertising is now scheduled to run from Matter task.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add instructions to overwrite board configuration files

The example uses template/reference board configuration files.

To overwrite the board configuration files, set `override_is_DK6=false` in the
`k32w0_sdk` target from the app `BUILD.gn`:

```
k32w0_sdk("sdk") {
    override_is_DK6 = false
    ...
}
```

This variable will be used by `k32w0_sdk.gni` to overwrite `chip_with_DK6` option,
thus the reference board configuration files will no longer be used.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Restructure RAM storage

RAM storage class was moved to k32w0 folder.

RamStorageKey files were removed and implementation was moved
inside RamStorage.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add extendedSearch option

Increase number of KVS keys to 200.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove unused ksdk_mbedtls file

Not in the scope of the ticket.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Extended search should be taken into account when factory resetting

If extended search was enabled for a RAM storage instance, then factory reset
should remove all PDM ids used, starting with the base one.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Update SDK version in README files

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Set rotating device id unique id length to max by default

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Use west to get K32W0 SDK

* [K32W0] Remove deprecated function pointer

Signed-off-by: Marius Tache <[email protected]>

* [NXP] Bump ot-nxp to latest

Signed-off-by: Marius Tache <[email protected]>

* Restyled by whitespace
Restyled by clang-format
Restyled by gn
Restyled by prettier-markdown
Restyled by prettier-yaml

* [K32W0] update cPWR_UsePowerDownMode to chip_with_low_power

  update cPWR_UsePowerDownMode usage to a more generic chip_with_low_power
  in order to be able to be used by multiple platforms

Signed-off-by: Marius Vilvoi <[email protected]>

* [K32W0] Remove unused flag in README files

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove redundant header file

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Update path for building K32W041 as this missing files are only under the K32W061 board

* [K32W0] Update docker image version in examples job

Signed-off-by: Marius Tache <[email protected]>

* Restyled by whitespace
Restyled by gn
Restyled by prettier-markdown

* [K32W0] Update documentation for reference apps

The user can specify a custom SDK by setting NXP_K32W0_SDK_ROOT.
If such an env variabile is not defined, then the gn env will
implicitly set it to the SDK found in the repo:
third_party/nxp/k32w0_sdk/repo/core

Signed-off-by: Marius Tache <[email protected]>

* Restyled by gn

* Restyled by prettier-markdown

* [K32W0] BLE processing should be done under the corresponding flag

Signed-off-by: Marius Tache <[email protected]>

---------

Signed-off-by: Doru Gucea <[email protected]>
Signed-off-by: Marius Tache <[email protected]>
Signed-off-by: Marius Vilvoi <[email protected]>
Co-authored-by: Doru Gucea <[email protected]>
Co-authored-by: tanyue518 <[email protected]>
Co-authored-by: Gabriel Couturier <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Marius Vilvoi <[email protected]>
s07641069 pushed a commit to s07641069/connectedhomeip that referenced this pull request Aug 22, 2023
* k32w0: Re-use Thread task for BLE processing

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: Use generic FreeRTOS functions

Avoid using messaging/allocation functions specific to K32W0-SDK
and use instead generic FreeRTOS functions.

This opens the path for a common BLE Manager between K32W0/K32W1.

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: event queues: use generic FreeRTOS functions

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: avoid useless advertising restarting

There is no need to restart advertising after a connect event.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Place BLE common code in a single file

Only specific BLE initialization code is placed under k32w0 folder.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Place specific initialization code in an abstract method

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Avoid useless stop of ble advertising

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Remove unused function

Signed-off-by: Doru Gucea <[email protected]>

* k32w0: remove useless controller code

NVIC Priority set is done inside the controller library.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Small fixes

- return codes;
- comments.

Signed-off-by: Doru Gucea <[email protected]>

* [K32W0] Add LP API header

The LP API was not included in BleManagerImpl when building
in low power mode.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Clear unsupported thread metrics

Thread metrics optional fields should call ClearValue explicitly,
to make sure no garbage is returned in the response message.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Disable CHIP_DEVICE_CONFIG_BLE_SET_PHY_2M_REQ for lock/contact sensor

This define enables/disables the Gap_LeSetPhy request to switch to 2M.
It is disabled here for interoperability reasons just to be extra cautious.
Both devices may send a Link Layer control procedure in parallel resulting in a
LPM Error Transaction Collision.
If the peer device doesn't accept our reject command, this can result in a BLE
connection timeout.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] FRO 32K mode should be used with 32Mhz cpu clock

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove OTA API dependency in factory data provider

If factory data is used, then it is expected that the internal flash
section is written, so the factory data provider can memcpy directly,
without additional checks that were previously done in OtaUtils.

Using the OTA API for reading internal flash data just seems unnatural.
In the absence of another API, just memcpy directly assuming the section
was written.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Rename factory data flag

CONFIG_CHIP_K32W0_REAL_FACTORY_DATA renamed to CONFIG_CHIP_LOAD_REAL_FACTORY_DATA.
Also replaced format string in factory data provider logs.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Rename K32W0FactoryDataProvider to FactoryDataProvider

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Move FactoryDataProvider to K32W common area

Update #include statements to use an absolute path.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add FactoryDataProviderImpl

FactoryDataProviderImpl has two main features:
- CHIP_DEVICE_CONFIG_USE_CUSTOM_PROVIDER - enables application factory data provider
- CONFIG_CHIP_K32W0_OTA_FACTORY_DATA_PROCESSOR - enables factory data OTA

Enclose the corresponding functions in their respective flags.

Applications should instantiate a FactoryDataProviderImpl instance,
which can be default or custom.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add support for kSoftwareUpdateCompleted boot reason

A new K32WConfig key is introduced: kConfigKey_SoftwareUpdateCompleted
This key is stored in OTA HandleApply, before the device is reset.
Upon initialization, if the reset is caused by a system reset (ResetMCU),
then if this key exists, the boot reason is kSoftwareUpdateCompleted.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] POWER_GetResetCause() should be called once for each startup, and its return value should be processed bit by bit

* [K32W0] the priority is watchdog reset, when software reset and watchdog reset are set at the same time in POWER_GetResetCause()

* [K32W0] Remove ble connections state

Other changes:
* Set fast advertising flag when advertising is stopped
* Add device connected state

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove unused members

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Move global variables to class members

Add HandleForceDisconnect method.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Event queue should be emptied in DoBleProcessing

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Cancel BLE advertising timer upon connection close event

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Schedule stop advertising from Matter task

Stop advertising was wrongly scheduled from the timer service daemon task,
which has the highest priority. This caused BLE controller task to be preempted
when doing the switch from fast to slow advertising mode, which caused some events
to not be captured on time, resulting in a failed advertising stop.

Stop advertising is now scheduled to run from Matter task.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add instructions to overwrite board configuration files

The example uses template/reference board configuration files.

To overwrite the board configuration files, set `override_is_DK6=false` in the
`k32w0_sdk` target from the app `BUILD.gn`:

```
k32w0_sdk("sdk") {
    override_is_DK6 = false
    ...
}
```

This variable will be used by `k32w0_sdk.gni` to overwrite `chip_with_DK6` option,
thus the reference board configuration files will no longer be used.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Restructure RAM storage

RAM storage class was moved to k32w0 folder.

RamStorageKey files were removed and implementation was moved
inside RamStorage.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Add extendedSearch option

Increase number of KVS keys to 200.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove unused ksdk_mbedtls file

Not in the scope of the ticket.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Extended search should be taken into account when factory resetting

If extended search was enabled for a RAM storage instance, then factory reset
should remove all PDM ids used, starting with the base one.

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Update SDK version in README files

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Set rotating device id unique id length to max by default

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Use west to get K32W0 SDK

* [K32W0] Remove deprecated function pointer

Signed-off-by: Marius Tache <[email protected]>

* [NXP] Bump ot-nxp to latest

Signed-off-by: Marius Tache <[email protected]>

* Restyled by whitespace
Restyled by clang-format
Restyled by gn
Restyled by prettier-markdown
Restyled by prettier-yaml

* [K32W0] update cPWR_UsePowerDownMode to chip_with_low_power

  update cPWR_UsePowerDownMode usage to a more generic chip_with_low_power
  in order to be able to be used by multiple platforms

Signed-off-by: Marius Vilvoi <[email protected]>

* [K32W0] Remove unused flag in README files

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Remove redundant header file

Signed-off-by: Marius Tache <[email protected]>

* [K32W0] Update path for building K32W041 as this missing files are only under the K32W061 board

* [K32W0] Update docker image version in examples job

Signed-off-by: Marius Tache <[email protected]>

* Restyled by whitespace
Restyled by gn
Restyled by prettier-markdown

* [K32W0] Update documentation for reference apps

The user can specify a custom SDK by setting NXP_K32W0_SDK_ROOT.
If such an env variabile is not defined, then the gn env will
implicitly set it to the SDK found in the repo:
third_party/nxp/k32w0_sdk/repo/core

Signed-off-by: Marius Tache <[email protected]>

* Restyled by gn

* Restyled by prettier-markdown

* [K32W0] BLE processing should be done under the corresponding flag

Signed-off-by: Marius Tache <[email protected]>

---------

Signed-off-by: Doru Gucea <[email protected]>
Signed-off-by: Marius Tache <[email protected]>
Signed-off-by: Marius Vilvoi <[email protected]>
Co-authored-by: Doru Gucea <[email protected]>
Co-authored-by: tanyue518 <[email protected]>
Co-authored-by: Gabriel Couturier <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Marius Vilvoi <[email protected]>
@GabrielCouturier GabrielCouturier deleted the upstream-k32w0-2.6.12 branch November 10, 2023 08:12
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.

8 participants