-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
west flash --nobuild, west flash-signed #23173
Comments
Hello, Since build, flash, and debug are extensions defined in the zephyr repository, I've made this a zephyr issue, not a west issue.
You can use Please reopen if there's something I've missed. |
Sorry for not using |
That's okay! By the way, this is the last line printed by
The output for
The flash and debug commands bring the targets they depend on up to date in order to match the build system commands by the same name (that is, both If your binaries are already up to date, there's no problem with using --skip-rebuild. It's up to you to decide what you'd prefer to use. Rebuilding shouldn't take long if there's nothing to do, so there won't be a big performance benefit. |
Ok, I will continue to use --skip-rebuild if it cannot be done automaticaly when external binary is specified. Also |
If you're doing this on an application-specific basis, I think you could probably set a custom --hex-file argument in the build system using
I can't reproduce this on my windows 10 machine with ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb when building hello world. Even on Windows, a fresh rebuild takes under a second. Perhaps your application has a custom target which is always out of date? |
Sorry, it's W7, not W10, I am running W7 guest in W10 host under Virtualbox.
I shall try on fresh W10, I have some othere devel. tools in that W7, so may be there is some conflict. Or may be it's just slow CPU because it's in Virtualbox ... If it only took few secs, I wouldn't bother creating this issue at all :) |
If a no-op build takes more than a fraction of a second on a currently supported version of Windows (note that as far as I know, Windows 7 is not officially supported since Microsoft EOLed it), that's a build system bug for sure. Please let me know if you see it on Windows 10. |
Hi,
I didn't found a way how to just "flash" without building project again, I think it would be useful.
Now when using mcuboot, I do:
But
west flash
is building the project again ...Or may be thre could be command
west flash-signed
that would flash the default signed file, without building. And may be some option in project.yaml, that could point to key file, and then you could do something likewest build-signed
- that would build + signwest flash-signed
- that would take the signed file and flash itI know I can make .cmd or powershell scripts in windows to make all of this, but at least "--no-build" option would be useful.
The text was updated successfully, but these errors were encountered: