Just getting started with uVision..
...After any code changes one has to do a Download/Flash before starting a Debug Session? Otherwise any code changes are not picked up in the Debug Session? Is this correct?
Subsequently, is there a way to auto Download whenever a Debug Session is started?
Thanks gents, /ms
... one has to do a Download/Flash
Yes, of course! Otherwise the new code will not be present in the chip - so you will be debugging old code!
And, before downloading, you need to have successfully built the code.
None of this is specific to uVision.
Well, in the other IDEs I use on a daily basis (PSOC Creator and MCUexpresso) starting a debug session automatically does a recompile and flash to pick up any code changes. Whereas uVision has them all explicitly broken out. Is there was a way to have a Debug Session auto reflash like in other IDEs?
You could always select the option to "Update Target Before Debugging" if see if you like what it does.
...and then, in the User tab of your project, check the Start Debugging check box.
Now, when you build the project, newly-built application loads and the debugger starts.