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

[nrfconnect] Fix flashing script #15628

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

Damian-Nordic
Copy link
Contributor

Problem

Flashing script uses only --pinresetenable flag which doesn't reset the board.

Change overview

--reset flash should be used to reset the board after flashing a firmware.

Testing

Ran the script and tested it programs a firmware and resets the board correctly.

--reset flash should be used to reset the board after
flashing a firmware.
@github-actions
Copy link

github-actions bot commented Feb 28, 2022

PR #15628: Size comparison from 031edd0 to bf8a5bf

Full report (32 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 031edd0 bf8a5bf change % change
cyw30739 light cyw930739m2evb_01 (read/write) 599542 599542 0 0.0
.app_xip_area 504388 504388 0 0.0
.bss 77844 77844 0 0.0
.data 652 652 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 557614 557614 0 0.0
.app_xip_area 463996 463996 0 0.0
.bss 76348 76348 0 0.0
.data 616 616 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 578138 578138 0 0.0
.app_xip_area 475088 475088 0 0.0
.bss 85452 85452 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 916516 916516 0 0.0
(read/write) 128608 128608 0 0.0
.bss 126560 126560 0 0.0
.data 2048 2048 0 0.0
.text 916508 916508 0 0.0
BRD4161A+rpc (read only) 946604 946604 0 0.0
(read/write) 145548 145548 0 0.0
.bss 143336 143336 0 0.0
.data 2212 2212 0 0.0
.text 946596 946596 0 0.0
lock-app BRD4161A+wf200 (read only) 986436 986436 0 0.0
(read/write) 120360 120360 0 0.0
.bss 118436 118436 0 0.0
.data 1924 1924 0 0.0
.text 986428 986428 0 0.0
window-app BRD4161A (read only) 850596 850596 0 0.0
(read/write) 126844 126844 0 0.0
.bss 124928 124928 0 0.0
.data 1916 1916 0 0.0
.text 850588 850588 0 0.0
esp32 all-clusters-app c3devkit (read only) 956534 956534 0 0.0
(read/write) 1392986 1392986 0 0.0
.dram0.bss 62592 62592 0 0.0
.dram0.data 14228 14228 0 0.0
.flash.rodata 197248 197248 0 0.0
.flash.text 956534 956534 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1004671 1004671 0 0.0
(read/write) 458264 458264 0 0.0
.dram0.bss 68096 68096 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 224600 224600 0 0.0
.flash.text 999287 999287 0 0.0
.iram0.text 122767 122767 0 0.0
k32w light k32w061+release (read/write) 691904 691904 0 0.0
.bss 77480 77480 0 0.0
.data 1924 1924 0 0.0
.text 606700 606700 0 0.0
lock k32w061+release (read/write) 695176 695176 0 0.0
.bss 77688 77688 0 0.0
.data 1964 1964 0 0.0
.text 609724 609724 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8757372 8757372 0 0.0
(read/write) 412049 412049 0 0.0
.bss 58673 58673 0 0.0
.data 1216 1216 0 0.0
.data.rel.ro 296840 296840 0 0.0
.dynamic 560 560 0 0.0
.got 51512 51512 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 456996 456996 0 0.0
.text 7435092 7435092 0 0.0
thermostat-no-ble arm64 (read only) 2162916 2162916 0 0.0
(read/write) 148577 148577 0 0.0
.bss 65265 65265 0 0.0
.data 1056 1056 0 0.0
.data.rel.ro 75080 75080 0 0.0
.dynamic 560 560 0 0.0
.got 4216 4216 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 132964 132964 0 0.0
.text 1811648 1811648 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2350140 2350140 0 0.0
.bss 187092 187092 0 0.0
.data 5776 5776 0 0.0
.text 1312740 1312740 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1038907 1038907 0 0.0
bss 125756 125756 0 0.0
rodata 135900 135900 0 0.0
text 700036 700036 0 0.0
lighting-app nrf52840dk_nrf52840 (read/write) 1002695 1002695 0 0.0
bss 122080 122080 0 0.0
rodata 116144 116144 0 0.0
text 686984 686984 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 969007 969007 0 0.0
bss 119164 119164 0 0.0
rodata 107520 107520 0 0.0
text 664208 664208 0 0.0
nrf52840dongle_nrf52840 (read/write) 1018207 1018207 0 0.0
bss 123112 123112 0 0.0
rodata 115828 115828 0 0.0
text 691124 691124 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 905538 905538 0 0.0
bss 119368 119368 0 0.0
rodata 108256 108256 0 0.0
text 596696 596696 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 931223 931223 0 0.0
bss 120280 120280 0 0.0
rodata 104976 104976 0 0.0
text 628904 628904 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 834846 834846 0 0.0
bss 117600 117600 0 0.0
rodata 97004 97004 0 0.0
text 539380 539380 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 501603 501603 0 0.0
bss 52584 52584 0 0.0
rodata 44500 44500 0 0.0
text 342712 342712 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 929467 929467 0 0.0
bss 120012 120012 0 0.0
rodata 103956 103956 0 0.0
text 628332 628332 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 925443 925443 0 0.0
bss 120016 120016 0 0.0
rodata 103652 103652 0 0.0
text 624588 624588 0 0.0
shell nrf52840dk_nrf52840 (read/write) 788811 788811 0 0.0
bss 112360 112360 0 0.0
rodata 74836 74836 0 0.0
text 525504 525504 0 0.0
p6 all-clusters-app default (read/write) 2488104 2488104 0 0.0
.bss 118664 118664 0 0.0
.data 2688 2688 0 0.0
.text 1446368 1446368 0 0.0
light-app default (read/write) 2395304 2395304 0 0.0
.bss 112984 112984 0 0.0
.data 2536 2536 0 0.0
.text 1353568 1353568 0 0.0
lock-app default (read/write) 2358880 2358880 0 0.0
.bss 112728 112728 0 0.0
.data 2496 2496 0 0.0
.text 1317144 1317144 0 0.0
qpg lighting-app qpg6105+debug (read only) 601168 601168 0 0.0
(read/write) 146936 146936 0 0.0
.bss 90904 90904 0 0.0
.data 1124 1124 0 0.0
.text 595848 595848 0 0.0
lock-app qpg6105+debug (read only) 566964 566964 0 0.0
(read/write) 146936 146936 0 0.0
.bss 90912 90912 0 0.0
.data 1076 1076 0 0.0
.text 561644 561644 0 0.0
persistent-storage-app qpg6105+debug (read only) 99536 99536 0 0.0
(read/write) 146941 146941 0 0.0
.bss 24001 24001 0 0.0
.data 180 180 0 0.0
.text 94216 94216 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 883086 883086 0 0.0
bss 86336 86336 0 0.0
noinit 37160 37160 0 0.0
text 623942 623942 0 0.0

@Damian-Nordic Damian-Nordic merged commit 3e476eb into project-chip:master Feb 28, 2022
rgoliver pushed a commit to rgoliver/connectedhomeip that referenced this pull request Mar 14, 2022
--reset flash should be used to reset the board after
flashing a firmware.
andy31415 pushed a commit that referenced this pull request Mar 17, 2022
…branch (#16183)

* [nrfconnect] Fix pigweed/protobuf compiler flags (#14876)

Enhance the way Zephyr flags are passed to Pigweed and
Protobuf components. It happened in the past that some
MCU-related flags were not passed correctly causing
crashes or build failures (e.g. with FPU enabled).

* [nrfconnect] Fix flashing script (#15628)

--reset flash should be used to reset the board after
flashing a firmware.

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

Successfully merging this pull request may close these issues.

3 participants