Keil Logo

µVISION DEBUGGER: DOWNLOAD TO FLASH VS. UPDATE TARGET OPTIONS


Information in this article applies to:

  • µVision -- All versions

QUESTION

What's the difference between:

  • Download to Flash option in Options for Target — Debug — Settings

and

  • Update Target Before Debugging option in Options for Target — Utilities

Aren't they the same thing?

ANSWER

While both options download your program to your target hardware when you start to debug, downloading occurs based on different conditions and at different times.

Download to Flash

The Download to Flash option downloads your program to the target hardware when you either:

  • use the LOAD command (without the NOCODE argument),
  • enable the Load Application at Startup option in Options for Target — Debug (this executes the LOAD command for you).

This option runs initialization script files before your target program downloads. This allows you to use debug commands that setup up your hardware before downloading your application.

Update Target Before Debugging

The Update Target Before Debugging option downloads your program to target hardware only when your project changes. This option does not run initialization script files until after your target program downloads.

Selecting Both Options

If both Download to Flash and Update Target Before Debugging options are selected, µVision:

  1. Downloads your target program,
  2. Executes the initialization script,
  3. Downloads your target program a second time (if a LOAD commmand is included in your initialization script),
  4. Downloads your target program a third time (if the Load Application at Startup option is set).

If program downloads appear to take a very long time, you should check these option settings.

MORE INFORMATION

Last Reviewed: Wednesday, November 15, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.