In uVision 5, is there a way to have one button or one shortcut key that will do a Build immediately followed by a Download if the build is successful?
I am very often clicking Build, then waiting for the compile to finish so I can click Download to flash my target hardware. It would really be nice to be able to automate this in one click or one keyboard function key.
Totally agree! Maybe it could be a "project setting", something like "perform build before flash download", if enabled, a build is performed when doing download/flashing. If not enabled, download/flash would work "as today".....One can only hope....
Isn't this what the "Start Debugging" option does in Target Options -> User ?
G . said:Isn't this what the "Start Debugging" option does in Target Options -> User ?
This option does a bit more than Wayne Fannon requested. It also starts a debug session. The option 'Options for Target - Utilities - Update Target before Debugging' should be set to download the project to the Flash between building the project and starting a debug session.
As a workaround, you could set this option and you could put an 'exit' command into an initialization file for the debugger. Then, a successful project build would download the project into Flash, would then start the debugger and would then terminate it immediately.
But then when you really want to debug, you would need to change the init file, not optimal I think.
But then when you really want to debug, you would need to change the init file, not optimal I think.No, that is not the same. What is needed is that when you press "Flash", the project is build before.
Today I find myself doing "F7", waiting for completion, and then pressing "F6" to flash.
Yep, that's what I'm doing now. "Build"--->...wait...--->"Download". Obviously, this is a first-world problem, but still, it seems like enough people are probably doing this dozens or hundreds of times per day, that there should be a button to automatically download flash after build.