We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi i want to automatically download to flash after successful compile in keil. i use this command :option >> user >> run after build >> "uv4 -f" when i press f7 after compile open a new keil application windows to program, But this command is slow. looking for a command that program in current windows directly.
Is it really so much trouble to have to make two key presses?
no, but i most test many code on micro controller if one key do this automatically i can work on other project in this few Seconds and this is not Necessary to wait for compile and press download button. i use keil v5 and st-link v2 i write this command from st-link documents and work good and fast but not show download progress .
"ST-LINK_CLI.exe file patch" -ME -P "hex file patch" -V "after_programming"
only you most change ST-LINK_CLI.exe and hex file patch and put run after build section. if you have a better command please say me. tanks.
An extra key press might take a half second.
Maybe you should instead tell what you are actually trying to do.
If doing nightly builds with regression testing, then the obvious route would be to have everything automated so there would be zero key presses.
And if you have coded in new functionality, then the logical route would be manual testing before you could later leave the base testing to the automated regression tests. And for manual testing, I can't see you have time to worry about a single key press.
Remember also that if you have one code base but need to support multiple target platforms, you could build all targets with a single menu command. So no compilation involved when it gets time to actually test. This is also most efficient if the compilation takes long time since you get all targets compiled in a sequence while you have ample time for doing something else - and when the build is done you can focus 100% on the testing.
Another thing. If you have multiple hardwares to test, and you don't plan on debugging, then you could use other interfaces for programming the devices. So you could have 10 different units connected to the PC and program them all automatically. Just figure out a suitable interface - RS-232, CAN, Ethernet, USB, ... and make use of a boot loader.
It strikes me that if you improved your coding/debugging technique, or grouped up your tests, this could all occur much more efficiently.
Hello,
on the reverse, is there a way to force a build when trying to load or start debug? In this way, Keil loads the latest version of the code.