OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2959|回复: 0

Keil MDK中“Download to Flash”与“Update Target before Debugging”的区别

[复制链接]

1

主题

35

帖子

0

精华

初级会员

Rank: 2

积分
93
金钱
93
注册时间
2016-7-29
在线时间
14 小时
发表于 2020-6-8 21:13:09 | 显示全部楼层 |阅读模式
本帖最后由 mcu369 于 2020-6-8 21:18 编辑

  在Keil MDK中“Options for Target — Debug — Settings — Download Options — Download to Flash”与“Options for Target — Utilities — Configure Flash Menu Command — Update Target before Debugging”两个选项的区别不甚了解,正好在Keil的网站上查得相关问答资料,共享一下:


“Download to Flash”与“Update Target before Debugging”的区别.png


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:当您执行以下任一操作时,“下载到Flash”选项会将程序下载到目标硬件:)

  • use the LOAD command (without the NOCODE argument),(使用LOAD命令(不带NOCODE参数),)
  • enable the Load Application at Startup option in Options for Target — Debug (this executes the LOAD command for you).(启用“ 目标选项-调试”中的“ 启动时加载应用程序 选项 (这将为您执行LOAD命令)。)
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:如果同时选择了下载到Flash调试前更新目标选项,则μVision:)

  • Downloads your target program,(下载您的目标程序,)
  • Executes the initialization script,(执行初始化脚本,)
  • Downloads your target program a second time (if a LOAD commmand is included in your initialization script), (再次下载目标程序(如果初始化脚本中包含LOAD命令 ),
  • 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(更多信息)


  • Refer to Start Sequence in the ULINK User's Guide. (请参阅《 ULINK用户指南》中的启动顺序
  • Refer to Flash Download Configuration in the ULINK User's Guide. (请参阅《 ULINK用户指南》中的“ Flash下载配置 ”。
  • Refer to Debug in the ULINK User's Guide. (请参阅《 ULINK用户指南》中的“ 调试 ”。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-9 11:59

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表