-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrfconnect] Make flashing_script hex selection reliable (#23003)
When building via west build -b nrf52840dk_nrf52840 -t flashing_script the wrong hex file is flashed, and doesn't boot. We need to flash zephyr/merged.hex, not zephyr/zephyr.hex. The copy step attempts to do this, but does so incorrectly based upon a file existence test for which it has no declared dependency. This does not work reliably. It's a bit tricky to figure out which file we need to use, but for nRF Connect there is a global variable ${merged_hex_to_flash} that suffices.
- Loading branch information
Showing
3 changed files
with
16 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters